Passed
Push — master ( b724fa...c4411f )
by Darko
07:46
created
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.
app/Models/Video.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
             ->select(['videos.*', 'tve.firstaired as prevdate', 'tve.title as previnfo', 'tvi.publisher', 'us.id as userseriesid'])
137 137
             ->join('tv_info as tvi', 'videos.id', '=', 'tvi.videos_id')
138 138
             ->join('tv_episodes as tve', 'videos.id', '=', 'tve.videos_id')
139
-            ->leftJoin('user_series as us', function ($join) use ($uid) {
139
+            ->leftJoin('user_series as us', function($join) use ($uid) {
140 140
                 $join->on('videos.id', '=', 'us.videos_id')->where('us.users_id', '=', $uid);
141 141
             })
142 142
             ->whereBetween('r.categories_id', [Category::TV_ROOT, Category::TV_OTHER])
Please login to merge, or discard this patch.
app/Models/UserSerie.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                 [
60 60
                     'users_id' => $userId,
61 61
                     'videos_id' => $videoId,
62
-                    'categories' => ! empty($catID) ? implode('|', $catID) : 'NULL',
62
+                    'categories' => !empty($catID) ? implode('|', $catID) : 'NULL',
63 63
                     'created_at' => now(),
64 64
                     'updated_at' => now(),
65 65
                 ]
@@ -127,6 +127,6 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public static function updateShow($users_id, $videos_id, array $catID = []): void
129 129
     {
130
-        self::query()->where(compact('users_id', 'videos_id'))->update(['categories' => ! empty($catID) ? implode('|', $catID) : 'NULL']);
130
+        self::query()->where(compact('users_id', 'videos_id'))->update(['categories' => !empty($catID) ? implode('|', $catID) : 'NULL']);
131 131
     }
132 132
 }
Please login to merge, or discard this patch.
app/Models/UsersRelease.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
      */
83 83
     public static function delCartByGuid($guids, $userID)
84 84
     {
85
-        if (! \is_array($guids)) {
85
+        if (!\is_array($guids)) {
86 86
             return false;
87 87
         }
88 88
 
Please login to merge, or discard this patch.
app/Models/Category.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -486,15 +486,15 @@  discard block
 block discarded – undo
486 486
     public static function getForMenu(array $excludedCats = []): array
487 487
     {
488 488
         $categoriesResult = [];
489
-        $categoriesArray = RootCategory::query()->with(['categories' => function ($query) use ($excludedCats) {
490
-            if (! empty($excludedCats)) {
489
+        $categoriesArray = RootCategory::query()->with(['categories' => function($query) use ($excludedCats) {
490
+            if (!empty($excludedCats)) {
491 491
                 $query->whereNotIn('id', $excludedCats);
492 492
             }
493 493
             $query->select(['id', 'title', 'root_categories_id', 'description']);
494 494
         }])->select(['id', 'title'])->get()->toArray();
495 495
 
496 496
         foreach ($categoriesArray as $category) {
497
-            if (! empty($category['categories'])) {
497
+            if (!empty($category['categories'])) {
498 498
                 $categoriesResult[] = $category;
499 499
             }
500 500
         }
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
             $sql->where('status', '=', self::STATUS_ACTIVE);
553 553
         }
554 554
 
555
-        if (! empty($excludedCats)) {
555
+        if (!empty($excludedCats)) {
556 556
             $sql->whereNotIn('id', $excludedCats);
557 557
         }
558 558
 
Please login to merge, or discard this patch.
app/Observers/UserServiceObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                 'rate_limit' => $rateLimit,
33 33
             ]
34 34
         );
35
-        if (! empty(config('mail.from.address') && File::isFile(base_path().'/_install/install.lock'))) {
35
+        if (!empty(config('mail.from.address') && File::isFile(base_path().'/_install/install.lock'))) {
36 36
             SendNewRegisteredAccountMail::dispatch($user)->onQueue('newreg');
37 37
             SendWelcomeEmail::dispatch($user)->onQueue('welcomeemails');
38 38
             UserVerification::generate($user);
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function register(): void
32 32
     {
33
-        $this->reportable(function (Throwable $e) {
33
+        $this->reportable(function(Throwable $e) {
34 34
             if (app()->bound('sentry')) {
35 35
                 app('sentry')->captureException($e);
36 36
             }
Please login to merge, or discard this patch.