diff --git a/.ci/phpstan.sh b/.ci/phpstan.sh index 175f7b8c14..01e34546b3 100755 --- a/.ci/phpstan.sh +++ b/.ci/phpstan.sh @@ -1,5 +1,25 @@ #!/usr/bin/env bash +# +# phpstan.sh +# Copyright (c) 2021 james@firefly-iii.org +# +# 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 . +# + # Install composer packages composer install --no-scripts --no-ansi diff --git a/.ci/phpunit.sh b/.ci/phpunit.sh index 6a2ff64bc9..c96fa69e96 100755 --- a/.ci/phpunit.sh +++ b/.ci/phpunit.sh @@ -1,5 +1,25 @@ #!/usr/bin/env bash +# +# phpunit.sh +# Copyright (c) 2021 james@firefly-iii.org +# +# 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 . +# + # enable test .env file. cp .ci/.env.ci ../.env diff --git a/app/Api/V1/Controllers/Insight/Expense/DateController.php b/app/Api/V1/Controllers/Insight/Expense/DateController.php index ee47dd7b14..474649bb04 100644 --- a/app/Api/V1/Controllers/Insight/Expense/DateController.php +++ b/app/Api/V1/Controllers/Insight/Expense/DateController.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * DateController.php diff --git a/app/Api/V1/Controllers/Insight/Income/DateController.php b/app/Api/V1/Controllers/Insight/Income/DateController.php index 58cad852d2..2255dab30f 100644 --- a/app/Api/V1/Controllers/Insight/Income/DateController.php +++ b/app/Api/V1/Controllers/Insight/Income/DateController.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * DateController.php diff --git a/app/Api/V1/Controllers/Preferences/IndexController.php b/app/Api/V1/Controllers/Preferences/IndexController.php index b4c5551079..df58dcaf9e 100644 --- a/app/Api/V1/Controllers/Preferences/IndexController.php +++ b/app/Api/V1/Controllers/Preferences/IndexController.php @@ -1,4 +1,5 @@ json($return); } -} \ No newline at end of file +} diff --git a/app/Api/V1/Controllers/Webhook/CreateController.php b/app/Api/V1/Controllers/Webhook/CreateController.php index 3de3ba88a6..8d6c30b9f5 100644 --- a/app/Api/V1/Controllers/Webhook/CreateController.php +++ b/app/Api/V1/Controllers/Webhook/CreateController.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * CreateController.php diff --git a/app/Api/V1/Controllers/Webhook/DeleteController.php b/app/Api/V1/Controllers/Webhook/DeleteController.php index 1edb050995..6dd804dd95 100644 --- a/app/Api/V1/Controllers/Webhook/DeleteController.php +++ b/app/Api/V1/Controllers/Webhook/DeleteController.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * DeleteController.php diff --git a/app/Api/V1/Controllers/Webhook/EditController.php b/app/Api/V1/Controllers/Webhook/EditController.php index dcae942e05..d142a130b3 100644 --- a/app/Api/V1/Controllers/Webhook/EditController.php +++ b/app/Api/V1/Controllers/Webhook/EditController.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * EditController.php diff --git a/app/Api/V1/Controllers/Webhook/IndexController.php b/app/Api/V1/Controllers/Webhook/IndexController.php index ddd98f15de..89c099c41d 100644 --- a/app/Api/V1/Controllers/Webhook/IndexController.php +++ b/app/Api/V1/Controllers/Webhook/IndexController.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * IndexController.php diff --git a/app/Api/V1/Requests/Webhook/CreateRequest.php b/app/Api/V1/Requests/Webhook/CreateRequest.php index 8ec557bd24..62dd3b7c6e 100644 --- a/app/Api/V1/Requests/Webhook/CreateRequest.php +++ b/app/Api/V1/Requests/Webhook/CreateRequest.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * CreateRequest.php diff --git a/app/Api/V1/Requests/Webhook/UpdateRequest.php b/app/Api/V1/Requests/Webhook/UpdateRequest.php index 8abd735841..85d6397ab2 100644 --- a/app/Api/V1/Requests/Webhook/UpdateRequest.php +++ b/app/Api/V1/Requests/Webhook/UpdateRequest.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * UpdateRequest.php diff --git a/app/Console/Commands/Correction/FixTransactionTypes.php b/app/Console/Commands/Correction/FixTransactionTypes.php index de083aa82a..d3045de798 100644 --- a/app/Console/Commands/Correction/FixTransactionTypes.php +++ b/app/Console/Commands/Correction/FixTransactionTypes.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); namespace FireflyIII\Console\Commands\Correction; diff --git a/app/Console/Commands/CreateFirstUser.php b/app/Console/Commands/CreateFirstUser.php index 8110dad030..be7bcb1155 100644 --- a/app/Console/Commands/CreateFirstUser.php +++ b/app/Console/Commands/CreateFirstUser.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); namespace FireflyIII\Console\Commands; diff --git a/app/Console/Commands/Upgrade/AppendBudgetLimitPeriods.php b/app/Console/Commands/Upgrade/AppendBudgetLimitPeriods.php index 76375e5677..a74f9ade7f 100644 --- a/app/Console/Commands/Upgrade/AppendBudgetLimitPeriods.php +++ b/app/Console/Commands/Upgrade/AppendBudgetLimitPeriods.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * AppendBudgetLimitPeriods.php diff --git a/app/Events/DetectedNewIPAddress.php b/app/Events/DetectedNewIPAddress.php index 3e5ecb495b..b381200a83 100644 --- a/app/Events/DetectedNewIPAddress.php +++ b/app/Events/DetectedNewIPAddress.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * DetectedNewIPAddress.php diff --git a/app/Events/RequestedSendWebhookMessages.php b/app/Events/RequestedSendWebhookMessages.php index fd9b132688..15ac7b55c2 100644 --- a/app/Events/RequestedSendWebhookMessages.php +++ b/app/Events/RequestedSendWebhookMessages.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * RequestedSendWebhookMessages.php diff --git a/app/Generator/Webhook/MessageGeneratorInterface.php b/app/Generator/Webhook/MessageGeneratorInterface.php index 8487be5833..d86490563d 100644 --- a/app/Generator/Webhook/MessageGeneratorInterface.php +++ b/app/Generator/Webhook/MessageGeneratorInterface.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * MessageGeneratorInterface.php diff --git a/app/Generator/Webhook/StandardMessageGenerator.php b/app/Generator/Webhook/StandardMessageGenerator.php index 4031a5b705..90174354bc 100644 --- a/app/Generator/Webhook/StandardMessageGenerator.php +++ b/app/Generator/Webhook/StandardMessageGenerator.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * WebhookMessageGenerator.php diff --git a/app/Handlers/Events/DestroyedGroupEventHandler.php b/app/Handlers/Events/DestroyedGroupEventHandler.php index 7d5cd667ef..74d58492c6 100644 --- a/app/Handlers/Events/DestroyedGroupEventHandler.php +++ b/app/Handlers/Events/DestroyedGroupEventHandler.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * DestroyedGroupEventHandler.php diff --git a/app/Handlers/Events/WebhookEventHandler.php b/app/Handlers/Events/WebhookEventHandler.php index f6460dac1f..908d18a625 100644 --- a/app/Handlers/Events/WebhookEventHandler.php +++ b/app/Handlers/Events/WebhookEventHandler.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * WebhookEventHandler.php diff --git a/app/Helpers/Webhook/Sha3SignatureGenerator.php b/app/Helpers/Webhook/Sha3SignatureGenerator.php index 43d474622d..8674a2b3bb 100644 --- a/app/Helpers/Webhook/Sha3SignatureGenerator.php +++ b/app/Helpers/Webhook/Sha3SignatureGenerator.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * Sha3SignatureGenerator.php diff --git a/app/Helpers/Webhook/SignatureGeneratorInterface.php b/app/Helpers/Webhook/SignatureGeneratorInterface.php index e4af7c0e65..1c4506c377 100644 --- a/app/Helpers/Webhook/SignatureGeneratorInterface.php +++ b/app/Helpers/Webhook/SignatureGeneratorInterface.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * SignatureGeneratorInterface.php diff --git a/app/Jobs/SendWebhookMessage.php b/app/Jobs/SendWebhookMessage.php index 3aa23faefa..e0e9b94f41 100644 --- a/app/Jobs/SendWebhookMessage.php +++ b/app/Jobs/SendWebhookMessage.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); namespace FireflyIII\Jobs; diff --git a/app/Mail/NewIPAddressWarningMail.php b/app/Mail/NewIPAddressWarningMail.php index 12fee2fa47..98ab48346c 100644 --- a/app/Mail/NewIPAddressWarningMail.php +++ b/app/Mail/NewIPAddressWarningMail.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * NewIPAddressWarningMail.php diff --git a/app/Models/Webhook.php b/app/Models/Webhook.php index 2281de76c5..4a9bad4042 100644 --- a/app/Models/Webhook.php +++ b/app/Models/Webhook.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * Webhook.php diff --git a/app/Models/WebhookAttempt.php b/app/Models/WebhookAttempt.php index d4523dc0e6..622341d2b1 100644 --- a/app/Models/WebhookAttempt.php +++ b/app/Models/WebhookAttempt.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * WebhookAttempt.php diff --git a/app/Models/WebhookMessage.php b/app/Models/WebhookMessage.php index 0b3704cd21..0a36f28209 100644 --- a/app/Models/WebhookMessage.php +++ b/app/Models/WebhookMessage.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * WebhookMessage.php diff --git a/app/Repositories/Webhook/WebhookRepository.php b/app/Repositories/Webhook/WebhookRepository.php index aa8690c1fc..66f12839cd 100644 --- a/app/Repositories/Webhook/WebhookRepository.php +++ b/app/Repositories/Webhook/WebhookRepository.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * WebhookRepository.php diff --git a/app/Repositories/Webhook/WebhookRepositoryInterface.php b/app/Repositories/Webhook/WebhookRepositoryInterface.php index 8d6dc5fe46..8283d2e90f 100644 --- a/app/Repositories/Webhook/WebhookRepositoryInterface.php +++ b/app/Repositories/Webhook/WebhookRepositoryInterface.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * WebhookRepositoryInterface.php diff --git a/app/Rules/IsDuplicateTransaction.php b/app/Rules/IsDuplicateTransaction.php index b1f7d3b066..d5dc158697 100644 --- a/app/Rules/IsDuplicateTransaction.php +++ b/app/Rules/IsDuplicateTransaction.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * IsDuplicateTransaction.php diff --git a/app/Scopes/LdapFilterScope.php b/app/Scopes/LdapFilterScope.php index 1ce0f23b80..5b9fa51b6a 100644 --- a/app/Scopes/LdapFilterScope.php +++ b/app/Scopes/LdapFilterScope.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); namespace FireflyIII\Scopes; diff --git a/app/Services/Webhook/StandardWebhookSender.php b/app/Services/Webhook/StandardWebhookSender.php index 544942b364..cd1745cf03 100644 --- a/app/Services/Webhook/StandardWebhookSender.php +++ b/app/Services/Webhook/StandardWebhookSender.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * StandardWebhookSender.php diff --git a/app/Services/Webhook/WebhookSenderInterface.php b/app/Services/Webhook/WebhookSenderInterface.php index a5e03c302c..381dd23904 100644 --- a/app/Services/Webhook/WebhookSenderInterface.php +++ b/app/Services/Webhook/WebhookSenderInterface.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * WebhookSenderInterface.php diff --git a/app/Support/Report/Category/CategoryReportGenerator.php b/app/Support/Report/Category/CategoryReportGenerator.php index 8e0b8abd58..34431affd5 100644 --- a/app/Support/Report/Category/CategoryReportGenerator.php +++ b/app/Support/Report/Category/CategoryReportGenerator.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * CategoryReportGenerator.php diff --git a/app/Support/Request/ChecksLogin.php b/app/Support/Request/ChecksLogin.php index 0b91c83e6a..cba9f91fd9 100644 --- a/app/Support/Request/ChecksLogin.php +++ b/app/Support/Request/ChecksLogin.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * ChecksLogin.php diff --git a/app/Support/Request/GetRuleConfiguration.php b/app/Support/Request/GetRuleConfiguration.php index 8be6823193..a852550c38 100644 --- a/app/Support/Request/GetRuleConfiguration.php +++ b/app/Support/Request/GetRuleConfiguration.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * GetRuleConfiguration.php diff --git a/app/Support/Search/OperatorQuerySearch.php b/app/Support/Search/OperatorQuerySearch.php index afabdc2632..11e0e0f986 100644 --- a/app/Support/Search/OperatorQuerySearch.php +++ b/app/Support/Search/OperatorQuerySearch.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * OperatorQuerySearch.php diff --git a/app/TransactionRules/Engine/RuleEngineInterface.php b/app/TransactionRules/Engine/RuleEngineInterface.php index f976038593..f92eb7d053 100644 --- a/app/TransactionRules/Engine/RuleEngineInterface.php +++ b/app/TransactionRules/Engine/RuleEngineInterface.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * RuleEngineInterface.php diff --git a/app/TransactionRules/Engine/SearchRuleEngine.php b/app/TransactionRules/Engine/SearchRuleEngine.php index e876aa16e7..04578d4b5c 100644 --- a/app/TransactionRules/Engine/SearchRuleEngine.php +++ b/app/TransactionRules/Engine/SearchRuleEngine.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * SearchRuleEngine.php diff --git a/app/Transformers/WebhookTransformer.php b/app/Transformers/WebhookTransformer.php index 8ee39231e3..73ad85593a 100644 --- a/app/Transformers/WebhookTransformer.php +++ b/app/Transformers/WebhookTransformer.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * WebhookTransformer.php diff --git a/config/queue.php b/config/queue.php index d6637fd655..0950149af1 100644 --- a/config/queue.php +++ b/config/queue.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); return [ diff --git a/config/twigbridge.php b/config/twigbridge.php index 14742bd55c..cb94103aac 100644 --- a/config/twigbridge.php +++ b/config/twigbridge.php @@ -1,5 +1,26 @@ . + */ + declare(strict_types=1); /** diff --git a/database/factories/EmptyFactory.php b/database/factories/EmptyFactory.php index 0c4adc7fc9..115ac4cd9e 100644 --- a/database/factories/EmptyFactory.php +++ b/database/factories/EmptyFactory.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /** @var \Illuminate\Database\Eloquent\Factory $factory */ diff --git a/database/migrations/2020_07_24_162820_changes_for_v540.php b/database/migrations/2020_07_24_162820_changes_for_v540.php index 8940f8eb0c..bad51fd403 100644 --- a/database/migrations/2020_07_24_162820_changes_for_v540.php +++ b/database/migrations/2020_07_24_162820_changes_for_v540.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); use Illuminate\Database\Migrations\Migration; diff --git a/database/migrations/2020_11_12_070604_changes_for_v550.php b/database/migrations/2020_11_12_070604_changes_for_v550.php index 6d3431f3a9..b819a4ae80 100644 --- a/database/migrations/2020_11_12_070604_changes_for_v550.php +++ b/database/migrations/2020_11_12_070604_changes_for_v550.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); use Illuminate\Database\Migrations\Migration; diff --git a/frontend/build.sh b/frontend/build.sh index 575379ec26..17e43b028c 100755 --- a/frontend/build.sh +++ b/frontend/build.sh @@ -1,5 +1,25 @@ #!/usr/bin/env bash +# +# build.sh +# Copyright (c) 2021 james@firefly-iii.org +# +# 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 . +# + [ -d "~/Sites" ] && exit 1; # build translations. diff --git a/frontend/render.sh b/frontend/render.sh index 704f5ae52b..da6d9b0363 100755 --- a/frontend/render.sh +++ b/frontend/render.sh @@ -1,5 +1,25 @@ #!/usr/bin/env bash +# +# render.sh +# Copyright (c) 2021 james@firefly-iii.org +# +# 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 . +# + [ -d "~/Sites" ] && exit 1; # build translations. diff --git a/tests/Feature/Console/Commands/Correction/CorrectOpeningBalanceCurrenciesTest.php b/tests/Feature/Console/Commands/Correction/CorrectOpeningBalanceCurrenciesTest.php index b2b3f52051..98dca2cb22 100644 --- a/tests/Feature/Console/Commands/Correction/CorrectOpeningBalanceCurrenciesTest.php +++ b/tests/Feature/Console/Commands/Correction/CorrectOpeningBalanceCurrenciesTest.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * CorrectOpeningBalanceCurrenciesTest.php diff --git a/tests/Feature/Console/Commands/Correction/FixAccountOrderTest.php b/tests/Feature/Console/Commands/Correction/FixAccountOrderTest.php index a2a45f152d..caa9519afb 100644 --- a/tests/Feature/Console/Commands/Correction/FixAccountOrderTest.php +++ b/tests/Feature/Console/Commands/Correction/FixAccountOrderTest.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * FixAccountOrderTest.php diff --git a/tests/Feature/Console/Commands/Correction/FixGroupAccountsTest.php b/tests/Feature/Console/Commands/Correction/FixGroupAccountsTest.php index b4c7994e88..08c670bd96 100644 --- a/tests/Feature/Console/Commands/Correction/FixGroupAccountsTest.php +++ b/tests/Feature/Console/Commands/Correction/FixGroupAccountsTest.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * FixGroupAccountsTest.php diff --git a/tests/Feature/Console/Commands/Correction/FixLongDescriptionsTest.php b/tests/Feature/Console/Commands/Correction/FixLongDescriptionsTest.php index dd8f25f87b..3263ed8ad5 100644 --- a/tests/Feature/Console/Commands/Correction/FixLongDescriptionsTest.php +++ b/tests/Feature/Console/Commands/Correction/FixLongDescriptionsTest.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * FixLongDescriptionsTest.php diff --git a/tests/Feature/Console/Commands/Correction/FixRecurringTransactionsTest.php b/tests/Feature/Console/Commands/Correction/FixRecurringTransactionsTest.php index e4b7dcd12f..a84b8791e0 100644 --- a/tests/Feature/Console/Commands/Correction/FixRecurringTransactionsTest.php +++ b/tests/Feature/Console/Commands/Correction/FixRecurringTransactionsTest.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * FixRecurringTransactionsTest.php diff --git a/tests/Feature/Console/Commands/Correction/FixTransactionTypesTest.php b/tests/Feature/Console/Commands/Correction/FixTransactionTypesTest.php index 15a552381e..24d02606cf 100644 --- a/tests/Feature/Console/Commands/Correction/FixTransactionTypesTest.php +++ b/tests/Feature/Console/Commands/Correction/FixTransactionTypesTest.php @@ -1,4 +1,25 @@ . + */ + declare(strict_types=1); /* * FixTransactionTypesTest.php