@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! isset($argv[1]) || ! is_numeric($argv[1])) { |
|
3 | +if (!isset($argv[1]) || !is_numeric($argv[1])) { |
|
4 | 4 | exit( |
5 | 5 | 'Argument 1 => (Number) Set to 0 to ignore, else fetches up to x new headers for every active group.'.PHP_EOL |
6 | 6 | ); |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; |
4 | 4 | |
5 | -if (! isset($argv[1]) || ! in_array($argv[1], ['ama', 'add', 'mov', 'nfo', 'sha', 'tv'], false)) { |
|
5 | +if (!isset($argv[1]) || !in_array($argv[1], ['ama', 'add', 'mov', 'nfo', 'sha', 'tv'], false)) { |
|
6 | 6 | exit( |
7 | 7 | 'First argument (mandatory):'.PHP_EOL. |
8 | 8 | 'ama => Do amazon processing, this does not use multi-processing, because of amazon API restrictions.'.PHP_EOL. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! isset($argv[1]) || ! in_array($argv[1], ['backfill', 'binaries'])) { |
|
3 | +if (!isset($argv[1]) || !in_array($argv[1], ['backfill', 'binaries'])) { |
|
4 | 4 | exit( |
5 | 5 | 'First argument (mandatory):'.PHP_EOL. |
6 | 6 | 'binaries => Do Safe Binaries update.'.PHP_EOL. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! isset($argv[1]) || ! in_array($argv[1], ['standard', 'predbft'])) { |
|
3 | +if (!isset($argv[1]) || !in_array($argv[1], ['standard', 'predbft'])) { |
|
4 | 4 | exit( |
5 | 5 | 'First argument (mandatory):'.PHP_EOL. |
6 | 6 | 'standard => Attempt to fix release name using standard methods.'.PHP_EOL. |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Rector\Config\RectorConfig; |
7 | 7 | use RectorLaravel\Set\LaravelSetList; |
8 | 8 | |
9 | -return static function (RectorConfig $rectorConfig): void { |
|
9 | +return static function(RectorConfig $rectorConfig): void { |
|
10 | 10 | $rectorConfig->paths([ |
11 | 11 | __DIR__.'/Blacklight', |
12 | 12 | __DIR__.'/app', |
@@ -13,6 +13,6 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Artisan::command('inspire', function () { |
|
16 | +Artisan::command('inspire', function() { |
|
17 | 17 | $this->comment(Inspiring::quote()); |
18 | 18 | })->purpose('Display an inspiring quote'); |
@@ -86,20 +86,20 @@ discard block |
||
86 | 86 | Route::post('login', [LoginController::class, 'login'])->name('login'); |
87 | 87 | Route::get('logout', [LoginController::class, 'logout'])->name('logout'); |
88 | 88 | |
89 | -Route::middleware('isVerified')->group(function () { |
|
89 | +Route::middleware('isVerified')->group(function() { |
|
90 | 90 | Route::get('resetpassword', [ResetPasswordController::class, 'reset']); |
91 | 91 | Route::post('resetpassword', [ResetPasswordController::class, 'reset']); |
92 | 92 | |
93 | 93 | Route::get('profile', [ProfileController::class, 'show']); |
94 | 94 | |
95 | - Route::prefix('browse')->group(function () { |
|
95 | + Route::prefix('browse')->group(function() { |
|
96 | 96 | Route::get('tags', [BrowseController::class, 'tags']); |
97 | 97 | Route::get('group', [BrowseController::class, 'group']); |
98 | 98 | Route::get('All', [BrowseController::class, 'index']); |
99 | 99 | Route::get('{parentCategory}/{id?}', [BrowseController::class, 'show'])->middleware('clearance'); |
100 | 100 | }); |
101 | 101 | |
102 | - Route::prefix('cart')->group(function () { |
|
102 | + Route::prefix('cart')->group(function() { |
|
103 | 103 | Route::get('index', [CartController::class, 'index']); |
104 | 104 | Route::post('index', [CartController::class, 'index']); |
105 | 105 | Route::get('add', [CartController::class, 'store']); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | |
133 | 133 | Route::post('failed', [FailedReleasesController::class, 'failed'])->name('failed'); |
134 | 134 | |
135 | - Route::middleware('clearance')->group(function () { |
|
135 | + Route::middleware('clearance')->group(function() { |
|
136 | 136 | Route::get('Games', [GamesController::class, 'show'])->name('Games'); |
137 | 137 | Route::post('Games', [GamesController::class, 'show'])->name('Games'); |
138 | 138 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | |
248 | 248 | Route::post('forum-delete/{id}', [ForumController::class, 'destroy'])->middleware('role:Admin'); |
249 | 249 | |
250 | -Route::middleware('role:Admin', '2fa')->prefix('admin')->group(function () { |
|
250 | +Route::middleware('role:Admin', '2fa')->prefix('admin')->group(function() { |
|
251 | 251 | Route::get('index', [AdminPageController::class, 'index']); |
252 | 252 | Route::get('anidb-delete/{id}', [AdminAnidbController::class, 'destroy']); |
253 | 253 | Route::post('anidb-delete/{id}', [AdminAnidbController::class, 'destroy']); |
@@ -366,11 +366,11 @@ discard block |
||
366 | 366 | Route::post('group-list-inactive', [AdminGroupController::class, 'inactive']); |
367 | 367 | }); |
368 | 368 | |
369 | -Route::middleware('role_or_permission:Admin|Moderator|edit release')->prefix('admin')->group(function () { |
|
369 | +Route::middleware('role_or_permission:Admin|Moderator|edit release')->prefix('admin')->group(function() { |
|
370 | 370 | Route::get('release-edit', [AdminReleasesController::class, 'edit']); |
371 | 371 | Route::post('release-edit', [AdminReleasesController::class, 'edit']); |
372 | 372 | }); |
373 | 373 | |
374 | -Route::post('2faVerify', function () { |
|
374 | +Route::post('2faVerify', function() { |
|
375 | 375 | return redirect()->to(URL()->previous()); |
376 | 376 | })->name('2faVerify')->middleware('2fa'); |
@@ -11,6 +11,6 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Broadcast::channel('App.Models.User.{id}', function ($user, $id) { |
|
14 | +Broadcast::channel('App.Models.User.{id}', function($user, $id) { |
|
15 | 15 | return (int) $user->id === (int) $id; |
16 | 16 | }); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | use App\Http\Controllers\RssController; |
13 | 13 | |
14 | -Route::middleware(['auth:api', 'auth:rss'])->group(function () { |
|
14 | +Route::middleware(['auth:api', 'auth:rss'])->group(function() { |
|
15 | 15 | Route::get('mymovies', [RssController::class, 'myMoviesRss']); |
16 | 16 | Route::post('mymovies', [RssController::class, 'myMoviesRss']); |
17 | 17 | Route::get('myshows', [RssController::class, 'myShowsRss']); |