Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Update copyrights.
James Colebb5de8bf7e11
diff --git a/app/Api/V1/Controllers/Search/AccountController.php b/app/Api/V1/Controllers/Search/AccountController.phpindex 43ff8ffa5f..bd47d0a62d 100644--- a/app/Api/V1/Controllers/Search/AccountController.php+++ b/app/Api/V1/Controllers/Search/AccountController.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** AccountController.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Api\V1\Controllers\Search;use FireflyIII\Api\V1\Controllers\Controller;diff --git a/app/Api/V1/Controllers/Search/TransactionController.php b/app/Api/V1/Controllers/Search/TransactionController.phpindex 7febe475e8..b18fd63708 100644--- a/app/Api/V1/Controllers/Search/TransactionController.php+++ b/app/Api/V1/Controllers/Search/TransactionController.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** TransactionController.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Api\V1\Controllers\Search;use FireflyIII\Api\V1\Controllers\Controller;diff --git a/app/Api/V1/Controllers/Search/TransferController.php b/app/Api/V1/Controllers/Search/TransferController.phpindex 38d29e0a0f..847ecbe270 100644--- a/app/Api/V1/Controllers/Search/TransferController.php+++ b/app/Api/V1/Controllers/Search/TransferController.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** TransferController.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Api\V1\Controllers\Search;use FireflyIII\Api\V1\Controllers\Controller;diff --git a/app/Api/V1/Requests/Search/TransferRequest.php b/app/Api/V1/Requests/Search/TransferRequest.phpindex 5cfb4d3ead..2fd5e96c9d 100644--- a/app/Api/V1/Requests/Search/TransferRequest.php+++ b/app/Api/V1/Requests/Search/TransferRequest.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** TransferRequest.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Api\V1\Requests\Search;use FireflyIII\Api\V1\Requests\Request;diff --git a/app/Console/Commands/Correction/CorrectOpeningBalanceCurrencies.php b/app/Console/Commands/Correction/CorrectOpeningBalanceCurrencies.phpindex d4cca5e04e..1063d47aa1 100644--- a/app/Console/Commands/Correction/CorrectOpeningBalanceCurrencies.php+++ b/app/Console/Commands/Correction/CorrectOpeningBalanceCurrencies.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** CorrectOpeningBalanceCurrencies.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Console\Commands\Correction;use FireflyIII\Models\Account;diff --git a/app/Console/Commands/Correction/FixLongDescriptions.php b/app/Console/Commands/Correction/FixLongDescriptions.phpindex ec93912784..28ad7ea15f 100644--- a/app/Console/Commands/Correction/FixLongDescriptions.php+++ b/app/Console/Commands/Correction/FixLongDescriptions.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** FixLongDescriptions.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Console\Commands\Correction;use FireflyIII\Models\TransactionGroup;diff --git a/app/Console/Commands/Correction/FixRecurringTransactions.php b/app/Console/Commands/Correction/FixRecurringTransactions.phpindex f392676942..6391a32d84 100644--- a/app/Console/Commands/Correction/FixRecurringTransactions.php+++ b/app/Console/Commands/Correction/FixRecurringTransactions.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** FixRecurringTransactions.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Console\Commands\Correction;use FireflyIII\Models\Recurrence;diff --git a/app/Console/Commands/CreateDatabase.php b/app/Console/Commands/CreateDatabase.phpindex ee72d3fa17..1c95d9d0e0 100644--- a/app/Console/Commands/CreateDatabase.php+++ b/app/Console/Commands/CreateDatabase.php@@ -1,6 +1,4 @@<?php-declare(strict_types=1);-/*** CreateDatabase.php@@ -22,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Console\Commands;use Illuminate\Console\Command;diff --git a/app/Console/Commands/Export/ExportData.php b/app/Console/Commands/Export/ExportData.phpindex e187b8ef9c..590791e537 100644--- a/app/Console/Commands/Export/ExportData.php+++ b/app/Console/Commands/Export/ExportData.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** ExportData.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Console\Commands\Export;use Carbon\Carbon;diff --git a/app/Console/Commands/Integrity/RestoreOAuthKeys.php b/app/Console/Commands/Integrity/RestoreOAuthKeys.phpindex 6efce94e4d..14655a5f58 100644--- a/app/Console/Commands/Integrity/RestoreOAuthKeys.php+++ b/app/Console/Commands/Integrity/RestoreOAuthKeys.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** RestoreOAuthKeys.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Console\Commands\Integrity;use FireflyIII\Support\System\OAuthKeys;diff --git a/app/Console/Commands/SetLatestVersion.php b/app/Console/Commands/SetLatestVersion.phpindex 0c3c1c9e36..b961e755d7 100644--- a/app/Console/Commands/SetLatestVersion.php+++ b/app/Console/Commands/SetLatestVersion.php@@ -1,5 +1,4 @@<?php-declare(strict_types=1);/*** SetLatestVersion.php@@ -21,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Console\Commands;use Illuminate\Console\Command;diff --git a/app/Console/Commands/Upgrade/MigrateRecurrenceMeta.php b/app/Console/Commands/Upgrade/MigrateRecurrenceMeta.phpindex bad0d6f1a2..30eca6aec4 100644--- a/app/Console/Commands/Upgrade/MigrateRecurrenceMeta.php+++ b/app/Console/Commands/Upgrade/MigrateRecurrenceMeta.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** MigrateRecurrenceMeta.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Console\Commands\Upgrade;use FireflyIII\Models\RecurrenceMeta;diff --git a/app/Console/Commands/Upgrade/MigrateTagLocations.php b/app/Console/Commands/Upgrade/MigrateTagLocations.phpindex e5009a60a0..bc0f209a55 100644--- a/app/Console/Commands/Upgrade/MigrateTagLocations.php+++ b/app/Console/Commands/Upgrade/MigrateTagLocations.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** MigrateTagLocations.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Console\Commands\Upgrade;use FireflyIII\Models\Location;diff --git a/app/Exceptions/DuplicateTransactionException.php b/app/Exceptions/DuplicateTransactionException.phpindex 760f64af6b..28c614f53c 100644--- a/app/Exceptions/DuplicateTransactionException.php+++ b/app/Exceptions/DuplicateTransactionException.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** DuplicateTransactionException.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Exceptions;use Exception;diff --git a/app/Helpers/Collector/Extensions/AccountCollection.php b/app/Helpers/Collector/Extensions/AccountCollection.phpindex 819a87c3a8..8dc522726e 100644--- a/app/Helpers/Collector/Extensions/AccountCollection.php+++ b/app/Helpers/Collector/Extensions/AccountCollection.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** AccountCollection.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Helpers\Collector\Extensions;use FireflyIII\Helpers\Collector\GroupCollectorInterface;diff --git a/app/Helpers/Collector/Extensions/AmountCollection.php b/app/Helpers/Collector/Extensions/AmountCollection.phpindex 719426bfcc..bda1510077 100644--- a/app/Helpers/Collector/Extensions/AmountCollection.php+++ b/app/Helpers/Collector/Extensions/AmountCollection.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** AmountCollection.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Helpers\Collector\Extensions;use FireflyIII\Helpers\Collector\GroupCollectorInterface;diff --git a/app/Helpers/Collector/Extensions/CollectorProperties.php b/app/Helpers/Collector/Extensions/CollectorProperties.phpindex 2c0e0463eb..e8cdc2712f 100644--- a/app/Helpers/Collector/Extensions/CollectorProperties.php+++ b/app/Helpers/Collector/Extensions/CollectorProperties.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** CollectorProperties.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Helpers\Collector\Extensions;use FireflyIII\User;diff --git a/app/Helpers/Collector/Extensions/MetaCollection.php b/app/Helpers/Collector/Extensions/MetaCollection.phpindex 5680226951..ea86e6bb44 100644--- a/app/Helpers/Collector/Extensions/MetaCollection.php+++ b/app/Helpers/Collector/Extensions/MetaCollection.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** MetaCollection.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Helpers\Collector\Extensions;use FireflyIII\Helpers\Collector\GroupCollectorInterface;diff --git a/app/Helpers/Collector/Extensions/TimeCollection.php b/app/Helpers/Collector/Extensions/TimeCollection.phpindex 8b2e748970..fb92e3d41f 100644--- a/app/Helpers/Collector/Extensions/TimeCollection.php+++ b/app/Helpers/Collector/Extensions/TimeCollection.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** TimeCollection.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Helpers\Collector\Extensions;use Carbon\Carbon;diff --git a/app/Http/Controllers/Admin/TelemetryController.php b/app/Http/Controllers/Admin/TelemetryController.phpindex 2b9163992b..4fb36ae8d4 100644--- a/app/Http/Controllers/Admin/TelemetryController.php+++ b/app/Http/Controllers/Admin/TelemetryController.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** TelemetryController.php- * Copyright (c) 2020 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Http\Controllers\Admin;use Carbon\Carbon;diff --git a/app/Http/Controllers/Auth/ConfirmPasswordController.php b/app/Http/Controllers/Auth/ConfirmPasswordController.phpindex 3077ad4beb..73c1c4d13b 100644--- a/app/Http/Controllers/Auth/ConfirmPasswordController.php+++ b/app/Http/Controllers/Auth/ConfirmPasswordController.php@@ -1,6 +1,4 @@<?php-declare(strict_types=1);-/*** ConfirmPasswordController.php@@ -22,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Http\Controllers\Auth;use FireflyIII\Http\Controllers\Controller;diff --git a/app/Http/Controllers/Chart/TransactionController.php b/app/Http/Controllers/Chart/TransactionController.phpindex ed7d5ad143..8516fb60ce 100644--- a/app/Http/Controllers/Chart/TransactionController.php+++ b/app/Http/Controllers/Chart/TransactionController.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** TransactionController.php- * Copyright (c) 2020 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Http\Controllers\Chart;use Carbon\Carbon;diff --git a/app/Http/Controllers/Export/IndexController.php b/app/Http/Controllers/Export/IndexController.phpindex 1626b0756c..59a1596ead 100644--- a/app/Http/Controllers/Export/IndexController.php+++ b/app/Http/Controllers/Export/IndexController.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** IndexController.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Http\Controllers\Export;diff --git a/app/Http/Controllers/Json/BudgetController.php b/app/Http/Controllers/Json/BudgetController.phpindex 48abeb9f79..93aade6c00 100644--- a/app/Http/Controllers/Json/BudgetController.php+++ b/app/Http/Controllers/Json/BudgetController.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** BudgetController.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Http\Controllers\Json;diff --git a/app/Http/Controllers/ObjectGroup/DeleteController.php b/app/Http/Controllers/ObjectGroup/DeleteController.phpindex 293d953ba6..fcbd8e7962 100644--- a/app/Http/Controllers/ObjectGroup/DeleteController.php+++ b/app/Http/Controllers/ObjectGroup/DeleteController.php@@ -1,4 +1,25 @@<?php++/**+ * DeleteController.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Http\Controllers\ObjectGroup;diff --git a/app/Http/Controllers/ObjectGroup/EditController.php b/app/Http/Controllers/ObjectGroup/EditController.phpindex d760007802..781b764eb8 100644--- a/app/Http/Controllers/ObjectGroup/EditController.php+++ b/app/Http/Controllers/ObjectGroup/EditController.php@@ -1,4 +1,25 @@<?php++/**+ * EditController.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Http\Controllers\ObjectGroup;diff --git a/app/Http/Controllers/ObjectGroup/IndexController.php b/app/Http/Controllers/ObjectGroup/IndexController.phpindex 6185dade42..6512b73062 100644--- a/app/Http/Controllers/ObjectGroup/IndexController.php+++ b/app/Http/Controllers/ObjectGroup/IndexController.php@@ -1,4 +1,25 @@<?php++/**+ * IndexController.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Http\Controllers\ObjectGroup;@@ -43,6 +64,7 @@ class IndexController extends Controller*/public function index(){+ $this->repository->deleteEmpty();$this->repository->sort();$subTitle = (string) trans('firefly.object_groups_index');$objectGroups = $this->repository->get();diff --git a/app/Http/Controllers/PiggyBank/AmountController.php b/app/Http/Controllers/PiggyBank/AmountController.phpindex 44ee05c769..ed335332a2 100644--- a/app/Http/Controllers/PiggyBank/AmountController.php+++ b/app/Http/Controllers/PiggyBank/AmountController.php@@ -1,4 +1,25 @@<?php++/**+ * AmountController.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Http\Controllers\PiggyBank;diff --git a/app/Http/Controllers/PiggyBank/CreateController.php b/app/Http/Controllers/PiggyBank/CreateController.phpindex de7c18ff72..a6775a70a9 100644--- a/app/Http/Controllers/PiggyBank/CreateController.php+++ b/app/Http/Controllers/PiggyBank/CreateController.php@@ -1,4 +1,25 @@<?php++/**+ * CreateController.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Http\Controllers\PiggyBank;@@ -7,7 +28,7 @@ namespace FireflyIII\Http\Controllers\PiggyBank;use Carbon\Carbon;use FireflyIII\Helpers\Attachments\AttachmentHelperInterface;use FireflyIII\Http\Controllers\Controller;-use FireflyIII\Http\Requests\PiggyBankFormRequest;+use FireflyIII\Http\Requests\PiggyBankStoreRequest;use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;use Illuminate\Contracts\View\Factory;use Illuminate\Http\RedirectResponse;@@ -67,11 +88,11 @@ class CreateController extends Controller/*** Store a new piggy bank.*- * @param PiggyBankFormRequest $request+ * @param PiggyBankStoreRequest $request** @return RedirectResponse|Redirector*/- public function store(PiggyBankFormRequest $request)+ public function store(PiggyBankStoreRequest $request){$data = $request->getPiggyBankData();if (null === $data['startdate']) {diff --git a/app/Http/Controllers/PiggyBank/DeleteController.php b/app/Http/Controllers/PiggyBank/DeleteController.phpindex 3db81000b8..39eefeb451 100644--- a/app/Http/Controllers/PiggyBank/DeleteController.php+++ b/app/Http/Controllers/PiggyBank/DeleteController.php@@ -1,4 +1,25 @@<?php++/**+ * DeleteController.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Http\Controllers\PiggyBank;diff --git a/app/Http/Controllers/PiggyBank/EditController.php b/app/Http/Controllers/PiggyBank/EditController.phpindex 2ed18713a3..66ceae97e9 100644--- a/app/Http/Controllers/PiggyBank/EditController.php+++ b/app/Http/Controllers/PiggyBank/EditController.php@@ -1,4 +1,25 @@<?php++/**+ * EditController.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Http\Controllers\PiggyBank;@@ -6,7 +27,7 @@ namespace FireflyIII\Http\Controllers\PiggyBank;use FireflyIII\Helpers\Attachments\AttachmentHelperInterface;use FireflyIII\Http\Controllers\Controller;-use FireflyIII\Http\Requests\PiggyBankFormRequest;+use FireflyIII\Http\Requests\PiggyBankUpdateRequest;use FireflyIII\Models\PiggyBank;use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;use Illuminate\Contracts\View\Factory;@@ -89,12 +110,12 @@ class EditController extends Controller/*** Update a piggy bank.*- * @param PiggyBankFormRequest $request+ * @param PiggyBankUpdateRequest $request* @param PiggyBank $piggyBank** @return RedirectResponse|Redirector*/- public function update(PiggyBankFormRequest $request, PiggyBank $piggyBank)+ public function update(PiggyBankUpdateRequest $request, PiggyBank $piggyBank){$data = $request->getPiggyBankData();$piggyBank = $this->piggyRepos->update($piggyBank, $data);diff --git a/app/Http/Controllers/PiggyBank/IndexController.php b/app/Http/Controllers/PiggyBank/IndexController.phpindex 6eada96c59..f6b4c5b03f 100644--- a/app/Http/Controllers/PiggyBank/IndexController.php+++ b/app/Http/Controllers/PiggyBank/IndexController.php@@ -1,4 +1,25 @@<?php++/**+ * IndexController.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Http\Controllers\PiggyBank;diff --git a/app/Http/Controllers/PiggyBank/ShowController.php b/app/Http/Controllers/PiggyBank/ShowController.phpindex 43dec1eea4..6495b197ca 100644--- a/app/Http/Controllers/PiggyBank/ShowController.php+++ b/app/Http/Controllers/PiggyBank/ShowController.php@@ -1,4 +1,25 @@<?php++/**+ * ShowController.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Http\Controllers\PiggyBank;diff --git a/app/Http/Controllers/Profile/DataController.php b/app/Http/Controllers/Profile/DataController.phpindex a4ded43c29..fa52bd1253 100644--- a/app/Http/Controllers/Profile/DataController.php+++ b/app/Http/Controllers/Profile/DataController.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** DataController.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Http\Controllers\Profile;use FireflyIII\Http\Controllers\Controller;diff --git a/app/Jobs/CreateAutoBudgetLimits.php b/app/Jobs/CreateAutoBudgetLimits.phpindex 2bf4be56ce..fc33cf2ba9 100644--- a/app/Jobs/CreateAutoBudgetLimits.php+++ b/app/Jobs/CreateAutoBudgetLimits.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** CreateAutoBudgetLimits.php- * Copyright (c) 2020 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Jobs;use Carbon\Carbon;diff --git a/app/Jobs/SubmitTelemetryData.php b/app/Jobs/SubmitTelemetryData.phpindex 3071748d8b..1d06651b42 100644--- a/app/Jobs/SubmitTelemetryData.php+++ b/app/Jobs/SubmitTelemetryData.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** SubmitTelemetryData.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Jobs;diff --git a/app/Models/AutoBudget.php b/app/Models/AutoBudget.phpindex 3f4c42ee24..6db869fa1c 100644--- a/app/Models/AutoBudget.php+++ b/app/Models/AutoBudget.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** AutoBudget.php- * Copyright (c) 2020 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Models;use Eloquent;diff --git a/app/Models/Location.php b/app/Models/Location.phpindex 4e97b1bd16..6f0a29859f 100644--- a/app/Models/Location.php+++ b/app/Models/Location.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** Location.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Models;diff --git a/app/Models/ObjectGroup.php b/app/Models/ObjectGroup.phpindex 953fafde0e..0505a63e1f 100644--- a/app/Models/ObjectGroup.php+++ b/app/Models/ObjectGroup.php@@ -1,4 +1,25 @@<?php++/**+ * ObjectGroup.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Models;@@ -56,6 +77,14 @@ class ObjectGroup extends Modelreturn $this->morphedByMany(PiggyBank::class, 'object_groupable');}+ /**+ * @return \Illuminate\Database\Eloquent\Relations\MorphToMany+ */+ public function bills()+ {+ return $this->morphedByMany(Bill::class, 'object_groupable');+ }+/*** Route binder. Converts the key in the URL to the specified object (or throw 404).*diff --git a/app/Models/Telemetry.php b/app/Models/Telemetry.phpindex b45593cd94..27fbe48637 100644--- a/app/Models/Telemetry.php+++ b/app/Models/Telemetry.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** Telemetry.php- * Copyright (c) 2020 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Models;diff --git a/app/Repositories/ObjectGroup/CreatesObjectGroups.php b/app/Repositories/ObjectGroup/CreatesObjectGroups.phpindex 3bdc83bf1f..9abf2f1d4d 100644--- a/app/Repositories/ObjectGroup/CreatesObjectGroups.php+++ b/app/Repositories/ObjectGroup/CreatesObjectGroups.php@@ -1,4 +1,25 @@<?php++/**+ * CreatesObjectGroups.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Repositories\ObjectGroup;diff --git a/app/Repositories/ObjectGroup/ObjectGroupRepository.php b/app/Repositories/ObjectGroup/ObjectGroupRepository.phpindex 17e68e492f..1354215ebf 100644--- a/app/Repositories/ObjectGroup/ObjectGroupRepository.php+++ b/app/Repositories/ObjectGroup/ObjectGroupRepository.php@@ -1,4 +1,25 @@<?php++/**+ * ObjectGroupRepository.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Repositories\ObjectGroup;@@ -33,7 +54,9 @@ class ObjectGroupRepository implements ObjectGroupRepositoryInterface*/public function get(): Collection{- return $this->user->objectGroups()->orderBy('order', 'ASC')->orderBy('title', 'ASC')->get();+ return $this->user->objectGroups()+ ->with(['piggyBanks', 'bills'])+ ->orderBy('order', 'ASC')->orderBy('title', 'ASC')->get();}/**diff --git a/app/Repositories/ObjectGroup/ObjectGroupRepositoryInterface.php b/app/Repositories/ObjectGroup/ObjectGroupRepositoryInterface.phpindex 4d190c007b..472f72edce 100644--- a/app/Repositories/ObjectGroup/ObjectGroupRepositoryInterface.php+++ b/app/Repositories/ObjectGroup/ObjectGroupRepositoryInterface.php@@ -1,4 +1,25 @@<?php++/**+ * ObjectGroupRepositoryInterface.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Repositories\ObjectGroup;diff --git a/app/Repositories/ObjectGroup/OrganisesObjectGroups.php b/app/Repositories/ObjectGroup/OrganisesObjectGroups.phpindex 3e4b459cb2..62e75ee93b 100644--- a/app/Repositories/ObjectGroup/OrganisesObjectGroups.php+++ b/app/Repositories/ObjectGroup/OrganisesObjectGroups.php@@ -1,4 +1,25 @@<?php++/**+ * OrganisesObjectGroups.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Repositories\ObjectGroup;diff --git a/app/Repositories/PiggyBank/ModifiesPiggyBanks.php b/app/Repositories/PiggyBank/ModifiesPiggyBanks.phpindex 4528dba729..7fd9ec4864 100644--- a/app/Repositories/PiggyBank/ModifiesPiggyBanks.php+++ b/app/Repositories/PiggyBank/ModifiesPiggyBanks.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** ModifiesPiggyBanks.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Repositories\PiggyBank;@@ -360,6 +362,7 @@ trait ModifiesPiggyBanks$repetition->save();}+ // update using name:$objectGroupTitle = $data['object_group'] ?? '';if ('' !== $objectGroupTitle) {$objectGroup = $this->findOrCreateObjectGroup($objectGroupTitle);@@ -368,6 +371,15 @@ trait ModifiesPiggyBanks$piggyBank->save();}}+ // try also with ID:+ $objectGroupId = (int) ($data['object_group_id'] ?? 0);+ if (0 !== $objectGroupId) {+ $objectGroup = $this->findObjectGroupById($objectGroupId);+ if (null !== $objectGroup) {+ $piggyBank->objectGroups()->sync([$objectGroup->id]);+ $piggyBank->save();+ }+ }return $piggyBank;}diff --git a/app/Repositories/Telemetry/TelemetryRepository.php b/app/Repositories/Telemetry/TelemetryRepository.phpindex fc7f84bece..21f6ed2fac 100644--- a/app/Repositories/Telemetry/TelemetryRepository.php+++ b/app/Repositories/Telemetry/TelemetryRepository.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** TelemetryRepository.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Repositories\Telemetry;use FireflyIII\Models\Telemetry;diff --git a/app/Repositories/Telemetry/TelemetryRepositoryInterface.php b/app/Repositories/Telemetry/TelemetryRepositoryInterface.phpindex e4dc3d3dfd..0e42fcec49 100644--- a/app/Repositories/Telemetry/TelemetryRepositoryInterface.php+++ b/app/Repositories/Telemetry/TelemetryRepositoryInterface.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** TelemetryRepositoryInterface.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Repositories\Telemetry;diff --git a/app/Rules/IsTransferAccount.php b/app/Rules/IsTransferAccount.phpindex d6d0620629..8ec34933c7 100644--- a/app/Rules/IsTransferAccount.php+++ b/app/Rules/IsTransferAccount.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** IsTransferAccount.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Rules;diff --git a/app/Rules/LessThanPiggyTarget.php b/app/Rules/LessThanPiggyTarget.phpindex d32fd7ca10..d56fdc3fce 100644--- a/app/Rules/LessThanPiggyTarget.php+++ b/app/Rules/LessThanPiggyTarget.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** LessThanPiggyTarget.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,9 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);++namespace FireflyIII\Rules;use Illuminate\Contracts\Validation\Rule;diff --git a/app/Services/FireflyIIIOrg/Update/UpdateRequest.php b/app/Services/FireflyIIIOrg/Update/UpdateRequest.phpindex 41f891e232..a675421892 100644--- a/app/Services/FireflyIIIOrg/Update/UpdateRequest.php+++ b/app/Services/FireflyIIIOrg/Update/UpdateRequest.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** UpdateRequest.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Services\FireflyIIIOrg\Update;use Carbon\Carbon;diff --git a/app/Services/FireflyIIIOrg/Update/UpdateRequestInterface.php b/app/Services/FireflyIIIOrg/Update/UpdateRequestInterface.phpindex 410dee0225..f66baabe85 100644--- a/app/Services/FireflyIIIOrg/Update/UpdateRequestInterface.php+++ b/app/Services/FireflyIIIOrg/Update/UpdateRequestInterface.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** UpdateRequestInterface.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Services\FireflyIIIOrg\Update;use FireflyIII\Exceptions\FireflyException;diff --git a/app/Services/Internal/Support/LocationServiceTrait.php b/app/Services/Internal/Support/LocationServiceTrait.phpindex 0cdaa0a21f..74b4e6cdf0 100644--- a/app/Services/Internal/Support/LocationServiceTrait.php+++ b/app/Services/Internal/Support/LocationServiceTrait.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** LocationServiceTrait.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Services\Internal\Support;use FireflyIII\Models\Location;diff --git a/app/Support/Authentication/RemoteUserGuard.php b/app/Support/Authentication/RemoteUserGuard.phpindex 04a94498c6..baf2d94f73 100644--- a/app/Support/Authentication/RemoteUserGuard.php+++ b/app/Support/Authentication/RemoteUserGuard.php@@ -1,4 +1,25 @@<?php++/**+ * RemoteUserGuard.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Support\Authentication;diff --git a/app/Support/Authentication/RemoteUserProvider.php b/app/Support/Authentication/RemoteUserProvider.phpindex 5b6b0fa4ea..5a3ff29ed7 100644--- a/app/Support/Authentication/RemoteUserProvider.php+++ b/app/Support/Authentication/RemoteUserProvider.php@@ -1,4 +1,25 @@<?php++/**+ * RemoteUserProvider.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Support\Authentication;diff --git a/app/Support/Chart/Category/FrontpageChartGenerator.php b/app/Support/Chart/Category/FrontpageChartGenerator.phpindex 7a20ece942..d5a1b388b1 100644--- a/app/Support/Chart/Category/FrontpageChartGenerator.php+++ b/app/Support/Chart/Category/FrontpageChartGenerator.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** FrontpageChartGenerator.php- * Copyright (c) 2020 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Support\Chart\Category;use Carbon\Carbon;diff --git a/app/Support/Cronjobs/AutoBudgetCronjob.php b/app/Support/Cronjobs/AutoBudgetCronjob.phpindex 60cce35976..059491c4f6 100644--- a/app/Support/Cronjobs/AutoBudgetCronjob.php+++ b/app/Support/Cronjobs/AutoBudgetCronjob.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** AutoBudgetCronjob.php- * Copyright (c) 2020 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Support\Cronjobs;diff --git a/app/Support/Cronjobs/TelemetryCronjob.php b/app/Support/Cronjobs/TelemetryCronjob.phpindex b4f6cc7127..c659166384 100644--- a/app/Support/Cronjobs/TelemetryCronjob.php+++ b/app/Support/Cronjobs/TelemetryCronjob.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** TelemetryCronjob.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Support\Cronjobs;use Carbon\Carbon;diff --git a/app/Support/Export/ExportDataGenerator.php b/app/Support/Export/ExportDataGenerator.phpindex 1e49f73d32..31e4d8ce45 100644--- a/app/Support/Export/ExportDataGenerator.php+++ b/app/Support/Export/ExportDataGenerator.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** ExportDataGenerator.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Support\Export;use Carbon\Carbon;diff --git a/app/Support/ParseDateString.php b/app/Support/ParseDateString.phpindex 67a1bbf6f9..0b85a98372 100644--- a/app/Support/ParseDateString.php+++ b/app/Support/ParseDateString.php@@ -1,4 +1,25 @@<?php++/**+ * ParseDateString.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);diff --git a/app/Support/Search/AccountSearch.php b/app/Support/Search/AccountSearch.phpindex 6badb4291c..6f6cb5e833 100644--- a/app/Support/Search/AccountSearch.php+++ b/app/Support/Search/AccountSearch.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** AccountSearch.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Support\Search;diff --git a/app/Support/Search/GenericSearchInterface.php b/app/Support/Search/GenericSearchInterface.phpindex 016b1f6820..372f83cb75 100644--- a/app/Support/Search/GenericSearchInterface.php+++ b/app/Support/Search/GenericSearchInterface.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** GenericSearchInterface.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Support\Search;diff --git a/app/Support/Search/TransactionSearch.php b/app/Support/Search/TransactionSearch.phpindex 7f7aedf8c8..a1899d1927 100644--- a/app/Support/Search/TransactionSearch.php+++ b/app/Support/Search/TransactionSearch.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** TransactionSearch.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Support\Search;use Illuminate\Support\Collection;diff --git a/app/Support/Search/TransferSearch.php b/app/Support/Search/TransferSearch.phpindex 722da14ab6..5560bb096a 100644--- a/app/Support/Search/TransferSearch.php+++ b/app/Support/Search/TransferSearch.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** TransferSearch.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Support\Search;diff --git a/app/Support/System/GeneratesInstallationId.php b/app/Support/System/GeneratesInstallationId.phpindex 3ffe860b1e..64314cd57c 100644--- a/app/Support/System/GeneratesInstallationId.php+++ b/app/Support/System/GeneratesInstallationId.php@@ -1,4 +1,25 @@<?php++/**+ * GeneratesInstallationId.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);namespace FireflyIII\Support\System;diff --git a/app/Support/System/OAuthKeys.php b/app/Support/System/OAuthKeys.phpindex ee46cf8569..156566e83a 100644--- a/app/Support/System/OAuthKeys.php+++ b/app/Support/System/OAuthKeys.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** OAuthKeys.php- * Copyright (c) 2019 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Support\System;use Artisan;diff --git a/app/Support/Telemetry.php b/app/Support/Telemetry.phpindex 76e8bbd696..66c96015a6 100644--- a/app/Support/Telemetry.php+++ b/app/Support/Telemetry.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** Telemetry.php- * Copyright (c) 2020 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Support;use Carbon\Carbon;diff --git a/app/TransactionRules/Actions/UpdatePiggybank.php b/app/TransactionRules/Actions/UpdatePiggybank.phpindex 2ee81e812e..b60c0e5f19 100644--- a/app/TransactionRules/Actions/UpdatePiggybank.php+++ b/app/TransactionRules/Actions/UpdatePiggybank.php@@ -1,4 +1,25 @@<?php++/**+ * UpdatePiggybank.php+ * Copyright (c) 2020 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program 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 Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */+declare(strict_types=1);diff --git a/app/Validation/Account/AccountValidatorProperties.php b/app/Validation/Account/AccountValidatorProperties.phpindex 12f10bc209..416e95b5f5 100644--- a/app/Validation/Account/AccountValidatorProperties.php+++ b/app/Validation/Account/AccountValidatorProperties.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** AccountValidatorProperties.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Validation\Account;use FireflyIII\Models\Account;diff --git a/app/Validation/Account/OBValidation.php b/app/Validation/Account/OBValidation.phpindex b3fa427e6d..2f366ddac4 100644--- a/app/Validation/Account/OBValidation.php+++ b/app/Validation/Account/OBValidation.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** OBValidation.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Validation\Account;use FireflyIII\Models\Account;diff --git a/app/Validation/Account/ReconciliationValidation.php b/app/Validation/Account/ReconciliationValidation.phpindex cd002e2a6d..6ea09a47b6 100644--- a/app/Validation/Account/ReconciliationValidation.php+++ b/app/Validation/Account/ReconciliationValidation.php@@ -1,5 +1,5 @@<?php-declare(strict_types=1);+/*** ReconciliationValidation.php* Copyright (c) 2020 [email protected]@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Validation\Account;use Log;diff --git a/app/Validation/CurrencyValidation.php b/app/Validation/CurrencyValidation.phpindex 1cff24e8b9..6dc42b2944 100644--- a/app/Validation/CurrencyValidation.php+++ b/app/Validation/CurrencyValidation.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** CurrencyValidation.php- * Copyright (c) 2020 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Validation;diff --git a/app/Validation/GroupValidation.php b/app/Validation/GroupValidation.phpindex 4361a757e3..5cbc109b99 100644--- a/app/Validation/GroupValidation.php+++ b/app/Validation/GroupValidation.php@@ -1,8 +1,8 @@<?php-declare(strict_types=1);+/*** GroupValidation.php- * Copyright (c) 2020 [email protected]+ * Copyright (c) 2020 [email protected]** This file is part of Firefly III (https://github.com/firefly-iii).*@@ -20,6 +20,8 @@ declare(strict_types=1);* along with this program. If not, see <https://www.gnu.org/licenses/>.*/+declare(strict_types=1);+namespace FireflyIII\Validation;use FireflyIII\Models\TransactionGroup;