First part of a large code cleanup commit.

This commit is contained in:
James Cole
2019-02-12 21:49:28 +01:00
parent b273af341c
commit e0d87aa11e
70 changed files with 336 additions and 354 deletions

View File

@@ -74,7 +74,7 @@ class FinTS
* @return SEPAAccount
* @throws FireflyException
*/
public function getAccount(string $accountNumber)
public function getAccount(string $accountNumber): SEPAAccount
{
$accounts = $this->getAccounts();
$filteredAccounts = array_filter(
@@ -93,7 +93,7 @@ class FinTS
* @return SEPAAccount[]
* @throws FireflyException
*/
public function getAccounts()
public function getAccounts(): ?array
{
try {
return $this->finTS->getSEPAAccounts();