From ed33a72945df3616d09df017f9b6b0a505ce4236 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 19 Mar 2018 12:09:12 +0100 Subject: [PATCH] Make sure that strict_types declaration is always at the very top of the file. --- app/Console/Commands/CreateExport.php | 2 +- app/Console/Commands/CreateImport.php | 2 +- app/Console/Commands/DecryptAttachment.php | 2 +- app/Console/Commands/EncryptFile.php | 2 +- app/Console/Commands/Import.php | 2 +- app/Console/Commands/ScanAttachments.php | 2 +- app/Console/Commands/UpgradeDatabase.php | 2 +- app/Console/Commands/UpgradeFireflyInstructions.php | 2 +- app/Console/Commands/UseEncryption.php | 2 +- app/Console/Commands/VerifiesAccessToken.php | 2 +- app/Console/Commands/VerifyDatabase.php | 2 +- app/Console/Kernel.php | 2 +- app/Events/AdminRequestedTestMessage.php | 2 +- app/Events/Event.php | 2 +- app/Events/RegisteredUser.php | 2 +- app/Events/RequestedNewPassword.php | 2 +- app/Events/RequestedVersionCheckStatus.php | 2 +- app/Events/StoredTransactionJournal.php | 2 +- app/Events/UpdatedTransactionJournal.php | 2 +- app/Events/UserChangedEmail.php | 2 +- app/Exceptions/FireflyException.php | 2 +- app/Exceptions/Handler.php | 2 +- app/Exceptions/NotImplementedException.php | 2 +- app/Exceptions/ValidationException.php | 2 +- app/Export/Collector/AttachmentCollector.php | 2 +- app/Export/Collector/BasicCollector.php | 2 +- app/Export/Collector/CollectorInterface.php | 2 +- app/Export/Collector/UploadCollector.php | 2 +- app/Export/Entry/Entry.php | 2 +- app/Export/ExpandedProcessor.php | 2 +- app/Export/Exporter/BasicExporter.php | 2 +- app/Export/Exporter/CsvExporter.php | 2 +- app/Export/Exporter/ExporterInterface.php | 2 +- app/Export/ProcessorInterface.php | 2 +- app/Factory/AccountFactory.php | 2 +- app/Factory/AccountMetaFactory.php | 2 +- app/Factory/BillFactory.php | 2 +- app/Factory/BudgetFactory.php | 2 +- app/Factory/CategoryFactory.php | 2 +- app/Factory/PiggyBankEventFactory.php | 2 +- app/Factory/PiggyBankFactory.php | 2 +- app/Factory/TagFactory.php | 2 +- app/Factory/TransactionCurrencyFactory.php | 2 +- app/Factory/TransactionFactory.php | 2 +- app/Factory/TransactionJournalFactory.php | 2 +- app/Factory/TransactionJournalMetaFactory.php | 2 +- app/Factory/TransactionTypeFactory.php | 2 +- 47 files changed, 47 insertions(+), 47 deletions(-) diff --git a/app/Console/Commands/CreateExport.php b/app/Console/Commands/CreateExport.php index c38acfa3b9..2a8076e883 100644 --- a/app/Console/Commands/CreateExport.php +++ b/app/Console/Commands/CreateExport.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/CreateImport.php b/app/Console/Commands/CreateImport.php index 07fe3d734d..4f4bf60fee 100644 --- a/app/Console/Commands/CreateImport.php +++ b/app/Console/Commands/CreateImport.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/DecryptAttachment.php b/app/Console/Commands/DecryptAttachment.php index 00f30daa5d..730a402134 100644 --- a/app/Console/Commands/DecryptAttachment.php +++ b/app/Console/Commands/DecryptAttachment.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/EncryptFile.php b/app/Console/Commands/EncryptFile.php index 97bb228678..5a712b0c56 100644 --- a/app/Console/Commands/EncryptFile.php +++ b/app/Console/Commands/EncryptFile.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/Import.php b/app/Console/Commands/Import.php index 7d7a735c82..04c7b5bb5e 100644 --- a/app/Console/Commands/Import.php +++ b/app/Console/Commands/Import.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/ScanAttachments.php b/app/Console/Commands/ScanAttachments.php index 060f3b06a6..d13bcd7a54 100644 --- a/app/Console/Commands/ScanAttachments.php +++ b/app/Console/Commands/ScanAttachments.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/UpgradeDatabase.php b/app/Console/Commands/UpgradeDatabase.php index d0c7b10028..4342e1666e 100644 --- a/app/Console/Commands/UpgradeDatabase.php +++ b/app/Console/Commands/UpgradeDatabase.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/UpgradeFireflyInstructions.php b/app/Console/Commands/UpgradeFireflyInstructions.php index f6acbe9bee..375ef4b5ec 100644 --- a/app/Console/Commands/UpgradeFireflyInstructions.php +++ b/app/Console/Commands/UpgradeFireflyInstructions.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/UseEncryption.php b/app/Console/Commands/UseEncryption.php index 0809ec08b2..b772a6a2fe 100644 --- a/app/Console/Commands/UseEncryption.php +++ b/app/Console/Commands/UseEncryption.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/VerifiesAccessToken.php b/app/Console/Commands/VerifiesAccessToken.php index f2bd65a49c..f36ef067b1 100644 --- a/app/Console/Commands/VerifiesAccessToken.php +++ b/app/Console/Commands/VerifiesAccessToken.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/VerifyDatabase.php b/app/Console/Commands/VerifyDatabase.php index e11b69159e..3a0137d074 100644 --- a/app/Console/Commands/VerifyDatabase.php +++ b/app/Console/Commands/VerifyDatabase.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 316260b8a0..5a16876766 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Console; diff --git a/app/Events/AdminRequestedTestMessage.php b/app/Events/AdminRequestedTestMessage.php index c9a9fd5ab4..54858f2000 100644 --- a/app/Events/AdminRequestedTestMessage.php +++ b/app/Events/AdminRequestedTestMessage.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Events; diff --git a/app/Events/Event.php b/app/Events/Event.php index 59c1ec66de..490238246a 100644 --- a/app/Events/Event.php +++ b/app/Events/Event.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Events; diff --git a/app/Events/RegisteredUser.php b/app/Events/RegisteredUser.php index 027dccf6bc..8296bcdec5 100644 --- a/app/Events/RegisteredUser.php +++ b/app/Events/RegisteredUser.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Events; diff --git a/app/Events/RequestedNewPassword.php b/app/Events/RequestedNewPassword.php index 81a7dfc987..566aadeed5 100644 --- a/app/Events/RequestedNewPassword.php +++ b/app/Events/RequestedNewPassword.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Events; diff --git a/app/Events/RequestedVersionCheckStatus.php b/app/Events/RequestedVersionCheckStatus.php index df6f2c8948..1147c7cea4 100644 --- a/app/Events/RequestedVersionCheckStatus.php +++ b/app/Events/RequestedVersionCheckStatus.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Events; diff --git a/app/Events/StoredTransactionJournal.php b/app/Events/StoredTransactionJournal.php index 082a092e2b..e84af71e9f 100644 --- a/app/Events/StoredTransactionJournal.php +++ b/app/Events/StoredTransactionJournal.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Events; diff --git a/app/Events/UpdatedTransactionJournal.php b/app/Events/UpdatedTransactionJournal.php index 16b5f0adb0..7e9fee87ce 100644 --- a/app/Events/UpdatedTransactionJournal.php +++ b/app/Events/UpdatedTransactionJournal.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Events; diff --git a/app/Events/UserChangedEmail.php b/app/Events/UserChangedEmail.php index 52027b9d70..577fcd5c86 100644 --- a/app/Events/UserChangedEmail.php +++ b/app/Events/UserChangedEmail.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Events; diff --git a/app/Exceptions/FireflyException.php b/app/Exceptions/FireflyException.php index ba10b6168e..2dddf3e3c7 100644 --- a/app/Exceptions/FireflyException.php +++ b/app/Exceptions/FireflyException.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Exceptions; diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index a024203d97..dee948baa3 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Exceptions; diff --git a/app/Exceptions/NotImplementedException.php b/app/Exceptions/NotImplementedException.php index 467c5e3bc7..e05cccd6fe 100644 --- a/app/Exceptions/NotImplementedException.php +++ b/app/Exceptions/NotImplementedException.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Exceptions; diff --git a/app/Exceptions/ValidationException.php b/app/Exceptions/ValidationException.php index 236c862cc3..e0443c126e 100644 --- a/app/Exceptions/ValidationException.php +++ b/app/Exceptions/ValidationException.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Exceptions; diff --git a/app/Export/Collector/AttachmentCollector.php b/app/Export/Collector/AttachmentCollector.php index c4c52cbf29..478fd5eeac 100644 --- a/app/Export/Collector/AttachmentCollector.php +++ b/app/Export/Collector/AttachmentCollector.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Export\Collector; diff --git a/app/Export/Collector/BasicCollector.php b/app/Export/Collector/BasicCollector.php index d17cb810fc..38b357ea0d 100644 --- a/app/Export/Collector/BasicCollector.php +++ b/app/Export/Collector/BasicCollector.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Export\Collector; diff --git a/app/Export/Collector/CollectorInterface.php b/app/Export/Collector/CollectorInterface.php index 5aa2d22ca8..11c0f53271 100644 --- a/app/Export/Collector/CollectorInterface.php +++ b/app/Export/Collector/CollectorInterface.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Export\Collector; diff --git a/app/Export/Collector/UploadCollector.php b/app/Export/Collector/UploadCollector.php index 47c7cb8f09..7100c35287 100644 --- a/app/Export/Collector/UploadCollector.php +++ b/app/Export/Collector/UploadCollector.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Export\Collector; diff --git a/app/Export/Entry/Entry.php b/app/Export/Entry/Entry.php index 63f0c5ea43..82e1d38358 100644 --- a/app/Export/Entry/Entry.php +++ b/app/Export/Entry/Entry.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Export\Entry; diff --git a/app/Export/ExpandedProcessor.php b/app/Export/ExpandedProcessor.php index 9539dcc3de..e90f135d5b 100644 --- a/app/Export/ExpandedProcessor.php +++ b/app/Export/ExpandedProcessor.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Export; diff --git a/app/Export/Exporter/BasicExporter.php b/app/Export/Exporter/BasicExporter.php index be63ba6676..ee618c2bb2 100644 --- a/app/Export/Exporter/BasicExporter.php +++ b/app/Export/Exporter/BasicExporter.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Export\Exporter; diff --git a/app/Export/Exporter/CsvExporter.php b/app/Export/Exporter/CsvExporter.php index 012e4d6e2b..78945230e8 100644 --- a/app/Export/Exporter/CsvExporter.php +++ b/app/Export/Exporter/CsvExporter.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Export\Exporter; diff --git a/app/Export/Exporter/ExporterInterface.php b/app/Export/Exporter/ExporterInterface.php index 427b5fed85..f9c35b8d04 100644 --- a/app/Export/Exporter/ExporterInterface.php +++ b/app/Export/Exporter/ExporterInterface.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Export\Exporter; diff --git a/app/Export/ProcessorInterface.php b/app/Export/ProcessorInterface.php index 106c708c41..c255eb7713 100644 --- a/app/Export/ProcessorInterface.php +++ b/app/Export/ProcessorInterface.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Export; diff --git a/app/Factory/AccountFactory.php b/app/Factory/AccountFactory.php index 065876cb9e..5780142e00 100644 --- a/app/Factory/AccountFactory.php +++ b/app/Factory/AccountFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/AccountMetaFactory.php b/app/Factory/AccountMetaFactory.php index 67667d76ef..c514e182f8 100644 --- a/app/Factory/AccountMetaFactory.php +++ b/app/Factory/AccountMetaFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/BillFactory.php b/app/Factory/BillFactory.php index 15d1e38655..dabd71f412 100644 --- a/app/Factory/BillFactory.php +++ b/app/Factory/BillFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/BudgetFactory.php b/app/Factory/BudgetFactory.php index 0a4f9704f9..001b509852 100644 --- a/app/Factory/BudgetFactory.php +++ b/app/Factory/BudgetFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/CategoryFactory.php b/app/Factory/CategoryFactory.php index 1b5c4f1cf3..c71d3d202d 100644 --- a/app/Factory/CategoryFactory.php +++ b/app/Factory/CategoryFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/PiggyBankEventFactory.php b/app/Factory/PiggyBankEventFactory.php index c5a88bb3a7..f5e0005387 100644 --- a/app/Factory/PiggyBankEventFactory.php +++ b/app/Factory/PiggyBankEventFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/PiggyBankFactory.php b/app/Factory/PiggyBankFactory.php index fdbd37ef46..4eb5f232ee 100644 --- a/app/Factory/PiggyBankFactory.php +++ b/app/Factory/PiggyBankFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TagFactory.php b/app/Factory/TagFactory.php index d9e41a7d85..ea9f36ec73 100644 --- a/app/Factory/TagFactory.php +++ b/app/Factory/TagFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TransactionCurrencyFactory.php b/app/Factory/TransactionCurrencyFactory.php index 25bf06fdcf..c73fe74f93 100644 --- a/app/Factory/TransactionCurrencyFactory.php +++ b/app/Factory/TransactionCurrencyFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.php index 9ea92e73d2..5dfdc9c60c 100644 --- a/app/Factory/TransactionFactory.php +++ b/app/Factory/TransactionFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TransactionJournalFactory.php b/app/Factory/TransactionJournalFactory.php index 5612c0fb99..32c11968c0 100644 --- a/app/Factory/TransactionJournalFactory.php +++ b/app/Factory/TransactionJournalFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TransactionJournalMetaFactory.php b/app/Factory/TransactionJournalMetaFactory.php index 1985907613..4e0e2a18df 100644 --- a/app/Factory/TransactionJournalMetaFactory.php +++ b/app/Factory/TransactionJournalMetaFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory; diff --git a/app/Factory/TransactionTypeFactory.php b/app/Factory/TransactionTypeFactory.php index f19f0d87a4..8a36869407 100644 --- a/app/Factory/TransactionTypeFactory.php +++ b/app/Factory/TransactionTypeFactory.php @@ -1,4 +1,5 @@ . */ -declare(strict_types=1); namespace FireflyIII\Factory;