@@ -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,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); |
@@ -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); |
@@ -59,17 +59,17 @@ |
||
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 |
@@ -76,7 +76,7 @@ |
||
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 | } |
@@ -47,11 +47,11 @@ discard block |
||
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 |
||
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 = ''; |
@@ -20,7 +20,7 @@ discard block |
||
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 |
||
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 |
@@ -54,10 +54,10 @@ |
||
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); |