Passed
Push — master ( fb8eec...43e973 )
by Darko
03:57
created
misc/update/multiprocessing/fixrelnames.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
routes/console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
routes/channels.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
routes/rss.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
routes/api.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,17 +15,17 @@  discard block
 block discarded – undo
15 15
 use App\Http\Controllers\Api\ApiInformController;
16 16
 use App\Http\Controllers\Api\ApiV2Controller;
17 17
 
18
-Route::prefix('v1')->group(function () {
18
+Route::prefix('v1')->group(function() {
19 19
     Route::get('api', [ApiController::class, 'api']);
20 20
     Route::post('api', [ApiController::class, 'api']);
21 21
 });
22 22
 
23
-Route::prefix('v2')->group(function () {
23
+Route::prefix('v2')->group(function() {
24 24
     Route::get('capabilities', [ApiV2Controller::class, 'capabilities']);
25 25
     Route::post('capabilities', [ApiV2Controller::class, 'capabilities']);
26 26
 });
27 27
 
28
-Route::prefix('v2')->middleware('auth:api', 'throttle:rate_limit,1')->group(function () {
28
+Route::prefix('v2')->middleware('auth:api', 'throttle:rate_limit,1')->group(function() {
29 29
     Route::get('movies', [ApiV2Controller::class, 'movie']);
30 30
     Route::post('movies', [ApiV2Controller::class, 'movie']);
31 31
     Route::get('search', [ApiV2Controller::class, 'apiSearch']);
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
     Route::post('details', [ApiV2Controller::class, 'details']);
39 39
 });
40 40
 
41
-Route::prefix('inform')->middleware('auth:api')->group(function () {
41
+Route::prefix('inform')->middleware('auth:api')->group(function() {
42 42
     Route::get('release', [ApiInformController::class, 'release']);
43 43
     Route::post('release', [ApiInformController::class, 'release']);
44 44
 });
45 45
 
46
-Route::fallback(function () {
46
+Route::fallback(function() {
47 47
     return response()->json(['message' => 'Not Found!'], 404);
48 48
 });
Please login to merge, or discard this patch.
app/Models/UserMovie.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                 [
50 50
                     'users_id' => $uid,
51 51
                     'imdbid' => $imdbid,
52
-                    'categories' => ! empty($catID) ? implode('|', $catID) : 'NULL',
52
+                    'categories' => !empty($catID) ? implode('|', $catID) : 'NULL',
53 53
                     'created_at' => now(),
54 54
                 ]
55 55
             );
@@ -91,6 +91,6 @@  discard block
 block discarded – undo
91 91
     {
92 92
         self::query()
93 93
             ->where(['users_id' => $uid, 'imdbid' => $imdbid])
94
-            ->update(['categories' => ! empty($catID) ? implode('|', $catID) : 'NULL']);
94
+            ->update(['categories' => !empty($catID) ? implode('|', $catID) : 'NULL']);
95 95
     }
96 96
 }
Please login to merge, or discard this patch.
app/Models/UserRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public static function delApiRequests($userID): void
61 61
     {
62
-        DB::transaction(function () use ($userID) {
62
+        DB::transaction(function() use ($userID) {
63 63
             self::query()->where('users_id', $userID)->delete();
64 64
         }, 3);
65 65
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         self::clearApiRequests($userID);
78 78
         $requests = self::query()->where('users_id', $userID)->count('id');
79 79
 
80
-        return ! $requests ? 0 : $requests;
80
+        return !$requests ? 0 : $requests;
81 81
     }
82 82
 
83 83
     /**
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public static function clearApiRequests($userID): void
106 106
     {
107
-        DB::transaction(function () use ($userID) {
107
+        DB::transaction(function() use ($userID) {
108 108
             if ($userID === false) {
109 109
                 self::query()->where('timestamp', '<', now()->subDay())->delete();
110 110
             } else {
Please login to merge, or discard this patch.
app/Models/DnzbFailure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     public static function getFailedCount($relId)
69 69
     {
70 70
         $result = self::query()->where('release_id', $relId)->value('failed');
71
-        if (! empty($result)) {
71
+        if (!empty($result)) {
72 72
             return $result;
73 73
         }
74 74
 
Please login to merge, or discard this patch.