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

@@ -59,6 +59,7 @@ class AccountCurrencies extends Command
/** @var UserRepositoryInterface */
private $userRepos;
/**
* Each (asset) account must have a reference to a preferred currency. If the account does not have one, it's forced upon the account.
*

View File

@@ -51,6 +51,7 @@ class BackToJournals extends Command
*/
protected $signature = 'firefly-iii:back-to-journals {--F|force : Force the execution of this command.}';
/**
* Execute the console command.
*

View File

@@ -47,6 +47,7 @@ class BudgetLimitCurrency extends Command
*/
protected $signature = 'firefly-iii:bl-currency {--F|force : Force the execution of this command.}';
/**
* Execute the console command.
*

View File

@@ -50,6 +50,7 @@ class CCLiabilities extends Command
*/
protected $signature = 'firefly-iii:cc-liabilities {--F|force : Force the execution of this command.}';
/**
* Execute the console command.
*

View File

@@ -48,6 +48,7 @@ class MigrateAttachments extends Command
*/
protected $signature = 'firefly-iii:migrate-attachments {--F|force : Force the execution of this command.}';
/**
* Execute the console command.
*

View File

@@ -49,6 +49,7 @@ class MigrateJournalNotes extends Command
*/
protected $signature = 'firefly-iii:migrate-notes {--F|force : Force the execution of this command.}';
/**
* Execute the console command.
*

View File

@@ -47,6 +47,7 @@ class MigrateRecurrenceMeta extends Command
*/
protected $signature = 'firefly-iii:migrate-recurrence-meta {--F|force : Force the execution of this command.}';
/**
* Execute the console command.
*

View File

@@ -48,6 +48,7 @@ class MigrateTagLocations extends Command
*/
protected $signature = 'firefly-iii:migrate-tag-locations {--F|force : Force the execution of this command.}';
/**
* Execute the console command.
*

View File

@@ -69,6 +69,7 @@ class MigrateToGroups extends Command
/** @var JournalDestroyService */
private $service;
/**
* Execute the console command.
*
@@ -289,7 +290,6 @@ class MigrateToGroups extends Command
* @param TransactionJournal $journal
*
* @throws Exception
*
*/
private function makeMultiGroup(TransactionJournal $journal): void
{

View File

@@ -63,6 +63,7 @@ class MigrateToRules extends Command
/** @var UserRepositoryInterface */
private $userRepository;
/**
* Execute the console command.
*

View File

@@ -66,6 +66,7 @@ class OtherCurrenciesCorrections extends Command
/** @var JournalRepositoryInterface */
private $journalRepos;
/**
* Execute the console command.
*
@@ -265,7 +266,6 @@ class OtherCurrenciesCorrections extends Command
*
* Both source and destination must match the respective currency preference of the related asset account.
* So FF3 must verify all transactions.
*
*/
private function updateOtherJournalsCurrencies(): void
{

View File

@@ -45,6 +45,7 @@ class RenameAccountMeta extends Command
*/
protected $signature = 'firefly-iii:rename-account-meta {--F|force : Force the execution of this command.}';
/**
* Execute the console command.
*

View File

@@ -57,6 +57,7 @@ class TransactionIdentifier extends Command
/** @var JournalRepositoryInterface */
private $journalRepository;
/**
* This method gives all transactions which are part of a split journal (so more than 2) a sort of "order" so they are easier
* to easier to match to their counterpart. When a journal is split, it has two or three transactions: -3, -4 and -5 for example.

View File

@@ -78,6 +78,7 @@ class TransferCurrenciesCorrections extends Command
/** @var Transaction The source transaction of the current journal. */
private $sourceTransaction;
/**
* Execute the console command.
*
@@ -185,7 +186,6 @@ class TransferCurrenciesCorrections extends Command
* If the destination account currency is the same as the source currency,
* both foreign_amount and foreign_currency_id fields must be NULL
* for both transactions (because foreign currency info would not make sense)
*
*/
private function fixInvalidForeignCurrency(): void
{

View File

@@ -48,6 +48,7 @@ class UpgradeDatabase extends Command
*/
protected $signature = 'firefly-iii:upgrade-database {--F|force : Force all upgrades.}';
/**
* Execute the console command.
*