mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
First part of a large code cleanup commit.
This commit is contained in:
@@ -151,7 +151,7 @@ class ConfigureRolesHandler implements FileConfigurationInterface
|
||||
{
|
||||
foreach ($line as $column => $value) {
|
||||
$value = trim($value);
|
||||
if (\strlen($value) > 0) {
|
||||
if ('' != $value) {
|
||||
$this->examples[$column][] = $value;
|
||||
}
|
||||
}
|
||||
@@ -219,7 +219,7 @@ class ConfigureRolesHandler implements FileConfigurationInterface
|
||||
try {
|
||||
$stmt = (new Statement)->limit(1)->offset(0);
|
||||
$records = $stmt->process($reader);
|
||||
$headers = $records->fetchOne(0);
|
||||
$headers = $records->fetchOne();
|
||||
// @codeCoverageIgnoreStart
|
||||
} catch (Exception $e) {
|
||||
Log::error($e->getMessage());
|
||||
|
@@ -78,7 +78,6 @@ class ChooseAccountHandler implements FinTSConfigurationInterface
|
||||
* Get the data necessary to show the configuration screen.
|
||||
*
|
||||
* @return array
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function getNextData(): array
|
||||
{
|
||||
|
@@ -48,7 +48,6 @@ class NewFinTSJobHandler implements FinTSConfigurationInterface
|
||||
* @param array $data
|
||||
*
|
||||
* @return MessageBag
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function configureJob(array $data): MessageBag
|
||||
{
|
||||
|
@@ -152,7 +152,7 @@ class NewYnabJobHandler implements YnabJobConfigurationInterface
|
||||
|
||||
$client = new Client();
|
||||
try {
|
||||
$res = $client->request('post', $uri, []);
|
||||
$res = $client->request('post', $uri);
|
||||
} catch (GuzzleException $e) {
|
||||
Log::error($e->getMessage());
|
||||
Log::error($e->getTraceAsString());
|
||||
|
@@ -88,7 +88,7 @@ class SelectAccountsHandler implements YnabJobConfigurationInterface
|
||||
// validate each
|
||||
$ynabId = $this->validYnabAccount($ynabId);
|
||||
$accountId = $this->validLocalAccount((int)$localId);
|
||||
if ($accountId !== 0) {
|
||||
if (0 !== $accountId) {
|
||||
$final[$ynabId] = $accountId;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user