Skip to content

Firefly III: a personal finances manager

Various code clean up.

James Cole980393232406
diff --git a/app/Console/Commands/UseEncryption.php b/app/Console/Commands/UseEncryption.php
index 8cf70208b9..89e6bf012d 100644
--- a/app/Console/Commands/UseEncryption.php
+++ b/app/Console/Commands/UseEncryption.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* UseEncryption.php
* Copyright (c) 2017 [email protected]
diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php
index 73c0d4dfe6..21a6e23de9 100644
--- a/app/Http/Controllers/HomeController.php
+++ b/app/Http/Controllers/HomeController.php
@@ -138,7 +138,7 @@ class HomeController extends Controller
}
return view(
- 'index', compact('count', 'title', 'subTitle', 'mainTitleIcon', 'transactions', 'showDepositsFrontpage', 'billCount')
+ 'index', compact('count', 'subTitle', 'transactions', 'showDepositsFrontpage', 'billCount')
);
}
diff --git a/app/Http/Controllers/TagController.php b/app/Http/Controllers/TagController.php
index 368feae249..9276ee6c08 100644
--- a/app/Http/Controllers/TagController.php
+++ b/app/Http/Controllers/TagController.php
@@ -156,7 +156,7 @@ class TagController extends Controller
Session::flash('gaEventCategory', 'tags');
Session::flash('gaEventAction', 'edit');
- return view('tags.edit', compact('tag', 'subTitle', 'subTitleIcon', 'tagOptions', 'apiKey'));
+ return view('tags.edit', compact('tag', 'subTitle', 'subTitleIcon', 'apiKey'));
}
/**
diff --git a/app/Http/Controllers/Transaction/MassController.php b/app/Http/Controllers/Transaction/MassController.php
index 90e4694191..9fdf042e24 100644
--- a/app/Http/Controllers/Transaction/MassController.php
+++ b/app/Http/Controllers/Transaction/MassController.php
@@ -131,10 +131,9 @@ class MassController extends Controller
$filtered = new Collection;
$messages = [];
/**
- * @var int $index
* @var TransactionJournal $journal
*/
- foreach ($journals as $index => $journal) {
+ foreach ($journals as $journal) {
$sources = $journal->sourceAccountList();
$destinations = $journal->destinationAccountList();
if ($sources->count() > 1) {
diff --git a/app/Http/Controllers/Transaction/SplitController.php b/app/Http/Controllers/Transaction/SplitController.php
index 32f0807c3b..23225eae8f 100644
--- a/app/Http/Controllers/Transaction/SplitController.php
+++ b/app/Http/Controllers/Transaction/SplitController.php
@@ -114,7 +114,7 @@ class SplitController extends Controller
'transactions.split.edit',
compact(
'subTitleIcon', 'currencies', 'optionalFields',
- 'preFilled', 'subTitle', 'amount', 'sourceAccounts', 'uploadSize', 'destinationAccounts', 'assetAccounts',
+ 'preFilled', 'subTitle', 'uploadSize', 'assetAccounts',
'budgets', 'journal'
)
);
diff --git a/app/Import/FileProcessor/CsvProcessor.php b/app/Import/FileProcessor/CsvProcessor.php
index b10549c703..10657c35bb 100644
--- a/app/Import/FileProcessor/CsvProcessor.php
+++ b/app/Import/FileProcessor/CsvProcessor.php
@@ -260,8 +260,8 @@ class CsvProcessor implements FileProcessorInterface
private function specifics(array $row): array
{
$config = $this->job->configuration;
- //
- foreach ($config['specifics'] as $name => $enabled) {
+ $names = array_keys($config['specifics']);
+ foreach ($names as $name) {
if (!in_array($name, $this->validSpecifics)) {
throw new FireflyException(sprintf('"%s" is not a valid class name', $name));
diff --git a/app/Import/Storage/ImportStorage.php b/app/Import/Storage/ImportStorage.php
index eea594fdbf..8e417efc61 100644
--- a/app/Import/Storage/ImportStorage.php
+++ b/app/Import/Storage/ImportStorage.php
@@ -252,12 +252,11 @@ class ImportStorage
/**
* @param ImportJournal $importJournal
- * @param Account $account
* @param TransactionCurrency $localCurrency
*
* @return int|null
*/
- private function getForeignCurrencyId(ImportJournal $importJournal, Account $account, TransactionCurrency $localCurrency): ?int
+ private function getForeignCurrencyId(ImportJournal $importJournal, TransactionCurrency $localCurrency): ?int
{
// get journal currency, if any:
$currency = $importJournal->getCurrency()->getTransactionCurrency();
@@ -394,7 +393,7 @@ class ImportStorage
$asset = $importJournal->asset->getAccount();
$amount = $importJournal->getAmount();
$currency = $this->getCurrency($importJournal, $asset);
- $foreignCurrencyId = $this->getForeignCurrencyId($importJournal, $asset, $currency);
+ $foreignCurrencyId = $this->getForeignCurrencyId($importJournal, $currency);
$date = $importJournal->getDate($this->dateFormat);
$transactionType = $this->getTransactionType($amount);
$opposing = $this->getOpposingAccount($importJournal->opposing, $amount);
diff --git a/app/Mail/RegisteredUser.php b/app/Mail/RegisteredUser.php
index eba52d7dfa..01d7f675cd 100644
--- a/app/Mail/RegisteredUser.php
+++ b/app/Mail/RegisteredUser.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
diff --git a/app/Mail/RequestedNewPassword.php b/app/Mail/RequestedNewPassword.php
index 2822e2263d..b5399ecd40 100644
--- a/app/Mail/RequestedNewPassword.php
+++ b/app/Mail/RequestedNewPassword.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
diff --git a/app/Repositories/Account/AccountTasker.php b/app/Repositories/Account/AccountTasker.php
index 3759522c41..f1fcf1955f 100644
--- a/app/Repositories/Account/AccountTasker.php
+++ b/app/Repositories/Account/AccountTasker.php
@@ -206,7 +206,8 @@ class AccountTasker implements AccountTaskerInterface
$expenses[$opposingId]['count']++;
}
// do averages:
- foreach ($expenses as $key => $entry) {
+ $keys = array_keys($expenses);
+ foreach ($keys as $key) {
if ($expenses[$key]['count'] > 1) {
$expenses[$key]['average'] = bcdiv($expenses[$key]['sum'], strval($expenses[$key]['count']));
}
diff --git a/app/Support/Import/Configuration/Csv/Initial.php b/app/Support/Import/Configuration/Csv/Initial.php
index 1c3363eac1..fec13649e9 100644
--- a/app/Support/Import/Configuration/Csv/Initial.php
+++ b/app/Support/Import/Configuration/Csv/Initial.php
@@ -134,7 +134,8 @@ class Initial implements ConfigurationInterface
{
// loop specifics.
if (isset($data['specifics']) && is_array($data['specifics'])) {
- foreach ($data['specifics'] as $name => $enabled) {
+ $names = array_keys($data['specifics']);
+ foreach ($names as $name) {
// verify their content.
$className = sprintf('FireflyIII\Import\Specifics\%s', $name);
if (class_exists($className)) {
diff --git a/app/Support/Import/Configuration/Csv/Map.php b/app/Support/Import/Configuration/Csv/Map.php
index cad59d1dd2..fd038857bd 100644
--- a/app/Support/Import/Configuration/Csv/Map.php
+++ b/app/Support/Import/Configuration/Csv/Map.php
@@ -90,10 +90,12 @@ class Map implements ConfigurationInterface
}
}
}
- foreach ($this->data as $index => $entry) {
+ $setIndexes = array_keys($this->data);
+ foreach ($setIndexes as $index) {
$this->data[$index]['values'] = array_unique($this->data[$index]['values']);
asort($this->data[$index]['values']);
}
+ unset($setIndexes);
// save number of rows, thus number of steps, in job:
$steps = $rowIndex * 5;
@@ -233,8 +235,8 @@ class Map implements ConfigurationInterface
{
// run specifics here:
// and this is the point where the specifix go to work.
- foreach ($this->configuration['specifics'] as $name => $enabled) {
-
+ $names = array_keys($this->configuration['specifics']);
+ foreach ($names as $name) {
if (!in_array($name, $this->validSpecifics)) {
throw new FireflyException(sprintf('"%s" is not a valid class name', $name));
}
diff --git a/app/Support/Import/Configuration/Csv/Roles.php b/app/Support/Import/Configuration/Csv/Roles.php
index eb1d49ea3e..f75c82f4bc 100644
--- a/app/Support/Import/Configuration/Csv/Roles.php
+++ b/app/Support/Import/Configuration/Csv/Roles.php
@@ -228,7 +228,8 @@ class Roles implements ConfigurationInterface
*/
private function processSpecifics(array $row): array
{
- foreach ($this->job->configuration['specifics'] as $name => $enabled) {
+ $names = array_keys($this->configuration['specifics']);
+ foreach ($names as $name) {
/** @var SpecificInterface $specific */
$specific = app('FireflyIII\Import\Specifics\\' . $name);
$row = $specific->run($row);
diff --git a/app/Support/Search/Search.php b/app/Support/Search/Search.php
index ce7b271973..5da8c674cb 100644
--- a/app/Support/Search/Search.php
+++ b/app/Support/Search/Search.php
@@ -119,7 +119,7 @@ class Search implements SearchInterface
// Filter transactions that match the given triggers.
$filtered = $set->filter(
- function (Transaction $transaction) use ($words) {
+ function (Transaction $transaction) {
if ($this->matchModifiers($transaction)) {
return $transaction;
@@ -237,7 +237,7 @@ class Search implements SearchInterface
return false;
}
foreach ($needle as $what) {
- if (($pos = strpos($haystack, $what)) !== false) {
+ if (strpos($haystack, $what) !== false) {
return true;
}
}
diff --git a/config/auth.php b/config/auth.php
index 9145ce8641..ddf966efc8 100644
--- a/config/auth.php
+++ b/config/auth.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* auth.php
* Copyright (C) 2016 [email protected]
diff --git a/config/broadcasting.php b/config/broadcasting.php
index b165564840..e4012544ff 100644
--- a/config/broadcasting.php
+++ b/config/broadcasting.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* broadcasting.php
* Copyright (C) 2016 [email protected]
diff --git a/config/cache.php b/config/cache.php
index b8bc5dc989..464b334317 100644
--- a/config/cache.php
+++ b/config/cache.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* cache.php
* Copyright (C) 2016 [email protected]
diff --git a/config/compile.php b/config/compile.php
index 052838234e..d5812f37c3 100644
--- a/config/compile.php
+++ b/config/compile.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* compile.php
* Copyright (C) 2016 [email protected]
diff --git a/config/database.php b/config/database.php
index f9b37b8c01..b17719c1b1 100644
--- a/config/database.php
+++ b/config/database.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* database.php
* Copyright (C) 2016 [email protected]
diff --git a/config/filesystems.php b/config/filesystems.php
index ba8b6b6eb9..06cfd1b5d3 100644
--- a/config/filesystems.php
+++ b/config/filesystems.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* filesystems.php
* Copyright (C) 2016 [email protected]
diff --git a/config/mail.php b/config/mail.php
index 219084ef83..61d69cdc5b 100644
--- a/config/mail.php
+++ b/config/mail.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* mail.php
* Copyright (C) 2016 [email protected]
diff --git a/config/queue.php b/config/queue.php
index c50e7c2a44..4d891e2d1c 100644
--- a/config/queue.php
+++ b/config/queue.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* queue.php
* Copyright (C) 2016 [email protected]
diff --git a/config/services.php b/config/services.php
index 1176da0214..f5d419a687 100644
--- a/config/services.php
+++ b/config/services.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* services.php
* Copyright (C) 2016 [email protected]
diff --git a/config/twigbridge.php b/config/twigbridge.php
index b6470423d3..d66b768afe 100644
--- a/config/twigbridge.php
+++ b/config/twigbridge.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* This file is part of the TwigBridge package.
diff --git a/database/migrations/2016_10_09_150037_expand_transactions_table.php b/database/migrations/2016_10_09_150037_expand_transactions_table.php
index fdb957ba94..6b4e345582 100644
--- a/database/migrations/2016_10_09_150037_expand_transactions_table.php
+++ b/database/migrations/2016_10_09_150037_expand_transactions_table.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* 2016_10_09_150037_expand_transactions_table.php
* Copyright (C) 2016 [email protected]
diff --git a/database/migrations/2016_10_22_075804_changes_for_v410.php b/database/migrations/2016_10_22_075804_changes_for_v410.php
index e89daf743d..217bfeb953 100644
--- a/database/migrations/2016_10_22_075804_changes_for_v410.php
+++ b/database/migrations/2016_10_22_075804_changes_for_v410.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* 2016_10_22_075804_changes_for_v410.php
* Copyright (C) 2016 [email protected]
diff --git a/database/migrations/2016_11_24_210552_changes_for_v420.php b/database/migrations/2016_11_24_210552_changes_for_v420.php
index 308bd6912a..ac701001b9 100644
--- a/database/migrations/2016_11_24_210552_changes_for_v420.php
+++ b/database/migrations/2016_11_24_210552_changes_for_v420.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* 2016_11_24_210552_changes_for_v420.php
* Copyright (C) 2016 [email protected]
diff --git a/database/migrations/2016_12_22_150431_changes_for_v430.php b/database/migrations/2016_12_22_150431_changes_for_v430.php
index 84f61fb4c1..d2c046b132 100644
--- a/database/migrations/2016_12_22_150431_changes_for_v430.php
+++ b/database/migrations/2016_12_22_150431_changes_for_v430.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
diff --git a/database/migrations/2016_12_28_203205_changes_for_v431.php b/database/migrations/2016_12_28_203205_changes_for_v431.php
index 2411bfe498..c7d3075ba6 100644
--- a/database/migrations/2016_12_28_203205_changes_for_v431.php
+++ b/database/migrations/2016_12_28_203205_changes_for_v431.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* 2016_12_28_203205_changes_for_v431.php
* Copyright (c) 2016 [email protected]
diff --git a/database/migrations/2017_04_13_163623_changes_for_v440.php b/database/migrations/2017_04_13_163623_changes_for_v440.php
index e19755c515..c2cd3f969e 100644
--- a/database/migrations/2017_04_13_163623_changes_for_v440.php
+++ b/database/migrations/2017_04_13_163623_changes_for_v440.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
@@ -23,6 +25,7 @@ class ChangesForV440 extends Migration
/**
* Run the migrations.
*
+ * @SuppressWarnings(PHPMD.ShortMethodName)
* @return void
*/
public function up()
diff --git a/database/migrations/2017_06_02_105232_changes_for_v450.php b/database/migrations/2017_06_02_105232_changes_for_v450.php
index 1f44bedf52..011a66e188 100644
--- a/database/migrations/2017_06_02_105232_changes_for_v450.php
+++ b/database/migrations/2017_06_02_105232_changes_for_v450.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
@@ -20,6 +22,7 @@ class ChangesForV450 extends Migration
/**
* Run the migrations.
*
+ * @SuppressWarnings(PHPMD.ShortMethodName)
* @return void
*/
public function up()
diff --git a/resources/lang/en_US/auth.php b/resources/lang/en_US/auth.php
index 7319a9d7b8..2bc0df9611 100644
--- a/resources/lang/en_US/auth.php
+++ b/resources/lang/en_US/auth.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* auth.php
* Copyright (C) 2016 [email protected]
diff --git a/resources/lang/en_US/breadcrumbs.php b/resources/lang/en_US/breadcrumbs.php
index 28c31b9787..7cdacba597 100644
--- a/resources/lang/en_US/breadcrumbs.php
+++ b/resources/lang/en_US/breadcrumbs.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* breadcrumbs.php
diff --git a/resources/lang/en_US/config.php b/resources/lang/en_US/config.php
index b5ed958eca..9fe187d98c 100644
--- a/resources/lang/en_US/config.php
+++ b/resources/lang/en_US/config.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* config.php
* Copyright (C) 2016 [email protected]
diff --git a/resources/lang/en_US/demo.php b/resources/lang/en_US/demo.php
index 3efa9c60a3..5c99a55718 100644
--- a/resources/lang/en_US/demo.php
+++ b/resources/lang/en_US/demo.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* demo.php
* Copyright (c) 2016 [email protected]
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index 2cd6f1d1b7..fd23d22f83 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* firefly.php
* Copyright (C) 2016 [email protected]
diff --git a/resources/lang/en_US/form.php b/resources/lang/en_US/form.php
index d06bc2c694..1f0d3e0ef0 100644
--- a/resources/lang/en_US/form.php
+++ b/resources/lang/en_US/form.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* form.php
* Copyright (C) 2016 [email protected]
diff --git a/resources/lang/en_US/help.php b/resources/lang/en_US/help.php
index 5198e5510f..6d1265778b 100644
--- a/resources/lang/en_US/help.php
+++ b/resources/lang/en_US/help.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* help.php
* Copyright (C) 2016 [email protected]
diff --git a/resources/lang/en_US/intro.php b/resources/lang/en_US/intro.php
index e3c6739e9a..007d726e06 100644
--- a/resources/lang/en_US/intro.php
+++ b/resources/lang/en_US/intro.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* intro.php
* Copyright (c) 2017 [email protected]
@@ -116,4 +118,4 @@ return [
// create currency
'currencies_create_code' => 'This code should be ISO compliant (Google it for your new currency).',
-];
\ No newline at end of file
+];
diff --git a/resources/lang/en_US/list.php b/resources/lang/en_US/list.php
index 91254e401d..c44721b8d5 100644
--- a/resources/lang/en_US/list.php
+++ b/resources/lang/en_US/list.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* list.php
* Copyright (C) 2016 [email protected]
diff --git a/resources/lang/en_US/pagination.php b/resources/lang/en_US/pagination.php
index 9e61a6cfcc..6e1c86af46 100644
--- a/resources/lang/en_US/pagination.php
+++ b/resources/lang/en_US/pagination.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* pagination.php
* Copyright (C) 2016 [email protected]
diff --git a/resources/lang/en_US/passwords.php b/resources/lang/en_US/passwords.php
index 8e1b72506b..aae1d74962 100644
--- a/resources/lang/en_US/passwords.php
+++ b/resources/lang/en_US/passwords.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* passwords.php
* Copyright (C) 2016 [email protected]
diff --git a/resources/lang/en_US/validation.php b/resources/lang/en_US/validation.php
index 23031202f9..e266d67baa 100644
--- a/resources/lang/en_US/validation.php
+++ b/resources/lang/en_US/validation.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* validation.php
* Copyright (C) 2016 [email protected]
diff --git a/resources/views/partials/password-modal.twig b/resources/views/partials/password-modal.twig
index e41dd1abb0..3fbfac9e56 100644
--- a/resources/views/partials/password-modal.twig
+++ b/resources/views/partials/password-modal.twig
@@ -35,4 +35,4 @@
</div>
</div>
</div>
-</div>
\ No newline at end of file
+</div>
diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php
index 0574e65161..b4cc8b15b2 100644
--- a/tests/CreatesApplication.php
+++ b/tests/CreatesApplication.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
@@ -14,6 +16,11 @@ namespace Tests;
use Illuminate\Contracts\Console\Kernel;
+/**
+ * Trait CreatesApplication
+ *
+ * @package Tests
+ */
trait CreatesApplication
{
/**
diff --git a/tests/Feature/Controllers/AccountControllerTest.php b/tests/Feature/Controllers/AccountControllerTest.php
index fd68a3480f..b0615b26d8 100644
--- a/tests/Feature/Controllers/AccountControllerTest.php
+++ b/tests/Feature/Controllers/AccountControllerTest.php
@@ -31,6 +31,9 @@ use Tests\TestCase;
* Class AccountControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class AccountControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Admin/ConfigurationControllerTest.php b/tests/Feature/Controllers/Admin/ConfigurationControllerTest.php
index a581937ea8..79732c6d78 100644
--- a/tests/Feature/Controllers/Admin/ConfigurationControllerTest.php
+++ b/tests/Feature/Controllers/Admin/ConfigurationControllerTest.php
@@ -20,6 +20,9 @@ use Tests\TestCase;
* Class ConfigurationControllerTest
*
* @package Tests\Feature\Controllers\Admin
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ConfigurationControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Admin/HomeControllerTest.php b/tests/Feature/Controllers/Admin/HomeControllerTest.php
index 3602c0851f..7bda97ac58 100644
--- a/tests/Feature/Controllers/Admin/HomeControllerTest.php
+++ b/tests/Feature/Controllers/Admin/HomeControllerTest.php
@@ -17,6 +17,9 @@ use Tests\TestCase;
* Class HomeControllerTest
*
* @package Tests\Feature\Controllers\Admin
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class HomeControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Admin/UserControllerTest.php b/tests/Feature/Controllers/Admin/UserControllerTest.php
index 4b656ebe79..8202f219ef 100644
--- a/tests/Feature/Controllers/Admin/UserControllerTest.php
+++ b/tests/Feature/Controllers/Admin/UserControllerTest.php
@@ -20,6 +20,9 @@ use Tests\TestCase;
* Class UserControllerTest
*
* @package Tests\Feature\Controllers\Admin
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class UserControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/AttachmentControllerTest.php b/tests/Feature/Controllers/AttachmentControllerTest.php
index 51d2eddcca..af2c294fd4 100644
--- a/tests/Feature/Controllers/AttachmentControllerTest.php
+++ b/tests/Feature/Controllers/AttachmentControllerTest.php
@@ -17,6 +17,14 @@ use FireflyIII\Repositories\Attachment\AttachmentRepositoryInterface;
use FireflyIII\Repositories\Journal\JournalRepositoryInterface;
use Tests\TestCase;
+/**
+ * Class AttachmentControllerTest
+ *
+ * @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class AttachmentControllerTest extends TestCase
{
/**
diff --git a/tests/Feature/Controllers/Auth/ForgotPasswordControllerTest.php b/tests/Feature/Controllers/Auth/ForgotPasswordControllerTest.php
index 7d180e5b95..6dde36a8a5 100644
--- a/tests/Feature/Controllers/Auth/ForgotPasswordControllerTest.php
+++ b/tests/Feature/Controllers/Auth/ForgotPasswordControllerTest.php
@@ -15,6 +15,14 @@ namespace Tests\Feature\Controllers\Auth;
use FireflyIII\Repositories\User\UserRepositoryInterface;
use Tests\TestCase;
+/**
+ * Class ForgotPasswordControllerTest
+ *
+ * @package Tests\Feature\Controllers\Auth
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class ForgotPasswordControllerTest extends TestCase
{
/**
diff --git a/tests/Feature/Controllers/Auth/TwoFactorControllerTest.php b/tests/Feature/Controllers/Auth/TwoFactorControllerTest.php
index f470c14799..d6cd375bbd 100644
--- a/tests/Feature/Controllers/Auth/TwoFactorControllerTest.php
+++ b/tests/Feature/Controllers/Auth/TwoFactorControllerTest.php
@@ -21,6 +21,9 @@ use Tests\TestCase;
* Class TwoFactorControllerTest
*
* @package Tests\Feature\Controllers\Auth
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class TwoFactorControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/BillControllerTest.php b/tests/Feature/Controllers/BillControllerTest.php
index 9b5b6ca88b..cee5d6bb28 100644
--- a/tests/Feature/Controllers/BillControllerTest.php
+++ b/tests/Feature/Controllers/BillControllerTest.php
@@ -22,6 +22,14 @@ use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
use Tests\TestCase;
+/**
+ * Class BillControllerTest
+ *
+ * @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class BillControllerTest extends TestCase
{
/**
diff --git a/tests/Feature/Controllers/BudgetControllerTest.php b/tests/Feature/Controllers/BudgetControllerTest.php
index 0e707af8d4..06aa91b33d 100644
--- a/tests/Feature/Controllers/BudgetControllerTest.php
+++ b/tests/Feature/Controllers/BudgetControllerTest.php
@@ -23,6 +23,14 @@ use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
use Tests\TestCase;
+/**
+ * Class BudgetControllerTest
+ *
+ * @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class BudgetControllerTest extends TestCase
{
/**
diff --git a/tests/Feature/Controllers/CategoryControllerTest.php b/tests/Feature/Controllers/CategoryControllerTest.php
index c09e560427..65397ccb73 100644
--- a/tests/Feature/Controllers/CategoryControllerTest.php
+++ b/tests/Feature/Controllers/CategoryControllerTest.php
@@ -25,6 +25,14 @@ use Illuminate\Support\Collection;
use Steam;
use Tests\TestCase;
+/**
+ * Class CategoryControllerTest
+ *
+ * @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class CategoryControllerTest extends TestCase
{
/**
diff --git a/tests/Feature/Controllers/Chart/AccountControllerTest.php b/tests/Feature/Controllers/Chart/AccountControllerTest.php
index 5c257156c2..1daff8b8e3 100644
--- a/tests/Feature/Controllers/Chart/AccountControllerTest.php
+++ b/tests/Feature/Controllers/Chart/AccountControllerTest.php
@@ -32,6 +32,9 @@ use Tests\TestCase;
* Class AccountControllerTest
*
* @package Tests\Feature\Controllers\Chart
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class AccountControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Chart/BillControllerTest.php b/tests/Feature/Controllers/Chart/BillControllerTest.php
index 91673f5ab2..650a6dcbe7 100644
--- a/tests/Feature/Controllers/Chart/BillControllerTest.php
+++ b/tests/Feature/Controllers/Chart/BillControllerTest.php
@@ -23,6 +23,9 @@ use Tests\TestCase;
* Class BillControllerTest
*
* @package Tests\Feature\Controllers\Chart
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class BillControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Chart/BudgetControllerTest.php b/tests/Feature/Controllers/Chart/BudgetControllerTest.php
index 17d7d7a0b5..a0235b978d 100644
--- a/tests/Feature/Controllers/Chart/BudgetControllerTest.php
+++ b/tests/Feature/Controllers/Chart/BudgetControllerTest.php
@@ -31,6 +31,9 @@ use Tests\TestCase;
* Class BudgetControllerTest
*
* @package Tests\Feature\Controllers\Chart
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class BudgetControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Chart/BudgetReportControllerTest.php b/tests/Feature/Controllers/Chart/BudgetReportControllerTest.php
index fb2a8d9c05..4edc642a6a 100644
--- a/tests/Feature/Controllers/Chart/BudgetReportControllerTest.php
+++ b/tests/Feature/Controllers/Chart/BudgetReportControllerTest.php
@@ -27,6 +27,14 @@ use Illuminate\Support\Collection;
use Log;
use Tests\TestCase;
+/**
+ * Class BudgetReportControllerTest
+ *
+ * @package Tests\Feature\Controllers\Chart
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class BudgetReportControllerTest extends TestCase
{
/**
diff --git a/tests/Feature/Controllers/Chart/CategoryControllerTest.php b/tests/Feature/Controllers/Chart/CategoryControllerTest.php
index fd4b1536cb..e48a7d7b4a 100644
--- a/tests/Feature/Controllers/Chart/CategoryControllerTest.php
+++ b/tests/Feature/Controllers/Chart/CategoryControllerTest.php
@@ -26,6 +26,9 @@ use Tests\TestCase;
* Class CategoryControllerTest
*
* @package Tests\Feature\Controllers\Chart
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class CategoryControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Chart/CategoryReportControllerTest.php b/tests/Feature/Controllers/Chart/CategoryReportControllerTest.php
index 9f7dd992fd..be9e70acae 100644
--- a/tests/Feature/Controllers/Chart/CategoryReportControllerTest.php
+++ b/tests/Feature/Controllers/Chart/CategoryReportControllerTest.php
@@ -27,6 +27,9 @@ use Tests\TestCase;
* Class CategoryReportControllerTest
*
* @package Tests\Feature\Controllers\Chart
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class CategoryReportControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Chart/PiggyBankControllerTest.php b/tests/Feature/Controllers/Chart/PiggyBankControllerTest.php
index 2806264b34..a470acb5da 100644
--- a/tests/Feature/Controllers/Chart/PiggyBankControllerTest.php
+++ b/tests/Feature/Controllers/Chart/PiggyBankControllerTest.php
@@ -22,6 +22,9 @@ use Tests\TestCase;
* Class PiggyBankControllerTest
*
* @package Tests\Feature\Controllers\Chart
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class PiggyBankControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Chart/ReportControllerTest.php b/tests/Feature/Controllers/Chart/ReportControllerTest.php
index e896005f78..1bb3df85a7 100644
--- a/tests/Feature/Controllers/Chart/ReportControllerTest.php
+++ b/tests/Feature/Controllers/Chart/ReportControllerTest.php
@@ -21,6 +21,9 @@ use Tests\TestCase;
* Class ReportControllerTest
*
* @package Tests\Feature\Controllers\Chart
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ReportControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Chart/TagReportControllerTest.php b/tests/Feature/Controllers/Chart/TagReportControllerTest.php
index 059633fe08..fc15a8c6b0 100644
--- a/tests/Feature/Controllers/Chart/TagReportControllerTest.php
+++ b/tests/Feature/Controllers/Chart/TagReportControllerTest.php
@@ -29,6 +29,9 @@ use Tests\TestCase;
* Class TagReportControllerTest
*
* @package Tests\Feature\Controllers\Chart
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class TagReportControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/CurrencyControllerTest.php b/tests/Feature/Controllers/CurrencyControllerTest.php
index 1fa8d5e866..435404eb3b 100644
--- a/tests/Feature/Controllers/CurrencyControllerTest.php
+++ b/tests/Feature/Controllers/CurrencyControllerTest.php
@@ -23,6 +23,9 @@ use Tests\TestCase;
* Class CurrencyControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class CurrencyControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/ExportControllerTest.php b/tests/Feature/Controllers/ExportControllerTest.php
index 42976e92db..9f66e44c9c 100644
--- a/tests/Feature/Controllers/ExportControllerTest.php
+++ b/tests/Feature/Controllers/ExportControllerTest.php
@@ -26,6 +26,9 @@ use Tests\TestCase;
* Class ExportControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ExportControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/HelpControllerTest.php b/tests/Feature/Controllers/HelpControllerTest.php
index a499512fd6..572a6a0112 100644
--- a/tests/Feature/Controllers/HelpControllerTest.php
+++ b/tests/Feature/Controllers/HelpControllerTest.php
@@ -19,6 +19,9 @@ use Tests\TestCase;
* Class HelpControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class HelpControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/HomeControllerTest.php b/tests/Feature/Controllers/HomeControllerTest.php
index a706f301f0..9c5b065ffa 100644
--- a/tests/Feature/Controllers/HomeControllerTest.php
+++ b/tests/Feature/Controllers/HomeControllerTest.php
@@ -25,6 +25,9 @@ use Tests\TestCase;
* Class HomeControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class HomeControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Import/FileControllerTest.php b/tests/Feature/Controllers/Import/FileControllerTest.php
index ff22a0f856..71386bee09 100644
--- a/tests/Feature/Controllers/Import/FileControllerTest.php
+++ b/tests/Feature/Controllers/Import/FileControllerTest.php
@@ -18,7 +18,14 @@ use FireflyIII\Repositories\ImportJob\ImportJobRepositoryInterface;
use Illuminate\Http\UploadedFile;
use Tests\TestCase;
-
+/**
+ * Class FileControllerTest
+ *
+ * @package Tests\Feature\Controllers\Import
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class FileControllerTest extends TestCase
{
/**
diff --git a/tests/Feature/Controllers/ImportControllerTest.php b/tests/Feature/Controllers/ImportControllerTest.php
index 16bf5c4657..0877d05e40 100644
--- a/tests/Feature/Controllers/ImportControllerTest.php
+++ b/tests/Feature/Controllers/ImportControllerTest.php
@@ -17,6 +17,9 @@ use Tests\TestCase;
* Class ImportControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ImportControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/JavascriptControllerTest.php b/tests/Feature/Controllers/JavascriptControllerTest.php
index 07c91b72bb..73e37f9282 100644
--- a/tests/Feature/Controllers/JavascriptControllerTest.php
+++ b/tests/Feature/Controllers/JavascriptControllerTest.php
@@ -23,6 +23,9 @@ use Tests\TestCase;
* Class JavascriptControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class JavascriptControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Json/ExchangeControllerTest.php b/tests/Feature/Controllers/Json/ExchangeControllerTest.php
index a92ee69d5a..15746723c6 100644
--- a/tests/Feature/Controllers/Json/ExchangeControllerTest.php
+++ b/tests/Feature/Controllers/Json/ExchangeControllerTest.php
@@ -20,6 +20,9 @@ use Tests\TestCase;
* Class ExchangeControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ExchangeControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/JsonControllerTest.php b/tests/Feature/Controllers/JsonControllerTest.php
index b453225d3f..2afd48ca56 100644
--- a/tests/Feature/Controllers/JsonControllerTest.php
+++ b/tests/Feature/Controllers/JsonControllerTest.php
@@ -33,6 +33,9 @@ use Tests\TestCase;
* Class JsonControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class JsonControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/NewUserControllerTest.php b/tests/Feature/Controllers/NewUserControllerTest.php
index a438438945..7a18d8824f 100644
--- a/tests/Feature/Controllers/NewUserControllerTest.php
+++ b/tests/Feature/Controllers/NewUserControllerTest.php
@@ -20,6 +20,9 @@ use Tests\TestCase;
* Class NewUserControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class NewUserControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/PiggyBankControllerTest.php b/tests/Feature/Controllers/PiggyBankControllerTest.php
index 3d4ddf2405..5d61a68648 100644
--- a/tests/Feature/Controllers/PiggyBankControllerTest.php
+++ b/tests/Feature/Controllers/PiggyBankControllerTest.php
@@ -26,6 +26,9 @@ use Tests\TestCase;
* Class PiggyBankControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class PiggyBankControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Popup/ReportControllerTest.php b/tests/Feature/Controllers/Popup/ReportControllerTest.php
index fa25a1baf8..b330554bec 100644
--- a/tests/Feature/Controllers/Popup/ReportControllerTest.php
+++ b/tests/Feature/Controllers/Popup/ReportControllerTest.php
@@ -28,6 +28,9 @@ use Tests\TestCase;
* Class ReportControllerTest
*
* @package Tests\Feature\Controllers\Popup
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ReportControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/PreferencesControllerTest.php b/tests/Feature/Controllers/PreferencesControllerTest.php
index ca74cb177e..ec36f694bd 100644
--- a/tests/Feature/Controllers/PreferencesControllerTest.php
+++ b/tests/Feature/Controllers/PreferencesControllerTest.php
@@ -25,6 +25,9 @@ use Tests\TestCase;
* Class PreferencesControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class PreferencesControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/ProfileControllerTest.php b/tests/Feature/Controllers/ProfileControllerTest.php
index 6b90fe4eac..f2befea572 100644
--- a/tests/Feature/Controllers/ProfileControllerTest.php
+++ b/tests/Feature/Controllers/ProfileControllerTest.php
@@ -20,6 +20,9 @@ use Tests\TestCase;
* Class ProfileControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ProfileControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Report/AccountControllerTest.php b/tests/Feature/Controllers/Report/AccountControllerTest.php
index 28b3199b2a..581034bca4 100644
--- a/tests/Feature/Controllers/Report/AccountControllerTest.php
+++ b/tests/Feature/Controllers/Report/AccountControllerTest.php
@@ -19,6 +19,9 @@ use Tests\TestCase;
* Class AccountControllerTest
*
* @package Tests\Feature\Controllers\Report
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class AccountControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Report/BalanceControllerTest.php b/tests/Feature/Controllers/Report/BalanceControllerTest.php
index e1e430035d..e5ce4840ed 100644
--- a/tests/Feature/Controllers/Report/BalanceControllerTest.php
+++ b/tests/Feature/Controllers/Report/BalanceControllerTest.php
@@ -20,6 +20,9 @@ use Tests\TestCase;
* Class BalanceControllerTest
*
* @package Tests\Feature\Controllers\Report
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class BalanceControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Report/BudgetControllerTest.php b/tests/Feature/Controllers/Report/BudgetControllerTest.php
index dadc40d924..5d6c2044e4 100644
--- a/tests/Feature/Controllers/Report/BudgetControllerTest.php
+++ b/tests/Feature/Controllers/Report/BudgetControllerTest.php
@@ -21,6 +21,9 @@ use Tests\TestCase;
* Class BudgetControllerTest
*
* @package Tests\Feature\Controllers\Report
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class BudgetControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Report/CategoryControllerTest.php b/tests/Feature/Controllers/Report/CategoryControllerTest.php
index 8f65479a3c..296b215590 100644
--- a/tests/Feature/Controllers/Report/CategoryControllerTest.php
+++ b/tests/Feature/Controllers/Report/CategoryControllerTest.php
@@ -17,6 +17,14 @@ use FireflyIII\Repositories\Category\CategoryRepositoryInterface;
use Illuminate\Support\Collection;
use Tests\TestCase;
+/**
+ * Class CategoryControllerTest
+ *
+ * @package Tests\Feature\Controllers\Report
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class CategoryControllerTest extends TestCase
{
/**
diff --git a/tests/Feature/Controllers/Report/OperationsControllerTest.php b/tests/Feature/Controllers/Report/OperationsControllerTest.php
index 7da1a00474..3b012d9caf 100644
--- a/tests/Feature/Controllers/Report/OperationsControllerTest.php
+++ b/tests/Feature/Controllers/Report/OperationsControllerTest.php
@@ -22,6 +22,9 @@ use Tests\TestCase;
* Class OperationsControllerTest
*
* @package Tests\Feature\Controllers\Report
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class OperationsControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/ReportControllerTest.php b/tests/Feature/Controllers/ReportControllerTest.php
index fa4b887528..355bfea5b4 100644
--- a/tests/Feature/Controllers/ReportControllerTest.php
+++ b/tests/Feature/Controllers/ReportControllerTest.php
@@ -35,6 +35,9 @@ use Tests\TestCase;
* Class ReportControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ReportControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/RuleControllerTest.php b/tests/Feature/Controllers/RuleControllerTest.php
index b619f324b4..17b3bd152f 100644
--- a/tests/Feature/Controllers/RuleControllerTest.php
+++ b/tests/Feature/Controllers/RuleControllerTest.php
@@ -26,6 +26,9 @@ use Tests\TestCase;
* Class RuleControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class RuleControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/RuleGroupControllerTest.php b/tests/Feature/Controllers/RuleGroupControllerTest.php
index 110fbd3652..59ea1f075a 100644
--- a/tests/Feature/Controllers/RuleGroupControllerTest.php
+++ b/tests/Feature/Controllers/RuleGroupControllerTest.php
@@ -25,6 +25,9 @@ use Tests\TestCase;
* Class RuleGroupControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class RuleGroupControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/SearchControllerTest.php b/tests/Feature/Controllers/SearchControllerTest.php
index 1fdfead8be..d24e76cf8e 100644
--- a/tests/Feature/Controllers/SearchControllerTest.php
+++ b/tests/Feature/Controllers/SearchControllerTest.php
@@ -18,6 +18,9 @@ use Tests\TestCase;
* Class SearchControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class SearchControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/TagControllerTest.php b/tests/Feature/Controllers/TagControllerTest.php
index bb8ac8fecd..dcfbe0bc13 100644
--- a/tests/Feature/Controllers/TagControllerTest.php
+++ b/tests/Feature/Controllers/TagControllerTest.php
@@ -26,6 +26,9 @@ use Tests\TestCase;
* Class TagControllerTest
*
* @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class TagControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Transaction/ConvertControllerTest.php b/tests/Feature/Controllers/Transaction/ConvertControllerTest.php
index 3e99c80738..54c5b4dc6c 100644
--- a/tests/Feature/Controllers/Transaction/ConvertControllerTest.php
+++ b/tests/Feature/Controllers/Transaction/ConvertControllerTest.php
@@ -26,6 +26,9 @@ use Tests\TestCase;
* Class ConvertControllerTest
*
* @package Tests\Feature\Controllers\Transaction
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ConvertControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Transaction/MassControllerTest.php b/tests/Feature/Controllers/Transaction/MassControllerTest.php
index 7ef4cdce22..800d9b55ee 100644
--- a/tests/Feature/Controllers/Transaction/MassControllerTest.php
+++ b/tests/Feature/Controllers/Transaction/MassControllerTest.php
@@ -25,6 +25,9 @@ use Tests\TestCase;
* Class MassControllerTest
*
* @package Tests\Feature\Controllers\Transaction
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class MassControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Transaction/SingleControllerTest.php b/tests/Feature/Controllers/Transaction/SingleControllerTest.php
index 62e87a7a36..2e0ac6f23d 100644
--- a/tests/Feature/Controllers/Transaction/SingleControllerTest.php
+++ b/tests/Feature/Controllers/Transaction/SingleControllerTest.php
@@ -34,6 +34,9 @@ use Tests\TestCase;
* Class SingleControllerTest
*
* @package Tests\Feature\Controllers\Transaction
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class SingleControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/Transaction/SplitControllerTest.php b/tests/Feature/Controllers/Transaction/SplitControllerTest.php
index 8bce207b05..c430a30dde 100644
--- a/tests/Feature/Controllers/Transaction/SplitControllerTest.php
+++ b/tests/Feature/Controllers/Transaction/SplitControllerTest.php
@@ -29,6 +29,9 @@ use Tests\TestCase;
* Class SplitControllerTest
*
* @package Tests\Feature\Controllers\Transaction
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class SplitControllerTest extends TestCase
{
diff --git a/tests/Feature/Controllers/TransactionControllerTest.php b/tests/Feature/Controllers/TransactionControllerTest.php
index 0590545c0b..43e705f369 100644
--- a/tests/Feature/Controllers/TransactionControllerTest.php
+++ b/tests/Feature/Controllers/TransactionControllerTest.php
@@ -22,6 +22,14 @@ use Illuminate\Support\Collection;
use Steam;
use Tests\TestCase;
+/**
+ * Class TransactionControllerTest
+ *
+ * @package Tests\Feature\Controllers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class TransactionControllerTest extends TestCase
{
diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php
index 04baa6bf3f..2cdc406421 100644
--- a/tests/Feature/ExampleTest.php
+++ b/tests/Feature/ExampleTest.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* ExampleTest.php
* Copyright (c) 2017 [email protected]
@@ -11,7 +13,11 @@ namespace Tests\Feature;
use Tests\TestCase;
-
+/**
+ * Class ExampleTest
+ *
+ * @package Tests\Feature
+ */
class ExampleTest extends TestCase
{
/**
diff --git a/tests/TestCase.php b/tests/TestCase.php
index f6d3efafb1..9bec6db836 100644
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -1,5 +1,5 @@
<?php
-
+declare(strict_types=1);
/**
* TestCase.php
@@ -23,6 +23,7 @@ use Mockery;
* Class TestCase
*
* @package Tests
+ * @SuppressWarnings(PHPMD.NumberOfChildren)
*/
abstract class TestCase extends BaseTestCase
{
diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php
index 6732e969bc..25b906c212 100644
--- a/tests/Unit/ExampleTest.php
+++ b/tests/Unit/ExampleTest.php
@@ -1,5 +1,6 @@
<?php
+declare(strict_types=1);
/**
* ExampleTest.php
@@ -14,7 +15,14 @@ namespace Tests\Unit;
use Tests\TestCase;
-
+/**
+ * Class ExampleTest
+ *
+ * @package Tests\Unit
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class ExampleTest extends TestCase
{
/**
diff --git a/tests/Unit/Handlers/Events/UserEventHandlerTest.php b/tests/Unit/Handlers/Events/UserEventHandlerTest.php
index d22a3bcaec..bafa0d999e 100644
--- a/tests/Unit/Handlers/Events/UserEventHandlerTest.php
+++ b/tests/Unit/Handlers/Events/UserEventHandlerTest.php
@@ -21,6 +21,14 @@ use FireflyIII\Repositories\User\UserRepositoryInterface;
use Illuminate\Support\Facades\Mail;
use Tests\TestCase;
+/**
+ * Class UserEventHandlerTest
+ *
+ * @package Tests\Unit\Handlers\Events
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class UserEventHandlerTest extends TestCase
{
/**
diff --git a/tests/Unit/Helpers/AttachmentHelperTest.php b/tests/Unit/Helpers/AttachmentHelperTest.php
index 5f2d64308e..8d5f845480 100644
--- a/tests/Unit/Helpers/AttachmentHelperTest.php
+++ b/tests/Unit/Helpers/AttachmentHelperTest.php
@@ -23,6 +23,9 @@ use Tests\TestCase;
* Class AttachmentHelperTest
*
* @package Tests\Unit\Helpers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class AttachmentHelperTest extends TestCase
{
diff --git a/tests/Unit/Helpers/MetaPieChartTest.php b/tests/Unit/Helpers/MetaPieChartTest.php
index e575db4ed3..e68abf2a7a 100644
--- a/tests/Unit/Helpers/MetaPieChartTest.php
+++ b/tests/Unit/Helpers/MetaPieChartTest.php
@@ -25,6 +25,14 @@ use FireflyIII\Repositories\Account\AccountRepositoryInterface;
use Illuminate\Support\Collection;
use Tests\TestCase;
+/**
+ * Class MetaPieChartTest
+ *
+ * @package Tests\Unit\Helpers
+ * @SuppressWarnings(PHPMD.TooManyPublicMethods)
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
+ */
class MetaPieChartTest extends TestCase
{
/**