From cde9c4a2bcc042d98372d9ef3d7e4e8a6ca054e0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 11 May 2018 10:08:34 +0200 Subject: [PATCH] Update copyright statements. --- app/Api/V1/Controllers/AboutController.php | 3 +- app/Api/V1/Controllers/AccountController.php | 3 +- app/Api/V1/Controllers/BillController.php | 4 +- app/Api/V1/Controllers/Controller.php | 4 +- .../V1/Controllers/TransactionController.php | 3 +- app/Api/V1/Controllers/UserController.php | 3 +- app/Api/V1/Requests/AccountRequest.php | 3 +- app/Api/V1/Requests/BillRequest.php | 3 +- app/Api/V1/Requests/Request.php | 4 +- app/Api/V1/Requests/TransactionRequest.php | 3 +- app/Api/V1/Requests/UserRequest.php | 3 +- app/Console/Commands/CreateExport.php | 6 ++- app/Console/Commands/CreateImport.php | 6 ++- app/Console/Commands/DecryptAttachment.php | 6 ++- app/Console/Commands/EncryptFile.php | 6 ++- app/Console/Commands/Import.php | 6 ++- app/Console/Commands/ScanAttachments.php | 6 ++- app/Console/Commands/UpgradeDatabase.php | 6 ++- .../Commands/UpgradeFireflyInstructions.php | 6 ++- app/Console/Commands/UseEncryption.php | 5 ++- app/Console/Commands/VerifiesAccessToken.php | 6 ++- app/Console/Commands/VerifyDatabase.php | 6 ++- app/Console/Kernel.php | 6 ++- app/Events/AdminRequestedTestMessage.php | 6 ++- app/Events/Event.php | 6 ++- app/Events/RegisteredUser.php | 6 ++- app/Events/RequestedNewPassword.php | 6 ++- app/Events/RequestedVersionCheckStatus.php | 5 ++- app/Events/StoredTransactionJournal.php | 6 ++- app/Events/UpdatedTransactionJournal.php | 6 ++- app/Events/UserChangedEmail.php | 6 ++- app/Exceptions/FireflyException.php | 6 ++- app/Exceptions/Handler.php | 6 ++- app/Exceptions/NotImplementedException.php | 6 ++- app/Exceptions/ValidationException.php | 6 ++- app/Export/Collector/AttachmentCollector.php | 6 ++- app/Export/Collector/BasicCollector.php | 6 ++- app/Export/Collector/CollectorInterface.php | 6 ++- app/Export/Collector/UploadCollector.php | 6 ++- app/Export/Entry/Entry.php | 6 ++- app/Export/ExpandedProcessor.php | 6 ++- app/Export/Exporter/BasicExporter.php | 6 ++- app/Export/Exporter/CsvExporter.php | 6 ++- app/Export/Exporter/ExporterInterface.php | 6 ++- app/Export/ProcessorInterface.php | 6 ++- app/Factory/AccountFactory.php | 3 +- app/Factory/AccountMetaFactory.php | 3 +- app/Factory/BillFactory.php | 3 +- app/Factory/BudgetFactory.php | 4 +- app/Factory/CategoryFactory.php | 3 +- app/Factory/PiggyBankEventFactory.php | 3 +- app/Factory/PiggyBankFactory.php | 3 +- app/Factory/TagFactory.php | 3 +- app/Factory/TransactionCurrencyFactory.php | 3 +- app/Factory/TransactionFactory.php | 3 +- app/Factory/TransactionJournalFactory.php | 3 +- app/Factory/TransactionJournalMetaFactory.php | 3 +- app/Factory/TransactionTypeFactory.php | 3 +- app/Http/Middleware/Authenticate.php | 3 +- app/Http/Middleware/Installer.php | 21 +++++++++ .../JobConfiguration/FileJobConfiguration.php | 4 +- app/Import/Storage/ImportArrayStorage.php | 21 +++++++++ app/Rules/BelongsUser.php | 4 +- app/Rules/ValidTransactions.php | 5 ++- .../Import/Routine/Fake/StageFinalHandler.php | 21 +++++++++ app/User.php | 6 ++- config/breadcrumbs.php | 4 +- config/csv.php | 16 +++---- config/firefly.php | 44 +++++++++---------- config/google2fa.php | 5 ++- config/hashing.php | 21 +++++++++ config/import.php | 30 ++++++------- config/twigbridge.php | 30 ++++++------- ...1_000001_create_oauth_auth_codes_table.php | 5 ++- ...00002_create_oauth_access_tokens_table.php | 5 ++- ...0003_create_oauth_refresh_tokens_table.php | 5 ++- ...1_01_000004_create_oauth_clients_table.php | 5 ++- ...te_oauth_personal_access_clients_table.php | 5 ++- .../2018_03_19_141348_changes_for_v472.php | 21 +++++++++ .../2018_04_07_210913_changes_for_v473.php | 21 +++++++++ .../2018_04_29_174524_changes_for_v474.php | 21 +++++++++ database/seeds/ConfigSeeder.php | 21 +++++++++ public/js/ff/import/file/configure-upload.js | 20 +++++++++ resources/lang/en_US/auth.php | 16 ++----- resources/lang/en_US/bank.php | 5 ++- resources/lang/en_US/breadcrumbs.php | 5 ++- resources/lang/en_US/components.php | 3 +- resources/lang/en_US/config.php | 5 ++- resources/lang/en_US/csv.php | 5 ++- resources/lang/en_US/demo.php | 5 ++- resources/lang/en_US/firefly.php | 5 ++- resources/lang/en_US/form.php | 5 ++- resources/lang/en_US/import.php | 5 ++- resources/lang/en_US/intro.php | 5 ++- resources/lang/en_US/list.php | 5 ++- resources/lang/en_US/pagination.php | 5 ++- resources/lang/en_US/passwords.php | 5 ++- resources/lang/en_US/validation.php | 5 ++- 98 files changed, 512 insertions(+), 214 deletions(-) diff --git a/app/Api/V1/Controllers/AboutController.php b/app/Api/V1/Controllers/AboutController.php index e7fcc291c3..77e63b7c64 100644 --- a/app/Api/V1/Controllers/AboutController.php +++ b/app/Api/V1/Controllers/AboutController.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Api\V1\Controllers; diff --git a/app/Api/V1/Controllers/AccountController.php b/app/Api/V1/Controllers/AccountController.php index cff7969f6f..2f951fed3b 100644 --- a/app/Api/V1/Controllers/AccountController.php +++ b/app/Api/V1/Controllers/AccountController.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Api\V1\Controllers; diff --git a/app/Api/V1/Controllers/BillController.php b/app/Api/V1/Controllers/BillController.php index bbf38c444d..420b01dc16 100644 --- a/app/Api/V1/Controllers/BillController.php +++ b/app/Api/V1/Controllers/BillController.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Api\V1\Controllers; use FireflyIII\Api\V1\Requests\BillRequest; diff --git a/app/Api/V1/Controllers/Controller.php b/app/Api/V1/Controllers/Controller.php index ba49f812aa..a212ad3029 100644 --- a/app/Api/V1/Controllers/Controller.php +++ b/app/Api/V1/Controllers/Controller.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Api\V1\Controllers; use Carbon\Carbon; diff --git a/app/Api/V1/Controllers/TransactionController.php b/app/Api/V1/Controllers/TransactionController.php index 99ea62de2a..f0dbc2b246 100644 --- a/app/Api/V1/Controllers/TransactionController.php +++ b/app/Api/V1/Controllers/TransactionController.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Api\V1\Controllers; diff --git a/app/Api/V1/Controllers/UserController.php b/app/Api/V1/Controllers/UserController.php index 1cf1bece04..f2759f9e71 100644 --- a/app/Api/V1/Controllers/UserController.php +++ b/app/Api/V1/Controllers/UserController.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Api\V1\Controllers; diff --git a/app/Api/V1/Requests/AccountRequest.php b/app/Api/V1/Requests/AccountRequest.php index 44977d41e2..5a287b85ed 100644 --- a/app/Api/V1/Requests/AccountRequest.php +++ b/app/Api/V1/Requests/AccountRequest.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Api\V1\Requests; diff --git a/app/Api/V1/Requests/BillRequest.php b/app/Api/V1/Requests/BillRequest.php index f2e13aaf9f..9f68a656cd 100644 --- a/app/Api/V1/Requests/BillRequest.php +++ b/app/Api/V1/Requests/BillRequest.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Api\V1\Requests; diff --git a/app/Api/V1/Requests/Request.php b/app/Api/V1/Requests/Request.php index 509c092956..e2016dba34 100644 --- a/app/Api/V1/Requests/Request.php +++ b/app/Api/V1/Requests/Request.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Api\V1\Requests; use FireflyIII\Http\Requests\Request as FireflyIIIRequest; diff --git a/app/Api/V1/Requests/TransactionRequest.php b/app/Api/V1/Requests/TransactionRequest.php index 2b7ce5c0f9..ab03ec561a 100644 --- a/app/Api/V1/Requests/TransactionRequest.php +++ b/app/Api/V1/Requests/TransactionRequest.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Api\V1\Requests; diff --git a/app/Api/V1/Requests/UserRequest.php b/app/Api/V1/Requests/UserRequest.php index 2a1d76fe86..ba9bf54904 100644 --- a/app/Api/V1/Requests/UserRequest.php +++ b/app/Api/V1/Requests/UserRequest.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Api\V1\Requests; diff --git a/app/Console/Commands/CreateExport.php b/app/Console/Commands/CreateExport.php index 658dce8505..336c5718ff 100644 --- a/app/Console/Commands/CreateExport.php +++ b/app/Console/Commands/CreateExport.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use Carbon\Carbon; diff --git a/app/Console/Commands/CreateImport.php b/app/Console/Commands/CreateImport.php index 209ed068cf..d351c05b8d 100644 --- a/app/Console/Commands/CreateImport.php +++ b/app/Console/Commands/CreateImport.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use FireflyIII\Exceptions\FireflyException; diff --git a/app/Console/Commands/DecryptAttachment.php b/app/Console/Commands/DecryptAttachment.php index baf2414ba5..dca003e8b9 100644 --- a/app/Console/Commands/DecryptAttachment.php +++ b/app/Console/Commands/DecryptAttachment.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use FireflyIII\Repositories\Attachment\AttachmentRepositoryInterface; diff --git a/app/Console/Commands/EncryptFile.php b/app/Console/Commands/EncryptFile.php index 0e787860e7..d074897c23 100644 --- a/app/Console/Commands/EncryptFile.php +++ b/app/Console/Commands/EncryptFile.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use FireflyIII\Exceptions\FireflyException; diff --git a/app/Console/Commands/Import.php b/app/Console/Commands/Import.php index 9a12e5988f..25ec3be10a 100644 --- a/app/Console/Commands/Import.php +++ b/app/Console/Commands/Import.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use FireflyIII\Exceptions\FireflyException; diff --git a/app/Console/Commands/ScanAttachments.php b/app/Console/Commands/ScanAttachments.php index e30727488e..b23f82b1ce 100644 --- a/app/Console/Commands/ScanAttachments.php +++ b/app/Console/Commands/ScanAttachments.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use Crypt; diff --git a/app/Console/Commands/UpgradeDatabase.php b/app/Console/Commands/UpgradeDatabase.php index 9c3adc2536..9ad64d700d 100644 --- a/app/Console/Commands/UpgradeDatabase.php +++ b/app/Console/Commands/UpgradeDatabase.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use DB; diff --git a/app/Console/Commands/UpgradeFireflyInstructions.php b/app/Console/Commands/UpgradeFireflyInstructions.php index a79e62f05f..7924e609a0 100644 --- a/app/Console/Commands/UpgradeFireflyInstructions.php +++ b/app/Console/Commands/UpgradeFireflyInstructions.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use Illuminate\Console\Command; diff --git a/app/Console/Commands/UseEncryption.php b/app/Console/Commands/UseEncryption.php index e9cbde4aed..e89aff9281 100644 --- a/app/Console/Commands/UseEncryption.php +++ b/app/Console/Commands/UseEncryption.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use Illuminate\Console\Command; diff --git a/app/Console/Commands/VerifiesAccessToken.php b/app/Console/Commands/VerifiesAccessToken.php index da3225a045..c03d456b53 100644 --- a/app/Console/Commands/VerifiesAccessToken.php +++ b/app/Console/Commands/VerifiesAccessToken.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use FireflyIII\Repositories\User\UserRepositoryInterface; diff --git a/app/Console/Commands/VerifyDatabase.php b/app/Console/Commands/VerifyDatabase.php index 8db87ad4dc..08ec12f3df 100644 --- a/app/Console/Commands/VerifyDatabase.php +++ b/app/Console/Commands/VerifyDatabase.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console\Commands; use Crypt; diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 5a16876766..3f24caad90 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Console; use Illuminate\Console\Scheduling\Schedule; diff --git a/app/Events/AdminRequestedTestMessage.php b/app/Events/AdminRequestedTestMessage.php index 54858f2000..7198811a0c 100644 --- a/app/Events/AdminRequestedTestMessage.php +++ b/app/Events/AdminRequestedTestMessage.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Events; use FireflyIII\User; diff --git a/app/Events/Event.php b/app/Events/Event.php index 490238246a..41b3b0437c 100644 --- a/app/Events/Event.php +++ b/app/Events/Event.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Events; /** diff --git a/app/Events/RegisteredUser.php b/app/Events/RegisteredUser.php index 8296bcdec5..053d0b24c5 100644 --- a/app/Events/RegisteredUser.php +++ b/app/Events/RegisteredUser.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Events; use FireflyIII\User; diff --git a/app/Events/RequestedNewPassword.php b/app/Events/RequestedNewPassword.php index 566aadeed5..422cc19872 100644 --- a/app/Events/RequestedNewPassword.php +++ b/app/Events/RequestedNewPassword.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Events; use FireflyIII\User; diff --git a/app/Events/RequestedVersionCheckStatus.php b/app/Events/RequestedVersionCheckStatus.php index 1147c7cea4..6173b031af 100644 --- a/app/Events/RequestedVersionCheckStatus.php +++ b/app/Events/RequestedVersionCheckStatus.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); namespace FireflyIII\Events; diff --git a/app/Events/StoredTransactionJournal.php b/app/Events/StoredTransactionJournal.php index 2d57502558..4db12b1b35 100644 --- a/app/Events/StoredTransactionJournal.php +++ b/app/Events/StoredTransactionJournal.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Events; use FireflyIII\Models\TransactionJournal; diff --git a/app/Events/UpdatedTransactionJournal.php b/app/Events/UpdatedTransactionJournal.php index c8b08ddaa8..5c9c7f7a9b 100644 --- a/app/Events/UpdatedTransactionJournal.php +++ b/app/Events/UpdatedTransactionJournal.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Events; use FireflyIII\Models\TransactionJournal; diff --git a/app/Events/UserChangedEmail.php b/app/Events/UserChangedEmail.php index 577fcd5c86..2c2d9d8580 100644 --- a/app/Events/UserChangedEmail.php +++ b/app/Events/UserChangedEmail.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Events; use FireflyIII\User; diff --git a/app/Exceptions/FireflyException.php b/app/Exceptions/FireflyException.php index 2dddf3e3c7..16c24f25aa 100644 --- a/app/Exceptions/FireflyException.php +++ b/app/Exceptions/FireflyException.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Exceptions; use Exception; diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index f3fc3e628c..45570ef71a 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Exceptions; use ErrorException; diff --git a/app/Exceptions/NotImplementedException.php b/app/Exceptions/NotImplementedException.php index e05cccd6fe..7254d56d34 100644 --- a/app/Exceptions/NotImplementedException.php +++ b/app/Exceptions/NotImplementedException.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Exceptions; /** diff --git a/app/Exceptions/ValidationException.php b/app/Exceptions/ValidationException.php index e0443c126e..602b4df9b0 100644 --- a/app/Exceptions/ValidationException.php +++ b/app/Exceptions/ValidationException.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Exceptions; /** diff --git a/app/Export/Collector/AttachmentCollector.php b/app/Export/Collector/AttachmentCollector.php index 244cc919ed..0db72ed3a2 100644 --- a/app/Export/Collector/AttachmentCollector.php +++ b/app/Export/Collector/AttachmentCollector.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Export\Collector; use Carbon\Carbon; diff --git a/app/Export/Collector/BasicCollector.php b/app/Export/Collector/BasicCollector.php index 38b357ea0d..bc19f1f541 100644 --- a/app/Export/Collector/BasicCollector.php +++ b/app/Export/Collector/BasicCollector.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Export\Collector; use FireflyIII\Models\ExportJob; diff --git a/app/Export/Collector/CollectorInterface.php b/app/Export/Collector/CollectorInterface.php index 11c0f53271..bd40c82f29 100644 --- a/app/Export/Collector/CollectorInterface.php +++ b/app/Export/Collector/CollectorInterface.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Export\Collector; use FireflyIII\Models\ExportJob; diff --git a/app/Export/Collector/UploadCollector.php b/app/Export/Collector/UploadCollector.php index fccc32814a..dd8c71e769 100644 --- a/app/Export/Collector/UploadCollector.php +++ b/app/Export/Collector/UploadCollector.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Export\Collector; use Crypt; diff --git a/app/Export/Entry/Entry.php b/app/Export/Entry/Entry.php index a91b50e45f..55886a2697 100644 --- a/app/Export/Entry/Entry.php +++ b/app/Export/Entry/Entry.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Export\Entry; use FireflyIII\Models\Transaction; diff --git a/app/Export/ExpandedProcessor.php b/app/Export/ExpandedProcessor.php index 33db5e518b..d8ad004f9f 100644 --- a/app/Export/ExpandedProcessor.php +++ b/app/Export/ExpandedProcessor.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Export; use Crypt; diff --git a/app/Export/Exporter/BasicExporter.php b/app/Export/Exporter/BasicExporter.php index ee618c2bb2..02826171c2 100644 --- a/app/Export/Exporter/BasicExporter.php +++ b/app/Export/Exporter/BasicExporter.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Export\Exporter; use FireflyIII\Models\ExportJob; diff --git a/app/Export/Exporter/CsvExporter.php b/app/Export/Exporter/CsvExporter.php index 8eec22225c..e323b94bf9 100644 --- a/app/Export/Exporter/CsvExporter.php +++ b/app/Export/Exporter/CsvExporter.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Export\Exporter; use FireflyIII\Export\Entry\Entry; diff --git a/app/Export/Exporter/ExporterInterface.php b/app/Export/Exporter/ExporterInterface.php index f9c35b8d04..f10e763dab 100644 --- a/app/Export/Exporter/ExporterInterface.php +++ b/app/Export/Exporter/ExporterInterface.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Export\Exporter; use FireflyIII\Models\ExportJob; diff --git a/app/Export/ProcessorInterface.php b/app/Export/ProcessorInterface.php index c255eb7713..ad8745cc7c 100644 --- a/app/Export/ProcessorInterface.php +++ b/app/Export/ProcessorInterface.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Export; use Illuminate\Support\Collection; diff --git a/app/Factory/AccountFactory.php b/app/Factory/AccountFactory.php index 8c035c8548..81383d4143 100644 --- a/app/Factory/AccountFactory.php +++ b/app/Factory/AccountFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/AccountMetaFactory.php b/app/Factory/AccountMetaFactory.php index c514e182f8..ba2172a30d 100644 --- a/app/Factory/AccountMetaFactory.php +++ b/app/Factory/AccountMetaFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/BillFactory.php b/app/Factory/BillFactory.php index 28b4a3544d..94327af9ee 100644 --- a/app/Factory/BillFactory.php +++ b/app/Factory/BillFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/BudgetFactory.php b/app/Factory/BudgetFactory.php index bd96712658..ba9315f4ec 100644 --- a/app/Factory/BudgetFactory.php +++ b/app/Factory/BudgetFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Factory; diff --git a/app/Factory/CategoryFactory.php b/app/Factory/CategoryFactory.php index 5bc20ec485..ff80a61a7b 100644 --- a/app/Factory/CategoryFactory.php +++ b/app/Factory/CategoryFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/PiggyBankEventFactory.php b/app/Factory/PiggyBankEventFactory.php index d55ba7dc8f..d4a586ba03 100644 --- a/app/Factory/PiggyBankEventFactory.php +++ b/app/Factory/PiggyBankEventFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/PiggyBankFactory.php b/app/Factory/PiggyBankFactory.php index 1f8ecf617d..ce398c3697 100644 --- a/app/Factory/PiggyBankFactory.php +++ b/app/Factory/PiggyBankFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TagFactory.php b/app/Factory/TagFactory.php index 09e9212a27..1fdd0e74a8 100644 --- a/app/Factory/TagFactory.php +++ b/app/Factory/TagFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TransactionCurrencyFactory.php b/app/Factory/TransactionCurrencyFactory.php index 2196cf4594..3cee423c42 100644 --- a/app/Factory/TransactionCurrencyFactory.php +++ b/app/Factory/TransactionCurrencyFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.php index a395793694..473f2e3c37 100644 --- a/app/Factory/TransactionFactory.php +++ b/app/Factory/TransactionFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TransactionJournalFactory.php b/app/Factory/TransactionJournalFactory.php index 816fe9ea58..e71bb1aed5 100644 --- a/app/Factory/TransactionJournalFactory.php +++ b/app/Factory/TransactionJournalFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TransactionJournalMetaFactory.php b/app/Factory/TransactionJournalMetaFactory.php index 4be44a8bbe..4289b31b7a 100644 --- a/app/Factory/TransactionJournalMetaFactory.php +++ b/app/Factory/TransactionJournalMetaFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TransactionTypeFactory.php b/app/Factory/TransactionTypeFactory.php index 8a36869407..03db2cbd13 100644 --- a/app/Factory/TransactionTypeFactory.php +++ b/app/Factory/TransactionTypeFactory.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index 394f04d01a..8241ca82df 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -1,5 +1,4 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Http\Middleware; use Closure; diff --git a/app/Http/Middleware/Installer.php b/app/Http/Middleware/Installer.php index 1afa004cdf..2f8f73a654 100644 --- a/app/Http/Middleware/Installer.php +++ b/app/Http/Middleware/Installer.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); namespace FireflyIII\Http\Middleware; diff --git a/app/Import/JobConfiguration/FileJobConfiguration.php b/app/Import/JobConfiguration/FileJobConfiguration.php index 75b97c8aaf..19764c8806 100644 --- a/app/Import/JobConfiguration/FileJobConfiguration.php +++ b/app/Import/JobConfiguration/FileJobConfiguration.php @@ -1,5 +1,5 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Import\JobConfiguration; diff --git a/app/Import/Storage/ImportArrayStorage.php b/app/Import/Storage/ImportArrayStorage.php index 294dc9c5e5..a65a3bf8a3 100644 --- a/app/Import/Storage/ImportArrayStorage.php +++ b/app/Import/Storage/ImportArrayStorage.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); namespace FireflyIII\Import\Storage; diff --git a/app/Rules/BelongsUser.php b/app/Rules/BelongsUser.php index 91acc6cc54..c96ba66a19 100644 --- a/app/Rules/BelongsUser.php +++ b/app/Rules/BelongsUser.php @@ -1,6 +1,4 @@ . */ +declare(strict_types=1); + namespace FireflyIII\Rules; use FireflyIII\Exceptions\FireflyException; diff --git a/app/Rules/ValidTransactions.php b/app/Rules/ValidTransactions.php index d60f4cc679..888c98adf7 100644 --- a/app/Rules/ValidTransactions.php +++ b/app/Rules/ValidTransactions.php @@ -1,6 +1,4 @@ . */ +declare(strict_types=1); + + namespace FireflyIII\Rules; use FireflyIII\Models\Transaction; diff --git a/app/Support/Import/Routine/Fake/StageFinalHandler.php b/app/Support/Import/Routine/Fake/StageFinalHandler.php index 94f48ce3f9..7f8bf81f14 100644 --- a/app/Support/Import/Routine/Fake/StageFinalHandler.php +++ b/app/Support/Import/Routine/Fake/StageFinalHandler.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); namespace FireflyIII\Support\Import\Routine\Fake; diff --git a/app/User.php b/app/User.php index 27b9f1bea7..b9a4de5107 100644 --- a/app/User.php +++ b/app/User.php @@ -1,8 +1,8 @@ . */ +declare(strict_types=1); + namespace FireflyIII; use FireflyIII\Events\RequestedNewPassword; diff --git a/config/breadcrumbs.php b/config/breadcrumbs.php index ea323c8789..716bb21787 100644 --- a/config/breadcrumbs.php +++ b/config/breadcrumbs.php @@ -1,6 +1,4 @@ . */ +declare(strict_types=1); + return [ /* diff --git a/config/csv.php b/config/csv.php index 8f6ff88f9a..4af268d126 100644 --- a/config/csv.php +++ b/config/csv.php @@ -1,15 +1,8 @@ . */ +declare(strict_types=1); + +use FireflyIII\Import\Specifics\AbnAmroDescription; +use FireflyIII\Import\Specifics\IngDescription; +use FireflyIII\Import\Specifics\PresidentsChoice; +use FireflyIII\Import\Specifics\RabobankDescription; +use FireflyIII\Import\Specifics\SnsDescription; return [ diff --git a/config/firefly.php b/config/firefly.php index 57132bc997..850190388d 100644 --- a/config/firefly.php +++ b/config/firefly.php @@ -1,5 +1,26 @@ . + */ + declare(strict_types=1); use FireflyIII\Export\Exporter\CsvExporter; @@ -55,31 +76,10 @@ use FireflyIII\TransactionRules\Triggers\ToAccountStarts; use FireflyIII\TransactionRules\Triggers\TransactionType; use FireflyIII\TransactionRules\Triggers\UserAction; -/** - * firefly.php - * Copyright (c) 2017 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 . - */ - - /* * DO NOT EDIT THIS FILE. IT IS AUTO GENERATED. * - * ANY OPTIONS IN THIS FILE YOU CAN SAFELY EDIT CAN BE FOUND IN THE USER INTERFACE OF FIRFELY III. + * ANY OPTIONS IN THIS FILE YOU CAN SAFELY EDIT CAN BE FOUND IN THE USER INTERFACE OF FIREFLY III. */ return [ diff --git a/config/google2fa.php b/config/google2fa.php index 2ff91b26c2..ff1ec61523 100644 --- a/config/google2fa.php +++ b/config/google2fa.php @@ -1,6 +1,4 @@ . */ +declare(strict_types=1); + + return [ /* diff --git a/config/hashing.php b/config/hashing.php index 77a4458077..daecb9634d 100644 --- a/config/hashing.php +++ b/config/hashing.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); return [ diff --git a/config/import.php b/config/import.php index 46a0b06687..9b022e7abc 100644 --- a/config/import.php +++ b/config/import.php @@ -1,22 +1,8 @@ . */ +declare(strict_types=1); + +use FireflyIII\Import\Configuration\BunqConfigurator; +use FireflyIII\Import\Configuration\SpectreConfigurator; +use FireflyIII\Import\JobConfiguration\FakeJobConfiguration; +use FireflyIII\Import\JobConfiguration\FileJobConfiguration; +use FireflyIII\Import\Prerequisites\BunqPrerequisites; +use FireflyIII\Import\Prerequisites\FakePrerequisites; +use FireflyIII\Import\Prerequisites\SpectrePrerequisites; +use FireflyIII\Import\Routine\BunqRoutine; +use FireflyIII\Import\Routine\FakeRoutine; +use FireflyIII\Import\Routine\FileRoutine; +use FireflyIII\Import\Routine\SpectreRoutine; +use FireflyIII\Support\Import\Routine\File\CSVProcessor; return [ 'enabled' => [ diff --git a/config/twigbridge.php b/config/twigbridge.php index 46aa7f0f50..f4a2c2167a 100644 --- a/config/twigbridge.php +++ b/config/twigbridge.php @@ -1,22 +1,8 @@ . */ +declare(strict_types=1); + +use TwigBridge\Extension\Laravel\Auth; +use TwigBridge\Extension\Laravel\Config; +use TwigBridge\Extension\Laravel\Dump; +use TwigBridge\Extension\Laravel\Input; +use TwigBridge\Extension\Laravel\Session; +use TwigBridge\Extension\Laravel\Str; +use TwigBridge\Extension\Laravel\Translator; +use TwigBridge\Extension\Laravel\Url; +use TwigBridge\Extension\Loader\Facades; +use TwigBridge\Extension\Loader\Filters; +use TwigBridge\Extension\Loader\Functions; +use TwigBridge\Twig\Template; /** * Configuration options for Twig. diff --git a/database/migrations/2018_01_01_000001_create_oauth_auth_codes_table.php b/database/migrations/2018_01_01_000001_create_oauth_auth_codes_table.php index 9ea338668d..068f187e0d 100644 --- a/database/migrations/2018_01_01_000001_create_oauth_auth_codes_table.php +++ b/database/migrations/2018_01_01_000001_create_oauth_auth_codes_table.php @@ -1,7 +1,6 @@ . */ +declare(strict_types=1); + use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; diff --git a/database/migrations/2018_01_01_000002_create_oauth_access_tokens_table.php b/database/migrations/2018_01_01_000002_create_oauth_access_tokens_table.php index 4c9574d3e8..00889896fb 100644 --- a/database/migrations/2018_01_01_000002_create_oauth_access_tokens_table.php +++ b/database/migrations/2018_01_01_000002_create_oauth_access_tokens_table.php @@ -1,7 +1,6 @@ . */ +declare(strict_types=1); + use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; diff --git a/database/migrations/2018_01_01_000003_create_oauth_refresh_tokens_table.php b/database/migrations/2018_01_01_000003_create_oauth_refresh_tokens_table.php index db3a09a15e..1d6199d904 100644 --- a/database/migrations/2018_01_01_000003_create_oauth_refresh_tokens_table.php +++ b/database/migrations/2018_01_01_000003_create_oauth_refresh_tokens_table.php @@ -1,7 +1,6 @@ . */ +declare(strict_types=1); + use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; diff --git a/database/migrations/2018_01_01_000004_create_oauth_clients_table.php b/database/migrations/2018_01_01_000004_create_oauth_clients_table.php index 7a93146474..cbd08eb1db 100644 --- a/database/migrations/2018_01_01_000004_create_oauth_clients_table.php +++ b/database/migrations/2018_01_01_000004_create_oauth_clients_table.php @@ -1,7 +1,6 @@ . */ +declare(strict_types=1); + use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; diff --git a/database/migrations/2018_01_01_000005_create_oauth_personal_access_clients_table.php b/database/migrations/2018_01_01_000005_create_oauth_personal_access_clients_table.php index 9ec29ce525..e584f7fc4b 100644 --- a/database/migrations/2018_01_01_000005_create_oauth_personal_access_clients_table.php +++ b/database/migrations/2018_01_01_000005_create_oauth_personal_access_clients_table.php @@ -1,7 +1,6 @@ . */ +declare(strict_types=1); + use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; diff --git a/database/migrations/2018_03_19_141348_changes_for_v472.php b/database/migrations/2018_03_19_141348_changes_for_v472.php index 0960d6e381..00997e749e 100644 --- a/database/migrations/2018_03_19_141348_changes_for_v472.php +++ b/database/migrations/2018_03_19_141348_changes_for_v472.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); use Illuminate\Database\Migrations\Migration; diff --git a/database/migrations/2018_04_07_210913_changes_for_v473.php b/database/migrations/2018_04_07_210913_changes_for_v473.php index bdb3b43e0e..a6067a92e7 100644 --- a/database/migrations/2018_04_07_210913_changes_for_v473.php +++ b/database/migrations/2018_04_07_210913_changes_for_v473.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); use Illuminate\Database\Migrations\Migration; diff --git a/database/migrations/2018_04_29_174524_changes_for_v474.php b/database/migrations/2018_04_29_174524_changes_for_v474.php index c0fa438549..cdc6208f35 100644 --- a/database/migrations/2018_04_29_174524_changes_for_v474.php +++ b/database/migrations/2018_04_29_174524_changes_for_v474.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); use Illuminate\Database\Migrations\Migration; diff --git a/database/seeds/ConfigSeeder.php b/database/seeds/ConfigSeeder.php index e37857aa81..e5c8d250d5 100644 --- a/database/seeds/ConfigSeeder.php +++ b/database/seeds/ConfigSeeder.php @@ -1,5 +1,26 @@ . + */ + use FireflyIII\Models\Configuration; use Illuminate\Database\Seeder; diff --git a/public/js/ff/import/file/configure-upload.js b/public/js/ff/import/file/configure-upload.js index d2c211980e..ec138f6f71 100644 --- a/public/js/ff/import/file/configure-upload.js +++ b/public/js/ff/import/file/configure-upload.js @@ -1,3 +1,23 @@ +/* + * configure-upload.js + * 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 . + */ + $(function () { "use strict"; diff --git a/resources/lang/en_US/auth.php b/resources/lang/en_US/auth.php index ccd226ea90..a8a29b2131 100644 --- a/resources/lang/en_US/auth.php +++ b/resources/lang/en_US/auth.php @@ -1,9 +1,8 @@ . */ -return [ - /* - |-------------------------------------------------------------------------- - | Authentication Language Lines - |-------------------------------------------------------------------------- - | - | The following language lines are used during authentication for various - | messages that we need to display to the user. You are free to modify - | these language lines according to your application's requirements. - | - */ +declare(strict_types=1); +return [ 'failed' => 'These credentials do not match our records.', 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', ]; diff --git a/resources/lang/en_US/bank.php b/resources/lang/en_US/bank.php index 8826020cbf..5d00b1e685 100644 --- a/resources/lang/en_US/bank.php +++ b/resources/lang/en_US/bank.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ ]; diff --git a/resources/lang/en_US/breadcrumbs.php b/resources/lang/en_US/breadcrumbs.php index 88ebc2aa8b..3a98e01f6f 100644 --- a/resources/lang/en_US/breadcrumbs.php +++ b/resources/lang/en_US/breadcrumbs.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ 'home' => 'Home', 'edit_currency' => 'Edit currency ":name"', diff --git a/resources/lang/en_US/components.php b/resources/lang/en_US/components.php index 50092e06fd..6299088f8e 100644 --- a/resources/lang/en_US/components.php +++ b/resources/lang/en_US/components.php @@ -1,5 +1,4 @@ . */ +declare(strict_types=1); + return [ // profile 'personal_access_tokens' => 'Personal access tokens', diff --git a/resources/lang/en_US/config.php b/resources/lang/en_US/config.php index b435777385..f7a905591f 100644 --- a/resources/lang/en_US/config.php +++ b/resources/lang/en_US/config.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ 'html_language' => 'en', 'locale' => 'en, English, en_US, en_US.utf8, en_US.UTF-8', diff --git a/resources/lang/en_US/csv.php b/resources/lang/en_US/csv.php index 622a49202a..aae109a40a 100644 --- a/resources/lang/en_US/csv.php +++ b/resources/lang/en_US/csv.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ ]; diff --git a/resources/lang/en_US/demo.php b/resources/lang/en_US/demo.php index 8de0eb8fb2..05cd427835 100644 --- a/resources/lang/en_US/demo.php +++ b/resources/lang/en_US/demo.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ 'no_demo_text' => 'Sorry, there is no extra demo-explanation text for this page.', 'see_help_icon' => 'However, the -icon in the top right corner may tell you more.', diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index 3062b2aeab..2f3f7025b7 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ // general stuff: 'close' => 'Close', diff --git a/resources/lang/en_US/form.php b/resources/lang/en_US/form.php index 5f8eb6d92f..39955eb731 100644 --- a/resources/lang/en_US/form.php +++ b/resources/lang/en_US/form.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ // new user: 'bank_name' => 'Bank name', diff --git a/resources/lang/en_US/import.php b/resources/lang/en_US/import.php index afba73d3c9..8a07cc6320 100644 --- a/resources/lang/en_US/import.php +++ b/resources/lang/en_US/import.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ // ALL breadcrumbs and subtitles: 'index_breadcrumb' => 'Import data into Firefly III', diff --git a/resources/lang/en_US/intro.php b/resources/lang/en_US/intro.php index 1d442a8d48..dd24288522 100644 --- a/resources/lang/en_US/intro.php +++ b/resources/lang/en_US/intro.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ // index 'index_intro' => 'Welcome to the index page of Firefly III. Please take the time to walk through this intro to get a feeling of how Firefly III works.', diff --git a/resources/lang/en_US/list.php b/resources/lang/en_US/list.php index 27036cd560..f7b99e2c1c 100644 --- a/resources/lang/en_US/list.php +++ b/resources/lang/en_US/list.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ 'buttons' => 'Buttons', 'icon' => 'Icon', diff --git a/resources/lang/en_US/pagination.php b/resources/lang/en_US/pagination.php index 8bdf7ed01d..cdf4ca9a6d 100644 --- a/resources/lang/en_US/pagination.php +++ b/resources/lang/en_US/pagination.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ 'previous' => '« Previous', 'next' => 'Next »', diff --git a/resources/lang/en_US/passwords.php b/resources/lang/en_US/passwords.php index 72f4f769a7..7ab0503080 100644 --- a/resources/lang/en_US/passwords.php +++ b/resources/lang/en_US/passwords.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ 'password' => 'Passwords must be at least six characters and match the confirmation.', 'user' => 'We can\'t find a user with that e-mail address.', diff --git a/resources/lang/en_US/validation.php b/resources/lang/en_US/validation.php index 46988a77d6..c22f0145b6 100644 --- a/resources/lang/en_US/validation.php +++ b/resources/lang/en_US/validation.php @@ -1,9 +1,8 @@ . */ +declare(strict_types=1); + return [ 'iban' => 'This is not a valid IBAN.', 'source_equals_destination' => 'The source account equals the destination account',