@@ -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 |
@@ -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); |
@@ -245,14 +245,14 @@ discard block |
||
245 | 245 | $this->xml->startElement('category'); |
246 | 246 | $this->xml->writeAttribute('id', $this->parameters['id']); |
247 | 247 | $this->xml->writeAttribute('name', html_entity_decode($this->parameters['title'])); |
248 | - if (! empty($this->parameters['description'])) { |
|
248 | + if (!empty($this->parameters['description'])) { |
|
249 | 249 | $this->xml->writeAttribute('description', html_entity_decode($this->parameters['description'])); |
250 | 250 | } |
251 | 251 | foreach ($this->parameters['categories'] as $c) { |
252 | 252 | $this->xml->startElement('subcat'); |
253 | 253 | $this->xml->writeAttribute('id', $c['id']); |
254 | 254 | $this->xml->writeAttribute('name', html_entity_decode($c['title'])); |
255 | - if (! empty($c['description'])) { |
|
255 | + if (!empty($c['description'])) { |
|
256 | 256 | $this->xml->writeAttribute('description', html_entity_decode($c['description'])); |
257 | 257 | } |
258 | 258 | $this->xml->endElement(); |
@@ -353,10 +353,10 @@ discard block |
||
353 | 353 | $this->xml->writeAttribute('apimax', $this->parameters['apilimit']); |
354 | 354 | $this->xml->writeAttribute('grabcurrent', $this->parameters['grabs']); |
355 | 355 | $this->xml->writeAttribute('grabmax', $this->parameters['downloadlimit']); |
356 | - if (! empty($this->parameters['oldestapi'])) { |
|
356 | + if (!empty($this->parameters['oldestapi'])) { |
|
357 | 357 | $this->xml->writeAttribute('apioldesttime', $this->parameters['oldestapi']); |
358 | 358 | } |
359 | - if (! empty($this->parameters['oldestgrab'])) { |
|
359 | + if (!empty($this->parameters['oldestgrab'])) { |
|
360 | 360 | $this->xml->writeAttribute('graboldesttime', $this->parameters['oldestgrab']); |
361 | 361 | } |
362 | 362 | $this->xml->endElement(); |
@@ -367,8 +367,8 @@ discard block |
||
367 | 367 | */ |
368 | 368 | public function includeReleases(): void |
369 | 369 | { |
370 | - if (! empty($this->releases)) { |
|
371 | - if (! $this->releases instanceof Release) { |
|
370 | + if (!empty($this->releases)) { |
|
371 | + if (!$this->releases instanceof Release) { |
|
372 | 372 | foreach ($this->releases as $this->release) { |
373 | 373 | $this->xml->startElement('item'); |
374 | 374 | $this->includeReleaseMain(); |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | } else { |
410 | 410 | $this->writeRssCdata(); |
411 | 411 | } |
412 | - if (! isset($this->parameters['dl']) || (isset($this->parameters['dl']) && (int) $this->parameters['dl'] === 1)) { |
|
412 | + if (!isset($this->parameters['dl']) || (isset($this->parameters['dl']) && (int) $this->parameters['dl'] === 1)) { |
|
413 | 413 | $this->xml->startElement('enclosure'); |
414 | 414 | $this->xml->writeAttribute( |
415 | 415 | 'url', |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | { |
431 | 431 | $this->writeZedAttr('category', $this->release->categories_id); |
432 | 432 | $this->writeZedAttr('size', $this->release->size); |
433 | - if (! empty($this->release->coverurl)) { |
|
433 | + if (!empty($this->release->coverurl)) { |
|
434 | 434 | $this->writeZedAttr( |
435 | 435 | 'coverurl', |
436 | 436 | $this->server['server']['url']."/covers/{$this->release->coverurl}" |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | $this->writeZedAttr('comments', $this->release->comments); |
466 | 466 | $this->writeZedAttr('password', $this->release->passwordstatus); |
467 | 467 | $this->writeZedAttr('usenetdate', Carbon::parse($this->release->postdate)->toRssString()); |
468 | - if (! empty($this->release->group_name)) { |
|
468 | + if (!empty($this->release->group_name)) { |
|
469 | 469 | $this->writeZedAttr('group', $this->release->group_name); |
470 | 470 | } |
471 | 471 | } |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | */ |
477 | 477 | protected function setTvAttr(): void |
478 | 478 | { |
479 | - if (! empty($this->release->title)) { |
|
479 | + if (!empty($this->release->title)) { |
|
480 | 480 | $this->writeZedAttr('title', $this->release->title); |
481 | 481 | } |
482 | 482 | if (isset($this->release->series) && $this->release->series > 0) { |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | if (isset($this->release->episode->episode) && $this->release->episode->episode > 0) { |
486 | 486 | $this->writeZedAttr('episode', $this->release->episode->episode); |
487 | 487 | } |
488 | - if (! empty($this->release->firstaired)) { |
|
488 | + if (!empty($this->release->firstaired)) { |
|
489 | 489 | $this->writeZedAttr('tvairdate', $this->release->firstaired); |
490 | 490 | } |
491 | 491 | if (isset($this->release->tvdb) && $this->release->tvdb > 0) { |
@@ -531,19 +531,19 @@ discard block |
||
531 | 531 | { |
532 | 532 | $this->cdata = "\n\t<div>\n"; |
533 | 533 | switch (1) { |
534 | - case ! empty($this->release->cover): |
|
534 | + case !empty($this->release->cover): |
|
535 | 535 | $dir = 'movies'; |
536 | 536 | $column = 'imdbid'; |
537 | 537 | break; |
538 | - case ! empty($this->release->mu_cover): |
|
538 | + case !empty($this->release->mu_cover): |
|
539 | 539 | $dir = 'music'; |
540 | 540 | $column = 'musicinfo_id'; |
541 | 541 | break; |
542 | - case ! empty($this->release->co_cover): |
|
542 | + case !empty($this->release->co_cover): |
|
543 | 543 | $dir = 'console'; |
544 | 544 | $column = 'consoleinfo_id'; |
545 | 545 | break; |
546 | - case ! empty($this->release->bo_cover): |
|
546 | + case !empty($this->release->bo_cover): |
|
547 | 547 | $dir = 'books'; |
548 | 548 | $column = 'bookinfo_id'; |
549 | 549 | break; |
@@ -679,7 +679,7 @@ discard block |
||
679 | 679 | $cData = ''; |
680 | 680 | |
681 | 681 | foreach ($columns as $info) { |
682 | - if (! empty($this->release->$info)) { |
|
682 | + if (!empty($this->release->$info)) { |
|
683 | 683 | if ($info === 'mu_releasedate') { |
684 | 684 | $ucInfo = 'Released'; |
685 | 685 | $rDate = date('Y-m-d', strtotime($this->release->$info)); |
@@ -137,7 +137,7 @@ discard block |
||
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 |
||
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')); |