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

@@ -36,17 +36,9 @@ class CreateDatabase extends Command
{
use ShowsFriendlyMessages;
/**
* The console command description.
*
* @var string
*/
protected $description = 'Tries to create the database if it doesn\'t exist yet.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:create-database';
/**

View File

@@ -39,17 +39,9 @@ class CreateFirstUser extends Command
{
use ShowsFriendlyMessages;
/**
* The console command description.
*
* @var string
*/
protected $description = 'Creates a new user and gives admin rights. Outputs the password on the command line. Strictly for testing.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:create-first-user {email}';
private UserRepositoryInterface $repository;

View File

@@ -40,17 +40,9 @@ class ForceMigration extends Command
use ShowsFriendlyMessages;
use VerifiesAccessToken;
/**
* The console command description.
*
* @var string
*/
protected $description = 'This command will force-run all database migrations.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:force-migrations
{--user=1 : The user ID.}
{--token= : The user\'s access token.}';

View File

@@ -32,17 +32,9 @@ use Illuminate\Console\Command;
*/
class OutputVersion extends Command
{
/**
* The console command description.
*
* @var string
*/
protected $description = 'Outputs the Firefly III version';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:output-version';
/**

View File

@@ -39,18 +39,10 @@ class ScanAttachments extends Command
{
use ShowsFriendlyMessages;
/**
* The console command description.
*
* @var string
*/
protected $description = 'Rescan all attachments and re-set the correct MD5 hash and mime.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:scan-attachments';
/**

View File

@@ -34,17 +34,9 @@ class SetLatestVersion extends Command
{
use ShowsFriendlyMessages;
/**
* The console command description.
*
* @var string
*/
protected $description = 'Set latest version in DB.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:set-latest-version {--james-is-cool}';
/**

View File

@@ -35,17 +35,9 @@ class UpgradeFireflyInstructions extends Command
{
use GeneratesInstallationId;
/**
* The console command description.
*
* @var string
*/
protected $description = 'Instructions in case of upgrade trouble.';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly:instructions {task}';
/**

View File

@@ -39,17 +39,9 @@ class VerifySecurityAlerts extends Command
{
use ShowsFriendlyMessages;
/**
* The console command description.
*
* @var string
*/
protected $description = 'Verify security alerts';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'firefly-iii:verify-security-alerts';
/**