Add newlines and copyright notices.

This commit is contained in:
James Cole
2018-12-31 07:48:23 +01:00
parent 005e4ba4d1
commit 3e25d66902
113 changed files with 381 additions and 97 deletions

View File

@@ -181,4 +181,4 @@ class ImportController extends Controller
return response()->json($manager->createData($resource)->toArray())->header('Content-Type', 'application/vnd.api+json');
}
}
}

View File

@@ -245,4 +245,4 @@ class TagController extends Controller
return response()->json($manager->createData($resource)->toArray())->header('Content-Type', 'application/vnd.api+json');
}
}
}

View File

@@ -1,5 +1,27 @@
<?php
/**
* ApplyRules.php
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* This file is part of Firefly III.
*
* Firefly III is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Firefly III is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Console\Commands;
use Carbon\Carbon;

View File

@@ -1,5 +1,27 @@
<?php
/**
* Cron.php
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* This file is part of Firefly III.
*
* Firefly III is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Firefly III is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Console\Commands;
use FireflyIII\Exceptions\FireflyException;

View File

@@ -1,4 +1,25 @@
<?php
/**
* RequestedReportOnJournals.php
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* This file is part of Firefly III.
*
* Firefly III is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Firefly III is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
/**
* RequestedReportOnJournals.php

View File

@@ -940,4 +940,4 @@ class TransactionCollector implements TransactionCollectorInterface
$this->query->leftJoin('tag_transaction_journal', 'tag_transaction_journal.transaction_journal_id', '=', 'transaction_journals.id');
}
}
}
}

View File

@@ -347,4 +347,4 @@ interface TransactionCollectorInterface
* @return TransactionCollectorInterface
*/
public function withoutCategory(): TransactionCollectorInterface;
}
}

View File

@@ -59,4 +59,4 @@ class DoubleTransactionFilter implements FilterInterface
return $result;
}
}
}

View File

@@ -155,4 +155,4 @@ class NetWorth implements NetWorthInterface
$this->currencyRepos = app(CurrencyRepositoryInterface::class);
$this->currencyRepos->setUser($this->user);
}
}
}

View File

@@ -57,4 +57,4 @@ interface NetWorthInterface
*/
public function setUser(User $user): void;
}
}

View File

@@ -72,4 +72,4 @@ class CallbackController extends Controller
return redirect(route('import.job.status.index', [$importJob->key]));
}
}
}

View File

@@ -32,4 +32,4 @@ abstract class FinTSConfigurationSteps
public const NEW = 'new';
public const CHOOSE_ACCOUNT = 'choose_account';
public const GO_FOR_IMPORT = 'go-for-import';
}
}

View File

@@ -131,4 +131,4 @@ class FinTSJobConfiguration implements JobConfigurationInterface
}
}
}

View File

@@ -138,4 +138,4 @@ class YnabJobConfiguration implements JobConfigurationInterface
return $handler;
}
}
}

View File

@@ -143,4 +143,4 @@ class YnabPrerequisites implements PrerequisitesInterface
return true;
}
}
}

View File

@@ -85,4 +85,4 @@ class FinTSRoutine implements RoutineInterface
$this->repository->setUser($importJob->user);
}
}
}

View File

@@ -140,4 +140,4 @@ class YnabRoutine implements RoutineInterface
$this->repository = app(ImportJobRepositoryInterface::class);
$this->repository->setUser($importJob->user);
}
}
}

View File

@@ -1,4 +1,25 @@
<?php
/**
* CreateRecurringTransactions.php
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* This file is part of Firefly III.
*
* Firefly III is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Firefly III is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);

View File

@@ -65,4 +65,4 @@ class IsAssetAccountId implements Rule
return true;
}
}
}

View File

@@ -1,5 +1,27 @@
<?php
/**
* IsBoolean.php
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* This file is part of Firefly III.
*
* Firefly III is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Firefly III is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Rules;
use Illuminate\Contracts\Validation\Rule;

View File

@@ -1,5 +1,27 @@
<?php
/**
* ZeroOrMore.php
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* This file is part of Firefly III.
*
* Firefly III is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Firefly III is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Rules;
use Illuminate\Contracts\Validation\Rule;

View File

@@ -51,4 +51,4 @@ class GetAccountsRequest extends YnabRequest
// expect data in [data][accounts]
$this->accounts = $result['data']['accounts'] ?? [];
}
}
}

View File

@@ -67,4 +67,4 @@ class GetBudgetsRequest extends YnabRequest
}
$this->budgets = $freshBudgets;
}
}
}

View File

@@ -55,4 +55,4 @@ class GetTransactionsRequest extends YnabRequest
// expect data in [data][transactions]
$this->transactions = $result['data']['transactions'] ?? [];
}
}
}

View File

@@ -98,4 +98,4 @@ abstract class YnabRequest
$this->token = $token;
}
}
}

View File

@@ -59,4 +59,4 @@ class CLIToken implements BinderInterface
}
throw new NotFoundHttpException;
}
}
}

View File

@@ -48,4 +48,4 @@ class ConfigurationName implements BinderInterface
}
throw new NotFoundHttpException;
}
}
}

View File

@@ -36,4 +36,4 @@ abstract class AbstractCronjob
*/
abstract public function fire(): bool;
}
}

View File

@@ -81,4 +81,4 @@ class RecurringCronjob extends AbstractCronjob
$job->handle();
app('fireflyconfig')->set('last_rt_job', time());
}
}
}

View File

@@ -118,4 +118,4 @@ class FinTS
throw new FireflyException($exception->getMessage());
}
}
}
}

View File

@@ -46,4 +46,4 @@ class MetadataParser
return $finTSDescription;
}
}
}

View File

@@ -87,4 +87,4 @@ trait AccountFilter
return $return; // @codeCoverageIgnore
}
}
}

View File

@@ -66,4 +66,4 @@ trait TransactionFilter
return $return;
}
}
}

View File

@@ -90,4 +90,4 @@ trait BasicDataSupport
return $result;
}
}
}

View File

@@ -216,4 +216,4 @@ trait CreateStuff
throw new FireflyException($e->getMessage());
}
}
}
}

View File

@@ -250,4 +250,4 @@ trait GetConfigurationData
request()->session()->flash('warning', trans('firefly.recurring_cron_long_ago'));
}
}
}
}

View File

@@ -62,4 +62,4 @@ trait ModelInformation
return $count > 2;
}
}
}

View File

@@ -456,4 +456,4 @@ trait PeriodOverview
return $return;
}
}
}

View File

@@ -326,4 +326,4 @@ trait RenderPartialViews
return $result;
}
}
}

View File

@@ -403,4 +403,4 @@ trait RequestInformation
);
}
}
}

View File

@@ -199,4 +199,4 @@ trait TransactionCalculation
return $collector->getTransactions();
}
}
}

View File

@@ -149,4 +149,4 @@ trait UserNavigation
Log::debug(sprintf('Will put previous URI in cache under key %s: %s', $identifier, $url));
}
}
}
}

View File

@@ -120,4 +120,4 @@ class ChooseAccountHandler implements FinTSConfigurationInterface
$this->accountRepository = app(AccountRepositoryInterface::class);
$this->repository->setUser($importJob->user);
}
}
}

View File

@@ -50,4 +50,4 @@ interface FinTSConfigurationInterface
* @param ImportJob $importJob
*/
public function setImportJob(ImportJob $importJob): void;
}
}

View File

@@ -107,4 +107,4 @@ class NewFinTSJobHandler implements FinTSConfigurationInterface
$this->repository->setUser($importJob->user);
}
}
}

View File

@@ -255,4 +255,4 @@ class NewYnabJobHandler implements YnabJobConfigurationInterface
return true;
}
}
}

View File

@@ -234,4 +234,4 @@ class SelectAccountsHandler implements YnabJobConfigurationInterface
return '';
}
}
}

View File

@@ -182,4 +182,4 @@ class SelectBudgetHandler implements YnabJobConfigurationInterface
return false;
}
}
}

View File

@@ -69,4 +69,4 @@ interface YnabJobConfigurationInterface
* @param ImportJob $importJob
*/
public function setImportJob(ImportJob $importJob): void;
}
}

View File

@@ -241,4 +241,4 @@ class PaymentConverter
}
}
}

View File

@@ -117,4 +117,4 @@ class OFXProcessor implements FileProcessorInterface
$this->repository->setUser($importJob->user);
}
}
}

View File

@@ -186,4 +186,4 @@ class StageImportDataHandler
return $storeData;
}
}
}

View File

@@ -77,4 +77,4 @@ class GetAccountsHandler
$this->repository = app(ImportJobRepositoryInterface::class);
$this->repository->setUser($importJob->user);
}
}
}

View File

@@ -275,4 +275,4 @@ class ImportDataHandler
return $request->transactions;
}
}
}

View File

@@ -105,4 +105,4 @@ class StageGetAccessHandler
$this->repository = app(ImportJobRepositoryInterface::class);
$this->repository->setUser($importJob->user);
}
}
}

View File

@@ -72,4 +72,4 @@ class StageGetBudgetsHandler
$this->repository = app(ImportJobRepositoryInterface::class);
$this->repository->setUser($importJob->user);
}
}
}

View File

@@ -52,4 +52,4 @@ class StageGetTransactionsHandler
$this->repository = app(ImportJobRepositoryInterface::class);
$this->repository->setUser($importJob->user);
}
}
}

View File

@@ -54,4 +54,4 @@ class StageMatchAccountsHandler
$this->repository = app(ImportJobRepositoryInterface::class);
$this->repository->setUser($importJob->user);
}
}
}

View File

@@ -206,4 +206,4 @@ class ConvertToDeposit implements ActionInterface
return true;
}
}
}

View File

@@ -204,4 +204,4 @@ class ConvertToTransfer implements ActionInterface
return true;
}
}
}

View File

@@ -209,4 +209,4 @@ class ConvertToWithdrawal implements ActionInterface
return true;
}
}
}

View File

@@ -50,4 +50,4 @@ class AbstractTransformer extends TransformerAbstract
{
$this->parameters = $parameters;
}
}
}