mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 21:16:47 +00:00
Do some code cleanup and call correct phpunit.
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -52,6 +52,7 @@ class CorrectOpeningBalanceCurrencies extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:fix-ob-currencies';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
@@ -44,6 +44,7 @@ class CreateLinkTypes extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:create-link-types';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -46,6 +46,7 @@ class DeleteEmptyGroups extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:delete-empty-groups';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -48,6 +48,7 @@ class DeleteEmptyJournals extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:delete-empty-journals';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -48,6 +48,7 @@ class DeleteOrphanedTransactions extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:delete-orphaned-transactions';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -47,6 +47,7 @@ class DeleteZeroAmount extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:delete-zero-amount';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -49,6 +49,7 @@ class EnableCurrencies extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:enable-currencies';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -49,6 +49,7 @@ class FixAccountOrder extends Command
|
||||
|
||||
private AccountRepositoryInterface $repository;
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -58,6 +58,7 @@ class FixAccountTypes extends Command
|
||||
/** @var array */
|
||||
private $fixable;
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -49,6 +49,7 @@ class FixGroupAccounts extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:unify-group-accounts';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -51,6 +51,7 @@ class FixPiggies extends Command
|
||||
/** @var int */
|
||||
private $count;
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -54,6 +54,7 @@ class FixRecurringTransactions extends Command
|
||||
/** @var UserRepositoryInterface */
|
||||
private $userRepos;
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -29,6 +29,7 @@ class FixTransactionTypes extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:fix-transaction-types';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -47,6 +47,7 @@ class FixUnevenAmount extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:fix-uneven-amount';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -45,6 +45,7 @@ class RemoveBills extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:remove-bills';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -47,6 +47,7 @@ class RenameMetaFields extends Command
|
||||
/** @var int */
|
||||
private $count;
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
@@ -45,6 +45,7 @@ class TransferBudgets extends Command
|
||||
*/
|
||||
protected $signature = 'firefly-iii:fix-transfer-budgets';
|
||||
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user