Use PSR-12 code style

This commit is contained in:
James Cole
2022-10-30 12:24:51 +01:00
parent bdcd9825ec
commit b27fe59ab4
44 changed files with 414 additions and 332 deletions

View File

@@ -184,7 +184,7 @@ class ExportData extends Command
}
/**
* @param string $field
* @param string $field
*
* @return Carbon
* @throws Exception
@@ -234,7 +234,7 @@ class ExportData extends Command
$accounts = new Collection();
$accountList = $this->option('accounts');
$types = [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE];
if (null !== $accountList && '' !== (string) $accountList) {
if (null !== $accountList && '' !== (string)$accountList) {
$accountIds = explode(',', $accountList);
$accounts = $this->accountRepository->getAccountsById($accountIds);
}
@@ -262,7 +262,7 @@ class ExportData extends Command
*/
private function getExportDirectory(): string
{
$directory = (string) $this->option('export_directory');
$directory = (string)$this->option('export_directory');
if (null === $directory) {
$directory = './';
}
@@ -274,8 +274,8 @@ class ExportData extends Command
}
/**
* @param array $options
* @param array $data
* @param array $options
* @param array $data
*
* @throws FireflyException
*/