More phpstan issues fixed.

This commit is contained in:
James Cole
2023-11-05 09:54:53 +01:00
parent 1b978d41e0
commit 2d5790c417
73 changed files with 142 additions and 574 deletions

View File

@@ -37,17 +37,9 @@ class AppendBudgetLimitPeriods extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '550_budget_limit_periods';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Append budget limits with their (estimated) timeframe.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:budget-limit-periods {--F|force : Force the execution of this command.}';
/**

View File

@@ -42,17 +42,9 @@ class BackToJournals extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '480_back_to_journals';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Move meta data back to journals, not individual transactions.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:back-to-journals {--F|force : Force the execution of this command.}';
/**

View File

@@ -38,17 +38,9 @@ class BudgetLimitCurrency extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '480_bl_currency';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Give budget limits a currency';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:bl-currency {--F|force : Force the execution of this command.}';
/**

View File

@@ -35,17 +35,9 @@ class FixPostgresSequences extends Command
{
use ShowsFriendlyMessages;
/**
* The console command description.
*
* @var string
*/
protected $description = 'Fixes issues with PostgreSQL sequences.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:fix-pgsql-sequences';
/**

View File

@@ -39,17 +39,9 @@ class MigrateAttachments extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '480_migrate_attachments';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Migrates attachment meta-data.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:migrate-attachments {--F|force : Force the execution of this command.}';
/**

View File

@@ -38,17 +38,9 @@ class MigrateJournalNotes extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '480_migrate_notes';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Migrate notes for transaction journals.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:migrate-notes {--F|force : Force the execution of this command.}';
/**

View File

@@ -41,17 +41,9 @@ class MigrateRecurrenceMeta extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '481_migrate_recurrence_meta';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Migrate recurrence meta data';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:migrate-recurrence-meta {--F|force : Force the execution of this command.}';
/**

View File

@@ -40,17 +40,9 @@ class MigrateRecurrenceType extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '550_migrate_recurrence_type';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Migrate transaction type of recurring transaction.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:migrate-recurrence-type {--F|force : Force the execution of this command.}';
/**

View File

@@ -39,17 +39,9 @@ class MigrateTagLocations extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '500_migrate_tag_locations';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Migrate tag locations.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:migrate-tag-locations {--F|force : Force the execution of this command.}';
/**

View File

@@ -45,17 +45,9 @@ class MigrateToRules extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '480_bills_to_rules';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Migrate bills to rules.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:bills-to-rules {--F|force : Force the execution of this command.}';
private BillRepositoryInterface $billRepository;
private int $count;

View File

@@ -38,17 +38,9 @@ class RenameAccountMeta extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '480_rename_account_meta';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Rename account meta-data to new format.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:rename-account-meta {--F|force : Force the execution of this command.}';
/**

View File

@@ -41,17 +41,9 @@ class UpgradeCurrencyPreferences extends Command
use ShowsFriendlyMessages;
public const CONFIG_NAME = '610_upgrade_currency_prefs';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Upgrade user currency preferences';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:upgrade-currency-preferences {--F|force : Force the execution of this command.}';
/**

View File

@@ -12,17 +12,9 @@ class UpgradeSkeleton extends Command
{
use ShowsFriendlyMessages;
public const CONFIG_NAME = '480_some_name';
/**
* The console command description.
*
* @var string
*/
protected $description = 'SOME DESCRIPTION';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:UPGRSKELETON {--F|force : Force the execution of this command.}';
/**