Passed
Push — master ( 4c3be3...04f1cf )
by Darko
02:53
created
app/Http/Controllers/CartController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,17 +59,17 @@
 block discarded – undo
59 59
     {
60 60
         $this->setPreferences();
61 61
         $ids = null;
62
-        if (! empty($id) && ! \is_array($id)) {
62
+        if (!empty($id) && !\is_array($id)) {
63 63
             $ids = explode(',', $id);
64 64
         } elseif (\is_array($id)) {
65 65
             $ids = $id;
66 66
         }
67 67
 
68
-        if (! empty($ids) && UsersRelease::delCartByGuid($ids, $this->userdata->id)) {
68
+        if (!empty($ids) && UsersRelease::delCartByGuid($ids, $this->userdata->id)) {
69 69
             return redirect()->to('/cart/index');
70 70
         }
71 71
 
72
-        if (! $id) {
72
+        if (!$id) {
73 73
             return redirect()->to('/cart/index');
74 74
         }
75 75
 
Please login to merge, or discard this patch.
app/Http/Controllers/PasswordSecurityController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 
77 77
     public function disable2fa(Disable2faPasswordSecurityRequest $request): \Illuminate\Routing\Redirector|RedirectResponse|\Illuminate\Contracts\Foundation\Application
78 78
     {
79
-        if (! (Hash::check($request->get('current-password'), $request->user()->password))) {
79
+        if (!(Hash::check($request->get('current-password'), $request->user()->password))) {
80 80
             // The passwords matches
81 81
             return redirect()->back()->with('error', 'Your password does not match with your account password. Please try again.');
82 82
         }
Please login to merge, or discard this patch.
app/Http/Controllers/AnimeController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
             $meta_keywords = 'view,anime,anidb,description,details';
48 48
             $meta_description = 'View '.$aniDbInfo->title.' Anime';
49 49
 
50
-            if (! $this->releases && ! $aniDbInfo) {
50
+            if (!$this->releases && !$aniDbInfo) {
51 51
                 $this->smarty->assign('nodata', 'No releases and AniDB info for this series.');
52
-            } elseif (! $aniDbInfo) {
52
+            } elseif (!$aniDbInfo) {
53 53
                 $this->smarty->assign('nodata', 'No AniDB information for this series.');
54
-            } elseif (! $aniDbReleases) {
54
+            } elseif (!$aniDbReleases) {
55 55
                 $this->smarty->assign('nodata', 'No releases for this series.');
56 56
             } else {
57 57
                 $this->smarty->assign('animeEpisodeTitles', $aniDbReleases);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $this->setPreferences();
88 88
         $letter = ($request->has('id') && preg_match('/^(0\-9|[A-Z])$/i', $request->input('id'))) ? $request->input('id') : '0-9';
89 89
 
90
-        $animeTitle = ($request->has('title') && ! empty($request->input('title'))) ? $request->input('title') : '';
90
+        $animeTitle = ($request->has('title') && !empty($request->input('title'))) ? $request->input('title') : '';
91 91
 
92 92
         if ($animeTitle !== '' && $request->missing('id')) {
93 93
             $letter = '';
Please login to merge, or discard this patch.
app/Http/Controllers/BrowseController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $this->smarty->assign('category', -1);
21 21
 
22 22
         $ordering = $releases->getBrowseOrdering();
23
-        $orderBy = $request->has('ob') && ! empty($request->input('ob')) ? $request->input('ob') : '';
23
+        $orderBy = $request->has('ob') && !empty($request->input('ob')) ? $request->input('ob') : '';
24 24
         $page = $request->has('page') && is_numeric($request->input('page')) ? $request->input('page') : 1;
25 25
         $offset = ($page - 1) * config('nntmux.items_per_page');
26 26
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $this->smarty->assign('category', $category);
84 84
 
85 85
         $ordering = $releases->getBrowseOrdering();
86
-        $orderBy = $request->has('ob') && ! empty($request->input('ob')) ? $request->input('ob') : '';
86
+        $orderBy = $request->has('ob') && !empty($request->input('ob')) ? $request->input('ob') : '';
87 87
         $page = $request->has('page') && is_numeric($request->input('page')) ? $request->input('page') : 1;
88 88
         $offset = ($page - 1) * config('nntmux.items_per_page');
89 89
 
Please login to merge, or discard this patch.
app/Http/Controllers/MusicController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@
 block discarded – undo
54 54
         $rslt = $music->getMusicRange($page, $catarray, $offset, config('nntmux.items_per_cover_page'), $orderby, $this->userdata->categoryexclusions);
55 55
         $results = $this->paginate($rslt ?? [], $rslt[0]->_totalcount ?? 0, config('nntmux.items_per_cover_page'), $page, $request->url(), $request->query());
56 56
 
57
-        $artist = ($request->has('artist') && ! empty($request->input('artist'))) ? stripslashes($request->input('artist')) : '';
57
+        $artist = ($request->has('artist') && !empty($request->input('artist'))) ? stripslashes($request->input('artist')) : '';
58 58
         $this->smarty->assign('artist', $artist);
59 59
 
60
-        $title = ($request->has('title') && ! empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
60
+        $title = ($request->has('title') && !empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
61 61
         $this->smarty->assign('title', $title);
62 62
 
63 63
         $genres = $gen->getGenres(Genres::MUSIC_TYPE, true);
Please login to merge, or discard this patch.
app/Http/Controllers/Api/RSS.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             Category::TV_ROOT,
138 138
             Category::TV_OTHER,
139 139
             $this->releases->showPasswords(),
140
-            ! empty($limit) ? sprintf(' LIMIT %d OFFSET 0', $limit > 100 ? 100 : $limit) : ''
140
+            !empty($limit) ? sprintf(' LIMIT %d OFFSET 0', $limit > 100 ? 100 : $limit) : ''
141 141
         );
142 142
 
143 143
         $expiresAt = now()->addMinutes(config('nntmux.cache_expiry_medium'));
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             Category::MOVIE_ROOT,
190 190
             Category::MOVIE_OTHER,
191 191
             $this->releases->showPasswords(),
192
-            ! empty($limit) ? sprintf(' LIMIT %d OFFSET 0', $limit > 100 ? 100 : $limit) : ''
192
+            !empty($limit) ? sprintf(' LIMIT %d OFFSET 0', $limit > 100 ? 100 : $limit) : ''
193 193
         );
194 194
 
195 195
         $expiresAt = now()->addMinutes(config('nntmux.cache_expiry_medium'));
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminCategoryRegexesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
         $meta_title = $title = 'Category Regex List';
21 21
 
22
-        $group = $request->has('group') && ! empty($request->input('group')) ? $request->input('group') : '';
22
+        $group = $request->has('group') && !empty($request->input('group')) ? $request->input('group') : '';
23 23
         $regex = $regexes->getRegex($group);
24 24
 
25 25
         $this->smarty->assign(
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                     break;
73 73
                 }
74 74
 
75
-                if (! is_numeric($request->input('ordinal')) || $request->input('ordinal') < 0) {
75
+                if (!is_numeric($request->input('ordinal')) || $request->input('ordinal') < 0) {
76 76
                     $this->smarty->assign('error', 'Ordinal must be a number, 0 or higher.');
77 77
                     break;
78 78
                 }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminCollectionRegexesController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
         $meta_title = $title = 'Collections Regex List';
21 21
 
22
-        $group = ($request->has('group') && ! empty($request->input('group')) ? $request->input('group') : '');
22
+        $group = ($request->has('group') && !empty($request->input('group')) ? $request->input('group') : '');
23 23
         $regex = $regexes->getRegex($group);
24 24
         $this->smarty->assign(compact('group', 'regex'));
25 25
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                     $request->merge(['description' => '']);
59 59
                 }
60 60
 
61
-                if (! is_numeric($request->input('ordinal')) || $request->input('ordinal') < 0) {
61
+                if (!is_numeric($request->input('ordinal')) || $request->input('ordinal') < 0) {
62 62
                     $error = 'Ordinal must be a number, 0 or higher.';
63 63
                     break;
64 64
                 }
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
         $this->setAdminPrefs();
105 105
         $meta_title = $title = 'Collections Regex Test';
106 106
 
107
-        $group = trim($request->has('group') && ! empty($request->input('group')) ? $request->input('group') : '');
108
-        $regex = trim($request->has('regex') && ! empty($request->input('regex')) ? $request->input('regex') : '');
107
+        $group = trim($request->has('group') && !empty($request->input('group')) ? $request->input('group') : '');
108
+        $regex = trim($request->has('regex') && !empty($request->input('regex')) ? $request->input('regex') : '');
109 109
         $limit = ($request->has('limit') && is_numeric($request->input('limit')) ? $request->input('limit') : 50);
110 110
         $this->smarty->assign(['group' => $group, 'regex' => $regex, 'limit' => $limit]);
111 111
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminGameController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             $id = $request->input('id');
51 51
             $game = $games->getGamesInfoById($id);
52 52
 
53
-            if (! $game) {
53
+            if (!$game) {
54 54
                 $this->show404();
55 55
             }
56 56
 
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
                     if ($_FILES['cover']['size'] > 0) {
62 62
                         $tmpName = $_FILES['cover']['tmp_name'];
63 63
                         $file_info = getimagesize($tmpName);
64
-                        if (! empty($file_info)) {
64
+                        if (!empty($file_info)) {
65 65
                             move_uploaded_file($_FILES['cover']['tmp_name'], $coverLoc);
66 66
                         }
67 67
                     }
68 68
 
69 69
                     $request->merge(['cover' => file_exists($coverLoc) ? 1 : 0]);
70
-                    $request->merge(['releasedate' => (empty($request->input('releasedate')) || ! strtotime($request->input('releasedate'))) ? $game['releasedate'] : Carbon::parse($request->input('releasedate'))->timestamp]);
70
+                    $request->merge(['releasedate' => (empty($request->input('releasedate')) || !strtotime($request->input('releasedate'))) ? $game['releasedate'] : Carbon::parse($request->input('releasedate'))->timestamp]);
71 71
 
72 72
                     $games->update($id, $request->input('title'), $request->input('asin'), $request->input('url'), $request->input('publisher'), $request->input('releasedate'), $request->input('esrb'), $request->input('cover'), $request->input('trailerurl'), $request->input('genre'));
73 73
 
Please login to merge, or discard this patch.