fix phpstan warnings

This commit is contained in:
James Cole
2025-01-03 15:53:10 +01:00
parent d95f3ca59f
commit fe4d139817
173 changed files with 374 additions and 360 deletions

View File

@@ -55,7 +55,7 @@ class CreateSupportTables extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -46,7 +46,7 @@ class CreateUsersTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -73,7 +73,7 @@ class CreateMainTables extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{
@@ -368,7 +368,7 @@ class CreateMainTables extends Migration
}
/**
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
*/
private function createRuleTables(): void
{
@@ -507,8 +507,8 @@ class CreateMainTables extends Migration
}
/**
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.NPathComplexity)
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
* @SuppressWarnings("PHPMD.NPathComplexity")
*/
private function createTransactionTables(): void
{

View File

@@ -38,7 +38,7 @@ class ChangesFor3101 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void {}
}

View File

@@ -43,7 +43,7 @@ class FixNullables extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -55,7 +55,7 @@ class ExpandTransactionsTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -43,7 +43,7 @@ class ChangesForV410 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -55,7 +55,7 @@ class ChangesForV420 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -43,7 +43,7 @@ class ChangesForV430 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -112,7 +112,7 @@ class ChangesForV431 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -61,7 +61,7 @@ class ChangesForV440 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -84,7 +84,7 @@ class ChangesForV450 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -45,7 +45,7 @@ class ChangesForV470 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -56,7 +56,7 @@ class ChangesForV470a extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -45,7 +45,7 @@ class CreateOauthAuthCodesTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -45,7 +45,7 @@ class CreateOauthAccessTokensTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -45,7 +45,7 @@ class CreateOauthRefreshTokensTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -45,7 +45,7 @@ class CreateOauthClientsTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -45,7 +45,7 @@ class CreateOauthPersonalAccessClientsTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -70,7 +70,7 @@ class ChangesForV472 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -75,7 +75,7 @@ class ChangesForV473 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -39,7 +39,7 @@ class ChangesForV474 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void {}
}

View File

@@ -48,8 +48,8 @@ class ChangesForV475 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings("PHPMD.ShortMethodName")
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
*/
public function up(): void
{

View File

@@ -61,7 +61,7 @@ class ChangesForV477 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -56,7 +56,7 @@ class ChangesForV479 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -46,7 +46,7 @@ class ChangesForV4710 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -42,7 +42,7 @@ class ChangesForV4711 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -42,7 +42,7 @@ class ChangesForV4712 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -57,7 +57,7 @@ class FixLdapConfiguration extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -113,7 +113,7 @@ class ChangesForV480 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -45,7 +45,7 @@ class MakeLocationsTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -45,7 +45,7 @@ class ChangesForV520 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -45,7 +45,7 @@ class ChangesForV530 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -57,7 +57,7 @@ class ChangesForV530a extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -98,7 +98,7 @@ class ChangesForV540 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -122,9 +122,9 @@ class ChangesForV550 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.NPathComplexity)
* @SuppressWarnings("PHPMD.ShortMethodName")
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
* @SuppressWarnings("PHPMD.NPathComplexity")
*/
public function up(): void
{

View File

@@ -60,7 +60,7 @@ class ChangesForV550b2 extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -52,7 +52,7 @@ class AddLdapColumnsToUsersTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -40,7 +40,7 @@ class ExtendCurrencyInfo extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -41,7 +41,7 @@ class DropTeleTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -106,8 +106,8 @@ class UserGroups extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings("PHPMD.ShortMethodName")
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
*/
public function up(): void
{

View File

@@ -43,7 +43,7 @@ class CreateLocalPersonalAccessTokensTable extends Migration
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -31,7 +31,7 @@ return new class () extends Migration {
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -31,7 +31,7 @@ return new class () extends Migration {
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -31,7 +31,7 @@ return new class () extends Migration {
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -31,7 +31,7 @@ return new class () extends Migration {
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -31,7 +31,7 @@ return new class () extends Migration {
/**
* Run the migrations.
*
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
*/
public function up(): void
{

View File

@@ -29,7 +29,7 @@ use Illuminate\Support\Facades\Schema;
return new class () extends Migration {
/**
* @SuppressWarnings(PHPMD.ShortMethodName)
* @SuppressWarnings("PHPMD.ShortMethodName")
* Run the migrations.
*/
public function up(): void

View File

@@ -87,7 +87,7 @@ class ExchangeRateSeeder extends Seeder
}
/**
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
*/
private function addRate(User $user, TransactionCurrency $from, TransactionCurrency $to, string $date, float $rate): void
{