@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | switch ($action) { |
34 | 34 | case 'delete': |
35 | 35 | $movie = UserMovie::getMovie($this->userdata->id, $imdbid); |
36 | - if (! $movie) { |
|
36 | + if (!$movie) { |
|
37 | 37 | return redirect()->to('/mymovies'); |
38 | 38 | } |
39 | 39 | UserMovie::delMovie($this->userdata->id, $imdbid); |
@@ -52,12 +52,12 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | $movie = $mv->getMovieInfo($imdbid); |
55 | - if (! $movie) { |
|
55 | + if (!$movie) { |
|
56 | 56 | return redirect()->to('/mymovies'); |
57 | 57 | } |
58 | 58 | |
59 | 59 | if ($action === 'doadd') { |
60 | - $category = ($request->has('category') && \is_array($request->input('category')) && ! empty($request->input('category'))) ? $request->input('category') : []; |
|
60 | + $category = ($request->has('category') && \is_array($request->input('category')) && !empty($request->input('category'))) ? $request->input('category') : []; |
|
61 | 61 | UserMovie::addMovie($this->userdata->id, $imdbid, $category); |
62 | 62 | if ($request->has('from')) { |
63 | 63 | return redirect()->to($request->input('from')); |
@@ -89,12 +89,12 @@ discard block |
||
89 | 89 | case 'doedit': |
90 | 90 | $movie = UserMovie::getMovie($this->userdata->id, $imdbid); |
91 | 91 | |
92 | - if (! $movie) { |
|
92 | + if (!$movie) { |
|
93 | 93 | return redirect()->to('/mymovies'); |
94 | 94 | } |
95 | 95 | |
96 | 96 | if ($action === 'doedit') { |
97 | - $category = ($request->has('category') && \is_array($request->input('category')) && ! empty($request->input('category'))) ? $request->input('category') : []; |
|
97 | + $category = ($request->has('category') && \is_array($request->input('category')) && !empty($request->input('category'))) ? $request->input('category') : []; |
|
98 | 98 | UserMovie::updateMovie($this->userdata->id, $imdbid, $category); |
99 | 99 | if ($request->has('from')) { |
100 | 100 | return redirect()->to($request->input('from')); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | if (\is_array($showcats) && \count($showcats) > 0) { |
138 | 138 | $catarr = []; |
139 | 139 | foreach ($showcats as $scat) { |
140 | - if (! empty($scat)) { |
|
140 | + if (!empty($scat)) { |
|
141 | 141 | $catarr[] = $categories[$scat]; |
142 | 142 | } |
143 | 143 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | if (\is_array($showcats) && \count($showcats) > 0) { |
190 | 190 | $catarr = []; |
191 | 191 | foreach ($showcats as $scat) { |
192 | - if (! empty($scat)) { |
|
192 | + if (!empty($scat)) { |
|
193 | 193 | $catarr[] = $categories[$scat]; |
194 | 194 | } |
195 | 195 | } |
@@ -17,13 +17,13 @@ |
||
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 |
@@ -16,7 +16,7 @@ discard block |
||
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 |
||
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>'; |
@@ -19,7 +19,7 @@ |
||
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 |
@@ -53,7 +53,7 @@ discard block |
||
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 |
||
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 = '&title='.$title.'&author='.$author; |
@@ -41,11 +41,11 @@ discard block |
||
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 |
||
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'); |
@@ -41,7 +41,7 @@ |
||
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); |
@@ -66,13 +66,13 @@ discard block |
||
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 |
||
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 |
@@ -58,7 +58,7 @@ discard block |
||
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 |
||
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); |