From c3bf3655632406a92ffd6c769edbd1d716a35d5e Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 15 Mar 2023 06:49:45 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- app/BuildMetric.php | 1 + app/Character.php | 1 + app/Console/Commands/ProcessImgs.php | 1 - app/Equipment.php | 1 + app/EquipmentMod.php | 1 + app/Gun.php | 1 + app/Loadout.php | 1 + app/Mod.php | 1 + app/Overclock.php | 1 + app/Patch.php | 1 + app/Post.php | 1 + app/Providers/EventServiceProvider.php | 1 - app/Throwable.php | 1 + app/User.php | 1 + .../migrations/2020_06_02_002546_create_permission_tables.php | 4 ++-- routes/backpack/custom.php | 1 - 16 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app/BuildMetric.php b/app/BuildMetric.php index 8bf02611..1908ea8f 100644 --- a/app/BuildMetric.php +++ b/app/BuildMetric.php @@ -93,6 +93,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|BuildMetric whereUtility($value) * @method static \Illuminate\Database\Eloquent\Builder|BuildMetric whereWeakpointAccuracy($value) * @method static \Illuminate\Database\Eloquent\Builder|BuildMetric whereWeaponShortName($value) + * * @mixin \Eloquent */ class BuildMetric extends Model diff --git a/app/Character.php b/app/Character.php index 27efb530..b8aec20d 100644 --- a/app/Character.php +++ b/app/Character.php @@ -36,6 +36,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Character whereImage($value) * @method static \Illuminate\Database\Eloquent\Builder|Character whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Character whereUpdatedAt($value) + * * @mixin \Eloquent */ class Character extends Model diff --git a/app/Console/Commands/ProcessImgs.php b/app/Console/Commands/ProcessImgs.php index 750b3f01..7c4d96fa 100644 --- a/app/Console/Commands/ProcessImgs.php +++ b/app/Console/Commands/ProcessImgs.php @@ -49,7 +49,6 @@ public function handle() // Loop foreach ($files as $file) { - // Remove all but "Upgrade" if (! Str::contains($file->getFilename(), 'Icon_Upgrade')) { File::delete($file->getPathname()); diff --git a/app/Equipment.php b/app/Equipment.php index 1d326a37..cc124a63 100644 --- a/app/Equipment.php +++ b/app/Equipment.php @@ -40,6 +40,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Equipment whereLike($column, $value, $boolean = 'and') * @method static \Illuminate\Database\Eloquent\Builder|Equipment whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Equipment whereUpdatedAt($value) + * * @mixin \Eloquent */ class Equipment extends Model diff --git a/app/EquipmentMod.php b/app/EquipmentMod.php index 44722e47..710ba794 100644 --- a/app/EquipmentMod.php +++ b/app/EquipmentMod.php @@ -61,6 +61,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|EquipmentMod whereModType($value) * @method static \Illuminate\Database\Eloquent\Builder|EquipmentMod whereUmaniteCost($value) * @method static \Illuminate\Database\Eloquent\Builder|EquipmentMod whereUpdatedAt($value) + * * @mixin \Eloquent */ class EquipmentMod extends Model diff --git a/app/Gun.php b/app/Gun.php index 1e162b17..7c44a359 100644 --- a/app/Gun.php +++ b/app/Gun.php @@ -45,6 +45,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Gun whereLike($column, $value, $boolean = 'and') * @method static \Illuminate\Database\Eloquent\Builder|Gun whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Gun whereUpdatedAt($value) + * * @mixin \Eloquent */ class Gun extends Model diff --git a/app/Loadout.php b/app/Loadout.php index ac5bdc20..ead5a567 100644 --- a/app/Loadout.php +++ b/app/Loadout.php @@ -60,6 +60,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Loadout whereThrowableId($value) * @method static \Illuminate\Database\Eloquent\Builder|Loadout whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Loadout whereUserId($value) + * * @mixin \Eloquent * * @property int $patch_id diff --git a/app/Mod.php b/app/Mod.php index bdb0c343..1451deaf 100644 --- a/app/Mod.php +++ b/app/Mod.php @@ -59,6 +59,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Mod whereModType($value) * @method static \Illuminate\Database\Eloquent\Builder|Mod whereTextDescription($value) * @method static \Illuminate\Database\Eloquent\Builder|Mod whereUmaniteCost($value) + * * @mixin \Eloquent */ class Mod extends Model diff --git a/app/Overclock.php b/app/Overclock.php index f1c8e99c..e8645a67 100644 --- a/app/Overclock.php +++ b/app/Overclock.php @@ -55,6 +55,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Overclock whereOverclockType($value) * @method static \Illuminate\Database\Eloquent\Builder|Overclock whereTextDescription($value) * @method static \Illuminate\Database\Eloquent\Builder|Overclock whereUmaniteCost($value) + * * @mixin \Eloquent */ class Overclock extends Model diff --git a/app/Patch.php b/app/Patch.php index ac0890f6..d170f81c 100644 --- a/app/Patch.php +++ b/app/Patch.php @@ -32,6 +32,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Patch wherePatchNumDev($value) * @method static \Illuminate\Database\Eloquent\Builder|Patch wherePatchTitle($value) * @method static \Illuminate\Database\Eloquent\Builder|Patch whereUpdatedAt($value) + * * @mixin \Eloquent * * @property string|null $launched_at diff --git a/app/Post.php b/app/Post.php index 38978b24..1d39eb63 100644 --- a/app/Post.php +++ b/app/Post.php @@ -30,6 +30,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Post whereTitle($value) * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Post whereUserId($value) + * * @mixin \Eloquent */ class Post extends Model diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index a1ee20f6..3a498b73 100644 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -32,7 +32,6 @@ class EventServiceProvider extends ServiceProvider */ public function boot() { - // } } diff --git a/app/Throwable.php b/app/Throwable.php index 5390327f..7a3ef9b3 100644 --- a/app/Throwable.php +++ b/app/Throwable.php @@ -50,6 +50,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Throwable whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Throwable whereUmaniteCost($value) * @method static \Illuminate\Database\Eloquent\Builder|Throwable whereUpdatedAt($value) + * * @mixin \Eloquent */ class Throwable extends Model diff --git a/app/User.php b/app/User.php index cb993987..4f591e19 100644 --- a/app/User.php +++ b/app/User.php @@ -59,6 +59,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|User wherePassword($value) * @method static \Illuminate\Database\Eloquent\Builder|User whereRememberToken($value) * @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value) + * * @mixin \Eloquent * * @property int $can_email diff --git a/database/migrations/2020_06_02_002546_create_permission_tables.php b/database/migrations/2020_06_02_002546_create_permission_tables.php index 6951e797..531bb901 100644 --- a/database/migrations/2020_06_02_002546_create_permission_tables.php +++ b/database/migrations/2020_06_02_002546_create_permission_tables.php @@ -47,7 +47,7 @@ public function up() ->onDelete('cascade'); $table->primary(['permission_id', $columnNames['model_morph_key'], 'model_type'], - 'model_has_permissions_permission_model_type_primary'); + 'model_has_permissions_permission_model_type_primary'); }); Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames) { @@ -63,7 +63,7 @@ public function up() ->onDelete('cascade'); $table->primary(['role_id', $columnNames['model_morph_key'], 'model_type'], - 'model_has_roles_role_model_type_primary'); + 'model_has_roles_role_model_type_primary'); }); Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) { diff --git a/routes/backpack/custom.php b/routes/backpack/custom.php index 687b5a83..e413b533 100644 --- a/routes/backpack/custom.php +++ b/routes/backpack/custom.php @@ -16,7 +16,6 @@ 'middleware' => ['web', 'permission:view-admin'], 'namespace' => 'App\Http\Controllers\Admin', ], function () { // custom admin routes - Route::group([ 'middleware' => ['web', 'permission:manage-stats'], ], function () {