Do some code cleanup and call correct phpunit.

This commit is contained in:
James Cole
2020-07-31 12:12:54 +02:00
parent c3110a43da
commit 4b96558433
48 changed files with 53 additions and 11 deletions

View File

@@ -48,6 +48,7 @@ class CorrectDatabase extends Command
*/
protected $signature = 'firefly-iii:correct-database';
/**
* Execute the console command.
*/
@@ -76,7 +77,7 @@ class CorrectDatabase extends Command
'firefly-iii:fix-long-descriptions',
'firefly-iii:fix-recurring-transactions',
'firefly-iii:restore-oauth-keys',
'firefly-iii:fix-transaction-types'
'firefly-iii:fix-transaction-types',
];
foreach ($commands as $command) {
$this->line(sprintf('Now executing %s', $command));

View File

@@ -52,6 +52,7 @@ class CorrectOpeningBalanceCurrencies extends Command
*/
protected $signature = 'firefly-iii:fix-ob-currencies';
/**
* Execute the console command.
*

View File

@@ -21,7 +21,6 @@
declare(strict_types=1);
namespace FireflyIII\Console\Commands\Correction;
use Exception;
@@ -47,6 +46,7 @@ class CreateAccessTokens extends Command
*/
protected $signature = 'firefly-iii:create-access-tokens';
/**
* Execute the console command.
*

View File

@@ -44,6 +44,7 @@ class CreateLinkTypes extends Command
*/
protected $signature = 'firefly-iii:create-link-types';
/**
* Execute the console command.
*

View File

@@ -46,6 +46,7 @@ class DeleteEmptyGroups extends Command
*/
protected $signature = 'firefly-iii:delete-empty-groups';
/**
* Execute the console command.
*

View File

@@ -48,6 +48,7 @@ class DeleteEmptyJournals extends Command
*/
protected $signature = 'firefly-iii:delete-empty-journals';
/**
* Execute the console command.
*

View File

@@ -48,6 +48,7 @@ class DeleteOrphanedTransactions extends Command
*/
protected $signature = 'firefly-iii:delete-orphaned-transactions';
/**
* Execute the console command.
*

View File

@@ -47,6 +47,7 @@ class DeleteZeroAmount extends Command
*/
protected $signature = 'firefly-iii:delete-zero-amount';
/**
* Execute the console command.
*

View File

@@ -49,6 +49,7 @@ class EnableCurrencies extends Command
*/
protected $signature = 'firefly-iii:enable-currencies';
/**
* Execute the console command.
*

View File

@@ -49,6 +49,7 @@ class FixAccountOrder extends Command
private AccountRepositoryInterface $repository;
/**
* Execute the console command.
*

View File

@@ -58,6 +58,7 @@ class FixAccountTypes extends Command
/** @var array */
private $fixable;
/**
* Execute the console command.
*

View File

@@ -49,6 +49,7 @@ class FixGroupAccounts extends Command
*/
protected $signature = 'firefly-iii:unify-group-accounts';
/**
* Execute the console command.
*

View File

@@ -47,6 +47,7 @@ class FixLongDescriptions extends Command
*/
protected $signature = 'firefly-iii:fix-long-descriptions';
/**
* Execute the console command.
*
@@ -68,7 +69,7 @@ class FixLongDescriptions extends Command
$groups = TransactionGroup::get(['id', 'title']);
/** @var TransactionGroup $group */
foreach ($groups as $group) {
if (strlen((string)$group->title) > self::MAX_LENGTH) {
if (strlen((string) $group->title) > self::MAX_LENGTH) {
$group->title = substr($group->title, 0, self::MAX_LENGTH);
$group->save();
$this->line(sprintf('Truncated description of transaction group #%d', $group->id));

View File

@@ -51,6 +51,7 @@ class FixPiggies extends Command
/** @var int */
private $count;
/**
* Execute the console command.
*

View File

@@ -54,6 +54,7 @@ class FixRecurringTransactions extends Command
/** @var UserRepositoryInterface */
private $userRepos;
/**
* Execute the console command.
*

View File

@@ -29,6 +29,7 @@ class FixTransactionTypes extends Command
*/
protected $signature = 'firefly-iii:fix-transaction-types';
/**
* Execute the console command.
*

View File

@@ -47,6 +47,7 @@ class FixUnevenAmount extends Command
*/
protected $signature = 'firefly-iii:fix-uneven-amount';
/**
* Execute the console command.
*

View File

@@ -45,6 +45,7 @@ class RemoveBills extends Command
*/
protected $signature = 'firefly-iii:remove-bills';
/**
* Execute the console command.
*

View File

@@ -47,6 +47,7 @@ class RenameMetaFields extends Command
/** @var int */
private $count;
/**
* Execute the console command.
*

View File

@@ -45,6 +45,7 @@ class TransferBudgets extends Command
*/
protected $signature = 'firefly-iii:fix-transfer-budgets';
/**
* Execute the console command.
*