mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Various code clean up.
This commit is contained in:
parent
a3a416b5e2
commit
9803932324
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UseEncryption.php
|
* UseEncryption.php
|
||||||
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
||||||
|
@ -138,7 +138,7 @@ class HomeController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
return view(
|
return view(
|
||||||
'index', compact('count', 'title', 'subTitle', 'mainTitleIcon', 'transactions', 'showDepositsFrontpage', 'billCount')
|
'index', compact('count', 'subTitle', 'transactions', 'showDepositsFrontpage', 'billCount')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ class TagController extends Controller
|
|||||||
Session::flash('gaEventCategory', 'tags');
|
Session::flash('gaEventCategory', 'tags');
|
||||||
Session::flash('gaEventAction', 'edit');
|
Session::flash('gaEventAction', 'edit');
|
||||||
|
|
||||||
return view('tags.edit', compact('tag', 'subTitle', 'subTitleIcon', 'tagOptions', 'apiKey'));
|
return view('tags.edit', compact('tag', 'subTitle', 'subTitleIcon', 'apiKey'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -131,10 +131,9 @@ class MassController extends Controller
|
|||||||
$filtered = new Collection;
|
$filtered = new Collection;
|
||||||
$messages = [];
|
$messages = [];
|
||||||
/**
|
/**
|
||||||
* @var int $index
|
|
||||||
* @var TransactionJournal $journal
|
* @var TransactionJournal $journal
|
||||||
*/
|
*/
|
||||||
foreach ($journals as $index => $journal) {
|
foreach ($journals as $journal) {
|
||||||
$sources = $journal->sourceAccountList();
|
$sources = $journal->sourceAccountList();
|
||||||
$destinations = $journal->destinationAccountList();
|
$destinations = $journal->destinationAccountList();
|
||||||
if ($sources->count() > 1) {
|
if ($sources->count() > 1) {
|
||||||
|
@ -114,7 +114,7 @@ class SplitController extends Controller
|
|||||||
'transactions.split.edit',
|
'transactions.split.edit',
|
||||||
compact(
|
compact(
|
||||||
'subTitleIcon', 'currencies', 'optionalFields',
|
'subTitleIcon', 'currencies', 'optionalFields',
|
||||||
'preFilled', 'subTitle', 'amount', 'sourceAccounts', 'uploadSize', 'destinationAccounts', 'assetAccounts',
|
'preFilled', 'subTitle', 'uploadSize', 'assetAccounts',
|
||||||
'budgets', 'journal'
|
'budgets', 'journal'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -260,8 +260,8 @@ class CsvProcessor implements FileProcessorInterface
|
|||||||
private function specifics(array $row): array
|
private function specifics(array $row): array
|
||||||
{
|
{
|
||||||
$config = $this->job->configuration;
|
$config = $this->job->configuration;
|
||||||
//
|
$names = array_keys($config['specifics']);
|
||||||
foreach ($config['specifics'] as $name => $enabled) {
|
foreach ($names as $name) {
|
||||||
|
|
||||||
if (!in_array($name, $this->validSpecifics)) {
|
if (!in_array($name, $this->validSpecifics)) {
|
||||||
throw new FireflyException(sprintf('"%s" is not a valid class name', $name));
|
throw new FireflyException(sprintf('"%s" is not a valid class name', $name));
|
||||||
|
@ -252,12 +252,11 @@ class ImportStorage
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ImportJournal $importJournal
|
* @param ImportJournal $importJournal
|
||||||
* @param Account $account
|
|
||||||
* @param TransactionCurrency $localCurrency
|
* @param TransactionCurrency $localCurrency
|
||||||
*
|
*
|
||||||
* @return int|null
|
* @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:
|
// get journal currency, if any:
|
||||||
$currency = $importJournal->getCurrency()->getTransactionCurrency();
|
$currency = $importJournal->getCurrency()->getTransactionCurrency();
|
||||||
@ -394,7 +393,7 @@ class ImportStorage
|
|||||||
$asset = $importJournal->asset->getAccount();
|
$asset = $importJournal->asset->getAccount();
|
||||||
$amount = $importJournal->getAmount();
|
$amount = $importJournal->getAmount();
|
||||||
$currency = $this->getCurrency($importJournal, $asset);
|
$currency = $this->getCurrency($importJournal, $asset);
|
||||||
$foreignCurrencyId = $this->getForeignCurrencyId($importJournal, $asset, $currency);
|
$foreignCurrencyId = $this->getForeignCurrencyId($importJournal, $currency);
|
||||||
$date = $importJournal->getDate($this->dateFormat);
|
$date = $importJournal->getDate($this->dateFormat);
|
||||||
$transactionType = $this->getTransactionType($amount);
|
$transactionType = $this->getTransactionType($amount);
|
||||||
$opposing = $this->getOpposingAccount($importJournal->opposing, $amount);
|
$opposing = $this->getOpposingAccount($importJournal->opposing, $amount);
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -206,7 +206,8 @@ class AccountTasker implements AccountTaskerInterface
|
|||||||
$expenses[$opposingId]['count']++;
|
$expenses[$opposingId]['count']++;
|
||||||
}
|
}
|
||||||
// do averages:
|
// do averages:
|
||||||
foreach ($expenses as $key => $entry) {
|
$keys = array_keys($expenses);
|
||||||
|
foreach ($keys as $key) {
|
||||||
if ($expenses[$key]['count'] > 1) {
|
if ($expenses[$key]['count'] > 1) {
|
||||||
$expenses[$key]['average'] = bcdiv($expenses[$key]['sum'], strval($expenses[$key]['count']));
|
$expenses[$key]['average'] = bcdiv($expenses[$key]['sum'], strval($expenses[$key]['count']));
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,8 @@ class Initial implements ConfigurationInterface
|
|||||||
{
|
{
|
||||||
// loop specifics.
|
// loop specifics.
|
||||||
if (isset($data['specifics']) && is_array($data['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.
|
// verify their content.
|
||||||
$className = sprintf('FireflyIII\Import\Specifics\%s', $name);
|
$className = sprintf('FireflyIII\Import\Specifics\%s', $name);
|
||||||
if (class_exists($className)) {
|
if (class_exists($className)) {
|
||||||
|
@ -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']);
|
$this->data[$index]['values'] = array_unique($this->data[$index]['values']);
|
||||||
asort($this->data[$index]['values']);
|
asort($this->data[$index]['values']);
|
||||||
}
|
}
|
||||||
|
unset($setIndexes);
|
||||||
|
|
||||||
// save number of rows, thus number of steps, in job:
|
// save number of rows, thus number of steps, in job:
|
||||||
$steps = $rowIndex * 5;
|
$steps = $rowIndex * 5;
|
||||||
@ -233,8 +235,8 @@ class Map implements ConfigurationInterface
|
|||||||
{
|
{
|
||||||
// run specifics here:
|
// run specifics here:
|
||||||
// and this is the point where the specifix go to work.
|
// 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)) {
|
if (!in_array($name, $this->validSpecifics)) {
|
||||||
throw new FireflyException(sprintf('"%s" is not a valid class name', $name));
|
throw new FireflyException(sprintf('"%s" is not a valid class name', $name));
|
||||||
}
|
}
|
||||||
|
@ -228,7 +228,8 @@ class Roles implements ConfigurationInterface
|
|||||||
*/
|
*/
|
||||||
private function processSpecifics(array $row): array
|
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 */
|
/** @var SpecificInterface $specific */
|
||||||
$specific = app('FireflyIII\Import\Specifics\\' . $name);
|
$specific = app('FireflyIII\Import\Specifics\\' . $name);
|
||||||
$row = $specific->run($row);
|
$row = $specific->run($row);
|
||||||
|
@ -119,7 +119,7 @@ class Search implements SearchInterface
|
|||||||
|
|
||||||
// Filter transactions that match the given triggers.
|
// Filter transactions that match the given triggers.
|
||||||
$filtered = $set->filter(
|
$filtered = $set->filter(
|
||||||
function (Transaction $transaction) use ($words) {
|
function (Transaction $transaction) {
|
||||||
|
|
||||||
if ($this->matchModifiers($transaction)) {
|
if ($this->matchModifiers($transaction)) {
|
||||||
return $transaction;
|
return $transaction;
|
||||||
@ -237,7 +237,7 @@ class Search implements SearchInterface
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
foreach ($needle as $what) {
|
foreach ($needle as $what) {
|
||||||
if (($pos = strpos($haystack, $what)) !== false) {
|
if (strpos($haystack, $what) !== false) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* auth.php
|
* auth.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* broadcasting.php
|
* broadcasting.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cache.php
|
* cache.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* compile.php
|
* compile.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* database.php
|
* database.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* filesystems.php
|
* filesystems.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* mail.php
|
* mail.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* queue.php
|
* queue.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* services.php
|
* services.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This file is part of the TwigBridge package.
|
* This file is part of the TwigBridge package.
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2016_10_09_150037_expand_transactions_table.php
|
* 2016_10_09_150037_expand_transactions_table.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2016_10_22_075804_changes_for_v410.php
|
* 2016_10_22_075804_changes_for_v410.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2016_11_24_210552_changes_for_v420.php
|
* 2016_11_24_210552_changes_for_v420.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2016_12_28_203205_changes_for_v431.php
|
* 2016_12_28_203205_changes_for_v431.php
|
||||||
* Copyright (c) 2016 thegrumpydictator@gmail.com
|
* Copyright (c) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
@ -23,6 +25,7 @@ class ChangesForV440 extends Migration
|
|||||||
/**
|
/**
|
||||||
* Run the migrations.
|
* Run the migrations.
|
||||||
*
|
*
|
||||||
|
* @SuppressWarnings(PHPMD.ShortMethodName)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
@ -20,6 +22,7 @@ class ChangesForV450 extends Migration
|
|||||||
/**
|
/**
|
||||||
* Run the migrations.
|
* Run the migrations.
|
||||||
*
|
*
|
||||||
|
* @SuppressWarnings(PHPMD.ShortMethodName)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* auth.php
|
* auth.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* breadcrumbs.php
|
* breadcrumbs.php
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* config.php
|
* config.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* demo.php
|
* demo.php
|
||||||
* Copyright (c) 2016 thegrumpydictator@gmail.com
|
* Copyright (c) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* firefly.php
|
* firefly.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* form.php
|
* form.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* help.php
|
* help.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* intro.php
|
* intro.php
|
||||||
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
||||||
@ -116,4 +118,4 @@ return [
|
|||||||
|
|
||||||
// create currency
|
// create currency
|
||||||
'currencies_create_code' => 'This code should be ISO compliant (Google it for your new currency).',
|
'currencies_create_code' => 'This code should be ISO compliant (Google it for your new currency).',
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* list.php
|
* list.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pagination.php
|
* pagination.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* passwords.php
|
* passwords.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* validation.php
|
* validation.php
|
||||||
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
||||||
|
@ -35,4 +35,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -14,6 +16,11 @@ namespace Tests;
|
|||||||
|
|
||||||
use Illuminate\Contracts\Console\Kernel;
|
use Illuminate\Contracts\Console\Kernel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trait CreatesApplication
|
||||||
|
*
|
||||||
|
* @package Tests
|
||||||
|
*/
|
||||||
trait CreatesApplication
|
trait CreatesApplication
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -31,6 +31,9 @@ use Tests\TestCase;
|
|||||||
* Class AccountControllerTest
|
* Class AccountControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class AccountControllerTest extends TestCase
|
class AccountControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,9 @@ use Tests\TestCase;
|
|||||||
* Class ConfigurationControllerTest
|
* Class ConfigurationControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Admin
|
* @package Tests\Feature\Controllers\Admin
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class ConfigurationControllerTest extends TestCase
|
class ConfigurationControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -17,6 +17,9 @@ use Tests\TestCase;
|
|||||||
* Class HomeControllerTest
|
* Class HomeControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Admin
|
* @package Tests\Feature\Controllers\Admin
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class HomeControllerTest extends TestCase
|
class HomeControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,9 @@ use Tests\TestCase;
|
|||||||
* Class UserControllerTest
|
* Class UserControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Admin
|
* @package Tests\Feature\Controllers\Admin
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class UserControllerTest extends TestCase
|
class UserControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -17,6 +17,14 @@ use FireflyIII\Repositories\Attachment\AttachmentRepositoryInterface;
|
|||||||
use FireflyIII\Repositories\Journal\JournalRepositoryInterface;
|
use FireflyIII\Repositories\Journal\JournalRepositoryInterface;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class AttachmentControllerTest
|
||||||
|
*
|
||||||
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class AttachmentControllerTest extends TestCase
|
class AttachmentControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -15,6 +15,14 @@ namespace Tests\Feature\Controllers\Auth;
|
|||||||
use FireflyIII\Repositories\User\UserRepositoryInterface;
|
use FireflyIII\Repositories\User\UserRepositoryInterface;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ForgotPasswordControllerTest
|
||||||
|
*
|
||||||
|
* @package Tests\Feature\Controllers\Auth
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class ForgotPasswordControllerTest extends TestCase
|
class ForgotPasswordControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -21,6 +21,9 @@ use Tests\TestCase;
|
|||||||
* Class TwoFactorControllerTest
|
* Class TwoFactorControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Auth
|
* @package Tests\Feature\Controllers\Auth
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class TwoFactorControllerTest extends TestCase
|
class TwoFactorControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -22,6 +22,14 @@ use Illuminate\Pagination\LengthAwarePaginator;
|
|||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class BillControllerTest
|
||||||
|
*
|
||||||
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class BillControllerTest extends TestCase
|
class BillControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -23,6 +23,14 @@ use Illuminate\Pagination\LengthAwarePaginator;
|
|||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class BudgetControllerTest
|
||||||
|
*
|
||||||
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class BudgetControllerTest extends TestCase
|
class BudgetControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -25,6 +25,14 @@ use Illuminate\Support\Collection;
|
|||||||
use Steam;
|
use Steam;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class CategoryControllerTest
|
||||||
|
*
|
||||||
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class CategoryControllerTest extends TestCase
|
class CategoryControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -32,6 +32,9 @@ use Tests\TestCase;
|
|||||||
* Class AccountControllerTest
|
* Class AccountControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Chart
|
* @package Tests\Feature\Controllers\Chart
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class AccountControllerTest extends TestCase
|
class AccountControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -23,6 +23,9 @@ use Tests\TestCase;
|
|||||||
* Class BillControllerTest
|
* Class BillControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Chart
|
* @package Tests\Feature\Controllers\Chart
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class BillControllerTest extends TestCase
|
class BillControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -31,6 +31,9 @@ use Tests\TestCase;
|
|||||||
* Class BudgetControllerTest
|
* Class BudgetControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Chart
|
* @package Tests\Feature\Controllers\Chart
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class BudgetControllerTest extends TestCase
|
class BudgetControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -27,6 +27,14 @@ use Illuminate\Support\Collection;
|
|||||||
use Log;
|
use Log;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class BudgetReportControllerTest
|
||||||
|
*
|
||||||
|
* @package Tests\Feature\Controllers\Chart
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class BudgetReportControllerTest extends TestCase
|
class BudgetReportControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -26,6 +26,9 @@ use Tests\TestCase;
|
|||||||
* Class CategoryControllerTest
|
* Class CategoryControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Chart
|
* @package Tests\Feature\Controllers\Chart
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class CategoryControllerTest extends TestCase
|
class CategoryControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -27,6 +27,9 @@ use Tests\TestCase;
|
|||||||
* Class CategoryReportControllerTest
|
* Class CategoryReportControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Chart
|
* @package Tests\Feature\Controllers\Chart
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class CategoryReportControllerTest extends TestCase
|
class CategoryReportControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -22,6 +22,9 @@ use Tests\TestCase;
|
|||||||
* Class PiggyBankControllerTest
|
* Class PiggyBankControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Chart
|
* @package Tests\Feature\Controllers\Chart
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class PiggyBankControllerTest extends TestCase
|
class PiggyBankControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -21,6 +21,9 @@ use Tests\TestCase;
|
|||||||
* Class ReportControllerTest
|
* Class ReportControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Chart
|
* @package Tests\Feature\Controllers\Chart
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class ReportControllerTest extends TestCase
|
class ReportControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -29,6 +29,9 @@ use Tests\TestCase;
|
|||||||
* Class TagReportControllerTest
|
* Class TagReportControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Chart
|
* @package Tests\Feature\Controllers\Chart
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class TagReportControllerTest extends TestCase
|
class TagReportControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -23,6 +23,9 @@ use Tests\TestCase;
|
|||||||
* Class CurrencyControllerTest
|
* Class CurrencyControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class CurrencyControllerTest extends TestCase
|
class CurrencyControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -26,6 +26,9 @@ use Tests\TestCase;
|
|||||||
* Class ExportControllerTest
|
* Class ExportControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class ExportControllerTest extends TestCase
|
class ExportControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -19,6 +19,9 @@ use Tests\TestCase;
|
|||||||
* Class HelpControllerTest
|
* Class HelpControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class HelpControllerTest extends TestCase
|
class HelpControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,9 @@ use Tests\TestCase;
|
|||||||
* Class HomeControllerTest
|
* Class HomeControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class HomeControllerTest extends TestCase
|
class HomeControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,14 @@ use FireflyIII\Repositories\ImportJob\ImportJobRepositoryInterface;
|
|||||||
use Illuminate\Http\UploadedFile;
|
use Illuminate\Http\UploadedFile;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class FileControllerTest
|
||||||
|
*
|
||||||
|
* @package Tests\Feature\Controllers\Import
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class FileControllerTest extends TestCase
|
class FileControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -17,6 +17,9 @@ use Tests\TestCase;
|
|||||||
* Class ImportControllerTest
|
* Class ImportControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class ImportControllerTest extends TestCase
|
class ImportControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -23,6 +23,9 @@ use Tests\TestCase;
|
|||||||
* Class JavascriptControllerTest
|
* Class JavascriptControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class JavascriptControllerTest extends TestCase
|
class JavascriptControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,9 @@ use Tests\TestCase;
|
|||||||
* Class ExchangeControllerTest
|
* Class ExchangeControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class ExchangeControllerTest extends TestCase
|
class ExchangeControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -33,6 +33,9 @@ use Tests\TestCase;
|
|||||||
* Class JsonControllerTest
|
* Class JsonControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class JsonControllerTest extends TestCase
|
class JsonControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,9 @@ use Tests\TestCase;
|
|||||||
* Class NewUserControllerTest
|
* Class NewUserControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class NewUserControllerTest extends TestCase
|
class NewUserControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -26,6 +26,9 @@ use Tests\TestCase;
|
|||||||
* Class PiggyBankControllerTest
|
* Class PiggyBankControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class PiggyBankControllerTest extends TestCase
|
class PiggyBankControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -28,6 +28,9 @@ use Tests\TestCase;
|
|||||||
* Class ReportControllerTest
|
* Class ReportControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Popup
|
* @package Tests\Feature\Controllers\Popup
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class ReportControllerTest extends TestCase
|
class ReportControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,9 @@ use Tests\TestCase;
|
|||||||
* Class PreferencesControllerTest
|
* Class PreferencesControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class PreferencesControllerTest extends TestCase
|
class PreferencesControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,9 @@ use Tests\TestCase;
|
|||||||
* Class ProfileControllerTest
|
* Class ProfileControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class ProfileControllerTest extends TestCase
|
class ProfileControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -19,6 +19,9 @@ use Tests\TestCase;
|
|||||||
* Class AccountControllerTest
|
* Class AccountControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Report
|
* @package Tests\Feature\Controllers\Report
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class AccountControllerTest extends TestCase
|
class AccountControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,9 @@ use Tests\TestCase;
|
|||||||
* Class BalanceControllerTest
|
* Class BalanceControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Report
|
* @package Tests\Feature\Controllers\Report
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class BalanceControllerTest extends TestCase
|
class BalanceControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -21,6 +21,9 @@ use Tests\TestCase;
|
|||||||
* Class BudgetControllerTest
|
* Class BudgetControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Report
|
* @package Tests\Feature\Controllers\Report
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class BudgetControllerTest extends TestCase
|
class BudgetControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -17,6 +17,14 @@ use FireflyIII\Repositories\Category\CategoryRepositoryInterface;
|
|||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class CategoryControllerTest
|
||||||
|
*
|
||||||
|
* @package Tests\Feature\Controllers\Report
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class CategoryControllerTest extends TestCase
|
class CategoryControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -22,6 +22,9 @@ use Tests\TestCase;
|
|||||||
* Class OperationsControllerTest
|
* Class OperationsControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Report
|
* @package Tests\Feature\Controllers\Report
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class OperationsControllerTest extends TestCase
|
class OperationsControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -35,6 +35,9 @@ use Tests\TestCase;
|
|||||||
* Class ReportControllerTest
|
* Class ReportControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class ReportControllerTest extends TestCase
|
class ReportControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -26,6 +26,9 @@ use Tests\TestCase;
|
|||||||
* Class RuleControllerTest
|
* Class RuleControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class RuleControllerTest extends TestCase
|
class RuleControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,9 @@ use Tests\TestCase;
|
|||||||
* Class RuleGroupControllerTest
|
* Class RuleGroupControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class RuleGroupControllerTest extends TestCase
|
class RuleGroupControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -18,6 +18,9 @@ use Tests\TestCase;
|
|||||||
* Class SearchControllerTest
|
* Class SearchControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class SearchControllerTest extends TestCase
|
class SearchControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -26,6 +26,9 @@ use Tests\TestCase;
|
|||||||
* Class TagControllerTest
|
* Class TagControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class TagControllerTest extends TestCase
|
class TagControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -26,6 +26,9 @@ use Tests\TestCase;
|
|||||||
* Class ConvertControllerTest
|
* Class ConvertControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Transaction
|
* @package Tests\Feature\Controllers\Transaction
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class ConvertControllerTest extends TestCase
|
class ConvertControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,9 @@ use Tests\TestCase;
|
|||||||
* Class MassControllerTest
|
* Class MassControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Transaction
|
* @package Tests\Feature\Controllers\Transaction
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class MassControllerTest extends TestCase
|
class MassControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,9 @@ use Tests\TestCase;
|
|||||||
* Class SingleControllerTest
|
* Class SingleControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Transaction
|
* @package Tests\Feature\Controllers\Transaction
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class SingleControllerTest extends TestCase
|
class SingleControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -29,6 +29,9 @@ use Tests\TestCase;
|
|||||||
* Class SplitControllerTest
|
* Class SplitControllerTest
|
||||||
*
|
*
|
||||||
* @package Tests\Feature\Controllers\Transaction
|
* @package Tests\Feature\Controllers\Transaction
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class SplitControllerTest extends TestCase
|
class SplitControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -22,6 +22,14 @@ use Illuminate\Support\Collection;
|
|||||||
use Steam;
|
use Steam;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TransactionControllerTest
|
||||||
|
*
|
||||||
|
* @package Tests\Feature\Controllers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class TransactionControllerTest extends TestCase
|
class TransactionControllerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ExampleTest.php
|
* ExampleTest.php
|
||||||
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
||||||
@ -11,7 +13,11 @@ namespace Tests\Feature;
|
|||||||
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ExampleTest
|
||||||
|
*
|
||||||
|
* @package Tests\Feature
|
||||||
|
*/
|
||||||
class ExampleTest extends TestCase
|
class ExampleTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TestCase.php
|
* TestCase.php
|
||||||
@ -23,6 +23,7 @@ use Mockery;
|
|||||||
* Class TestCase
|
* Class TestCase
|
||||||
*
|
*
|
||||||
* @package Tests
|
* @package Tests
|
||||||
|
* @SuppressWarnings(PHPMD.NumberOfChildren)
|
||||||
*/
|
*/
|
||||||
abstract class TestCase extends BaseTestCase
|
abstract class TestCase extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ExampleTest.php
|
* ExampleTest.php
|
||||||
@ -14,7 +15,14 @@ namespace Tests\Unit;
|
|||||||
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ExampleTest
|
||||||
|
*
|
||||||
|
* @package Tests\Unit
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class ExampleTest extends TestCase
|
class ExampleTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -21,6 +21,14 @@ use FireflyIII\Repositories\User\UserRepositoryInterface;
|
|||||||
use Illuminate\Support\Facades\Mail;
|
use Illuminate\Support\Facades\Mail;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class UserEventHandlerTest
|
||||||
|
*
|
||||||
|
* @package Tests\Unit\Handlers\Events
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class UserEventHandlerTest extends TestCase
|
class UserEventHandlerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -23,6 +23,9 @@ use Tests\TestCase;
|
|||||||
* Class AttachmentHelperTest
|
* Class AttachmentHelperTest
|
||||||
*
|
*
|
||||||
* @package Tests\Unit\Helpers
|
* @package Tests\Unit\Helpers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
*/
|
*/
|
||||||
class AttachmentHelperTest extends TestCase
|
class AttachmentHelperTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,14 @@ use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
|||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class MetaPieChartTest
|
||||||
|
*
|
||||||
|
* @package Tests\Unit\Helpers
|
||||||
|
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||||
|
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||||
|
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||||
|
*/
|
||||||
class MetaPieChartTest extends TestCase
|
class MetaPieChartTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user