Passed
Pull Request — master (#1597)
by Darko
06:21
created
app/Http/Controllers/FileListController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
 
18 18
         if ($guid !== null) {
19 19
             $rel = Release::getByGuid($guid);
20
-            if (! $rel) {
20
+            if (!$rel) {
21 21
                 $this->show404();
22 22
             }
23 23
 
24 24
             $nzbpath = $nzb->NZBPath($guid);
25 25
 
26
-            if (! file_exists($nzbpath)) {
26
+            if (!file_exists($nzbpath)) {
27 27
                 $this->show404();
28 28
             }
29 29
 
Please login to merge, or discard this patch.
app/Http/Controllers/ContactUsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $this->setPreferences();
18 18
 
19
-        if (config('captcha.enabled') === true && (! empty(config('captcha.secret')) && ! empty(config('captcha.sitekey')))) {
19
+        if (config('captcha.enabled') === true && (!empty(config('captcha.secret')) && !empty(config('captcha.sitekey')))) {
20 20
             $this->validate($request, [
21 21
                 'g-recaptcha-response' => 'required|captcha',
22 22
             ]);
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                 }
36 36
             }
37 37
 
38
-            if (! preg_match("/\n/i", $request->input('useremail'))) {
38
+            if (!preg_match("/\n/i", $request->input('useremail'))) {
39 39
                 SendContactUsEmail::dispatch($email, $mailTo, $mailBody)->onQueue('contactemail');
40 40
             }
41 41
             $msg = "<h2 style='text-align:center;'>Thank you for getting in touch with ".config('app.name').'.</h2>';
Please login to merge, or discard this patch.
app/Http/Controllers/NfoController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         if ($id) {
20 20
             $rel = Release::getByGuid($id);
21 21
 
22
-            if (! $rel) {
22
+            if (!$rel) {
23 23
                 abort(404, 'Release does not exist');
24 24
             }
25 25
 
Please login to merge, or discard this patch.
app/Http/Controllers/BooksController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $results = $this->paginate($rslt ?? [], $rslt[0]->_totalcount ?? 0, config('nntmux.items_per_cover_page'), $page, $request->url(), $request->query());
54 54
         $maxwords = 50;
55 55
         foreach ($results as $result) {
56
-            if (! empty($result->overview)) {
56
+            if (!empty($result->overview)) {
57 57
                 $words = explode(' ', $result->overview);
58 58
                 if (\count($words) > $maxwords) {
59 59
                     $newwords = \array_slice($words, 0, $maxwords);
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
             $books[] = $result;
64 64
         }
65 65
 
66
-        $author = ($request->has('author') && ! empty($request->input('author'))) ? stripslashes($request->input('author')) : '';
66
+        $author = ($request->has('author') && !empty($request->input('author'))) ? stripslashes($request->input('author')) : '';
67 67
         $this->smarty->assign('author', $author);
68 68
 
69
-        $title = ($request->has('title') && ! empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
69
+        $title = ($request->has('title') && !empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
70 70
         $this->smarty->assign('title', $title);
71 71
 
72 72
         $browseby_link = '&amp;title='.$title.'&amp;author='.$author;
Please login to merge, or discard this patch.
app/Http/Controllers/DetailsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
             $cpapi = $this->userdata->cp_api;
42 42
             $cpurl = $this->userdata->cp_url;
43 43
             $releaseRegex = '';
44
-            if (! empty($data)) {
44
+            if (!empty($data)) {
45 45
                 $releaseRegex = ReleaseRegex::query()->where('releases_id', '=', $data['id'])->first();
46 46
             }
47 47
 
48
-            if (! $data) {
48
+            if (!$data) {
49 49
                 return redirect()->back();
50 50
             }
51 51
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             if ($data['imdbid'] !== '' && $data['imdbid'] !== 0000000) {
72 72
                 $movie = new Movie(['Settings' => $this->settings]);
73 73
                 $mov = $movie->getMovieInfo($data['imdbid']);
74
-                if (! empty($mov['title'])) {
74
+                if (!empty($mov['title'])) {
75 75
                     $mov['title'] = str_replace(['/', '\\'], '', $mov['title']);
76 76
                     $mov['actors'] = makeFieldLinks($mov, 'actors', 'movies');
77 77
                     $mov['genre'] = makeFieldLinks($mov, 'genre', 'movies');
Please login to merge, or discard this patch.
app/Http/Controllers/GamesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $rslt = $games->getGamesRange($page, $catarray, $offset, config('nntmux.items_per_cover_page'), $orderby, '', $this->userdata->categoryexclusions);
42 42
         $results = $this->paginate($rslt ?? [], $rslt[0]->_totalcount ?? 0, config('nntmux.items_per_cover_page'), $page, $request->url(), $request->query());
43 43
 
44
-        $title = ($request->has('title') && ! empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
44
+        $title = ($request->has('title') && !empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
45 45
         $this->smarty->assign('title', $title);
46 46
 
47 47
         $genres = $gen->getGenres(Genres::GAME_TYPE, true);
Please login to merge, or discard this patch.
app/Http/Controllers/MovieController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
             $movies[] = $result;
67 67
         }
68 68
 
69
-        $title = ($request->has('title') && ! empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
69
+        $title = ($request->has('title') && !empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
70 70
         $this->smarty->assign('title', $title);
71 71
 
72
-        $actors = ($request->has('actors') && ! empty($request->input('actors'))) ? stripslashes($request->input('actors')) : '';
72
+        $actors = ($request->has('actors') && !empty($request->input('actors'))) ? stripslashes($request->input('actors')) : '';
73 73
         $this->smarty->assign('actors', $actors);
74 74
 
75
-        $director = ($request->has('director') && ! empty($request->input('director'))) ? stripslashes($request->input('director')) : '';
75
+        $director = ($request->has('director') && !empty($request->input('director'))) ? stripslashes($request->input('director')) : '';
76 76
         $this->smarty->assign('director', $director);
77 77
 
78 78
         $ratings = range(1, 9);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         if ($request->has('id') && ctype_digit($request->input('id'))) {
135 135
             $mov = $movie->getMovieInfo($request->input('id'));
136 136
 
137
-            if (! $mov) {
137
+            if (!$mov) {
138 138
                 return response()->json(['message' => 'There is no trailer for this movie.'], 404);
139 139
             }
140 140
 
Please login to merge, or discard this patch.
app/Http/Controllers/ConsoleController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         $maxwords = 50;
60 60
         foreach ($results as $result) {
61
-            if (! empty($result->review)) {
61
+            if (!empty($result->review)) {
62 62
                 $words = explode(' ', $result->review);
63 63
                 if (\count($words) > $maxwords) {
64 64
                     $newwords = \array_slice($words, 0, $maxwords);
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
             $consoles[] = $result;
69 69
         }
70 70
 
71
-        $platform = ($request->has('platform') && ! empty($request->input('platform'))) ? stripslashes($request->input('platform')) : '';
71
+        $platform = ($request->has('platform') && !empty($request->input('platform'))) ? stripslashes($request->input('platform')) : '';
72 72
         $this->smarty->assign('platform', $platform);
73 73
 
74
-        $title = ($request->has('title') && ! empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
74
+        $title = ($request->has('title') && !empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
75 75
         $this->smarty->assign('title', $title);
76 76
 
77 77
         $genres = $gen->getGenres(Genres::CONSOLE_TYPE, true);
Please login to merge, or discard this patch.
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.