Passed
Push — master ( 0048d6...5c61f0 )
by Darko
03:08
created
Blacklight/Releases.php 1 patch
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 				GROUP BY r.id
276 276
 				ORDER BY %s %s %s",
277 277
             $this->uSQL($userShows, 'videos_id'),
278
-            (! empty($excludedCats) ? ' AND r.categories_id NOT IN ('.implode(',', $excludedCats).')' : ''),
278
+            (!empty($excludedCats) ? ' AND r.categories_id NOT IN ('.implode(',', $excludedCats).')' : ''),
279 279
             NZB::NZB_ADDED,
280 280
             Category::TV_ROOT,
281 281
             Category::TV_OTHER,
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     {
346 346
         // Delete NZB from disk.
347 347
         $nzbPath = $nzb->NZBPath($identifiers['g']);
348
-        if (! empty($nzbPath)) {
348
+        if (!empty($nzbPath)) {
349 349
             File::delete($nzbPath);
350 350
         }
351 351
 
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
      */
386 386
     public function updateMulti($guids, $category, $grabs, $videoId, $episodeId, $anidbId, $imdbId)
387 387
     {
388
-        if (! \is_array($guids) || \count($guids) < 1) {
388
+        if (!\is_array($guids) || \count($guids) < 1) {
389 389
             return false;
390 390
         }
391 391
 
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
         $sql = '(1=2 ';
410 410
         foreach ($userQuery as $query) {
411 411
             $sql .= sprintf('OR (r.%s = %d', $type, $query->$type);
412
-            if (! empty($query->categories)) {
412
+            if (!empty($query->categories)) {
413 413
                 $catsArr = explode('|', $query->categories);
414 414
                 if (\count($catsArr) > 1) {
415 415
                     $sql .= sprintf(' AND r.categories_id IN (%s)', implode(',', $catsArr));
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
             $orderBy = $this->getBrowseOrder($orderBy);
454 454
         }
455 455
 
456
-        $searchFields = Arr::where($searchArr, static function ($value) {
456
+        $searchFields = Arr::where($searchArr, static function($value) {
457 457
             return $value !== -1;
458 458
         });
459 459
 
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
             $searchResult = $this->elasticSearch->indexSearch($phrases, $limit);
464 464
         } else {
465 465
             $searchResult = $this->manticoreSearch->searchIndexes('releases_rt', '', [], $searchFields);
466
-            if (! empty($searchResult)) {
466
+            if (!empty($searchResult)) {
467 467
                 $searchResult = Arr::wrap(Arr::get($searchResult, 'id'));
468 468
             }
469 469
         }
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
                 $searchResult = $this->elasticSearch->indexSearchApi($searchName, $limit);
555 555
             } else {
556 556
                 $searchResult = $this->manticoreSearch->searchIndexes('releases_rt', $searchName, ['searchname']);
557
-                if (! empty($searchResult)) {
557
+                if (!empty($searchResult)) {
558 558
                     $searchResult = Arr::wrap(Arr::get($searchResult, 'id'));
559 559
                 }
560 560
             }
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
             ((int) $groupName !== -1 ? sprintf(' AND r.groups_id = %d ', UsenetGroup::getIDByName($groupName)) : ''),
571 571
             $catQuery,
572 572
             (\count($excludedCats) > 0 ? ' AND r.categories_id NOT IN ('.implode(',', $excludedCats).')' : ''),
573
-            (! empty($searchResult) ? 'AND r.id IN ('.implode(',', $searchResult).')' : ''),
573
+            (!empty($searchResult) ? 'AND r.id IN ('.implode(',', $searchResult).')' : ''),
574 574
             ($minSize > 0 ? sprintf('AND r.size >= %d', $minSize) : '')
575 575
         );
576 576
         $baseSql = sprintf(
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
         if ($releases !== null) {
605 605
             return $releases;
606 606
         }
607
-        if ($searchName !== -1 && ! empty($searchResult)) {
607
+        if ($searchName !== -1 && !empty($searchResult)) {
608 608
             $releases = self::fromQuery($sql);
609 609
         } elseif ($searchName !== -1 && empty($searchResult)) {
610 610
             $releases = collect();
@@ -659,11 +659,11 @@  discard block
 block discarded – undo
659 659
             $show = self::fromQuery($showQry);
660 660
 
661 661
             if ($show->isNotEmpty()) {
662
-                if ((! empty($episode) && ! empty($series)) && $show[0]->episodes !== '') {
662
+                if ((!empty($episode) && !empty($series)) && $show[0]->episodes !== '') {
663 663
                     $showSql .= ' AND r.tv_episodes_id IN ('.$show[0]->episodes.') AND tve.series = '.$series;
664
-                } elseif (! empty($episode) && $show[0]->episodes !== '') {
664
+                } elseif (!empty($episode) && $show[0]->episodes !== '') {
665 665
                     $showSql = sprintf('AND r.tv_episodes_id IN (%s)', $show[0]->episodes);
666
-                } elseif (! empty($series) && empty($episode)) {
666
+                } elseif (!empty($series) && empty($episode)) {
667 667
                     // If $series is set but episode is not, return Season Packs and Episodes
668 668
                     $showSql .= ' AND r.tv_episodes_id IN ('.$show[0]->episodes.') AND tve.series = '.$series;
669 669
                 }
@@ -677,26 +677,26 @@  discard block
 block discarded – undo
677 677
         }
678 678
 
679 679
         // If $name is set it is a fallback search, add available SxxExx/airdate info to the query
680
-        if (! empty($name) && $showSql === '') {
681
-            if (! empty($series) && (int) $series < 1900) {
680
+        if (!empty($name) && $showSql === '') {
681
+            if (!empty($series) && (int) $series < 1900) {
682 682
                 $name .= sprintf(' S%s', str_pad($series, 2, '0', STR_PAD_LEFT));
683
-                if (! empty($episode) && ! str_contains($episode, '/')) {
683
+                if (!empty($episode) && !str_contains($episode, '/')) {
684 684
                     $name .= sprintf('E%s', str_pad($episode, 2, '0', STR_PAD_LEFT));
685 685
                 }
686 686
                 // If season is not empty but episode is, add a wildcard to the search
687 687
                 if (empty($episode)) {
688 688
                     $name .= '*';
689 689
                 }
690
-            } elseif (! empty($airDate)) {
690
+            } elseif (!empty($airDate)) {
691 691
                 $name .= sprintf(' %s', str_replace(['/', '-', '.', '_'], ' ', $airDate));
692 692
             }
693 693
         }
694
-        if (! empty($name)) {
694
+        if (!empty($name)) {
695 695
             if (config('nntmux.elasticsearch_enabled') === true) {
696 696
                 $searchResult = $this->elasticSearch->indexSearchTMA($name, $limit);
697 697
             } else {
698 698
                 $searchResult = $this->manticoreSearch->searchIndexes('releases_rt', $name, ['searchname']);
699
-                if (! empty($searchResult)) {
699
+                if (!empty($searchResult)) {
700 700
                     $searchResult = Arr::wrap(Arr::get($searchResult, 'id'));
701 701
                 }
702 702
             }
@@ -712,11 +712,11 @@  discard block
 block discarded – undo
712 712
             NZB::NZB_ADDED,
713 713
             $this->showPasswords(),
714 714
             $showSql,
715
-            (! empty($name) && ! empty($searchResult)) ? 'AND r.id IN ('.implode(',', $searchResult).')' : '',
715
+            (!empty($name) && !empty($searchResult)) ? 'AND r.id IN ('.implode(',', $searchResult).')' : '',
716 716
             Category::getCategorySearch($cat, 'tv'),
717 717
             $maxAge > 0 ? sprintf('AND r.postdate > NOW() - INTERVAL %d DAY', $maxAge) : '',
718 718
             $minSize > 0 ? sprintf('AND r.size >= %d', $minSize) : '',
719
-            ! empty($excludedCategories) ? sprintf('AND r.categories_id NOT IN('.implode(',', $excludedCategories).')') : ''
719
+            !empty($excludedCategories) ? sprintf('AND r.categories_id NOT IN('.implode(',', $excludedCategories).')') : ''
720 720
         );
721 721
         $baseSql = sprintf(
722 722
             "SELECT r.searchname, r.guid, r.postdate, r.groups_id, r.categories_id, r.size, r.totalpart, r.fromname, r.passwordstatus, r.grabs, r.comments, r.adddate, r.videos_id, r.tv_episodes_id, r.haspreview, r.jpgstatus,
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
         if ($releases !== null) {
753 753
             return $releases;
754 754
         }
755
-        $releases = ((! empty($name) && ! empty($searchResult)) || empty($name)) ? self::fromQuery($sql) : [];
755
+        $releases = ((!empty($name) && !empty($searchResult)) || empty($name)) ? self::fromQuery($sql) : [];
756 756
         if (count($releases) !== 0 && $releases->isNotEmpty()) {
757 757
             $releases[0]->_totalrows = $this->getPagerCount(
758 758
                 preg_replace('#LEFT(\s+OUTER)?\s+JOIN\s+(?!tv_episodes)\s+.*ON.*=.*\n#i', ' ', $baseSql)
@@ -800,11 +800,11 @@  discard block
 block discarded – undo
800 800
 
801 801
             $show = self::fromQuery($showQry);
802 802
             if ($show->isNotEmpty()) {
803
-                if ((! empty($episode) && ! empty($series)) && $show[0]->episodes !== '') {
803
+                if ((!empty($episode) && !empty($series)) && $show[0]->episodes !== '') {
804 804
                     $showSql .= ' AND r.tv_episodes_id IN ('.$show[0]->episodes.') AND tve.series = '.$series;
805
-                } elseif (! empty($episode) && $show[0]->episodes !== '') {
805
+                } elseif (!empty($episode) && $show[0]->episodes !== '') {
806 806
                     $showSql = sprintf('AND r.tv_episodes_id IN (%s)', $show[0]->episodes);
807
-                } elseif (! empty($series) && empty($episode)) {
807
+                } elseif (!empty($series) && empty($episode)) {
808 808
                     // If $series is set but episode is not, return Season Packs and Episodes
809 809
                     $showSql .= ' AND r.tv_episodes_id IN ('.$show[0]->episodes.') AND tve.series = '.$series;
810 810
                 }
@@ -817,26 +817,26 @@  discard block
 block discarded – undo
817 817
             }
818 818
         }
819 819
         // If $name is set it is a fallback search, add available SxxExx/airdate info to the query
820
-        if (! empty($name) && $showSql === '') {
821
-            if (! empty($series) && (int) $series < 1900) {
820
+        if (!empty($name) && $showSql === '') {
821
+            if (!empty($series) && (int) $series < 1900) {
822 822
                 $name .= sprintf(' S%s', str_pad($series, 2, '0', STR_PAD_LEFT));
823
-                if (! empty($episode) && ! str_contains($episode, '/')) {
823
+                if (!empty($episode) && !str_contains($episode, '/')) {
824 824
                     $name .= sprintf('E%s', str_pad($episode, 2, '0', STR_PAD_LEFT));
825 825
                 }
826 826
                 // If season is not empty but episode is, add a wildcard to the search
827 827
                 if (empty($episode)) {
828 828
                     $name .= '*';
829 829
                 }
830
-            } elseif (! empty($airDate)) {
830
+            } elseif (!empty($airDate)) {
831 831
                 $name .= sprintf(' %s', str_replace(['/', '-', '.', '_'], ' ', $airDate));
832 832
             }
833 833
         }
834
-        if (! empty($name)) {
834
+        if (!empty($name)) {
835 835
             if (config('nntmux.elasticsearch_enabled') === true) {
836 836
                 $searchResult = $this->elasticSearch->indexSearchTMA($name, $limit);
837 837
             } else {
838 838
                 $searchResult = $this->manticoreSearch->searchIndexes('releases_rt', $name, ['searchname']);
839
-                if (! empty($searchResult)) {
839
+                if (!empty($searchResult)) {
840 840
                     $searchResult = Arr::wrap(Arr::get($searchResult, 'id'));
841 841
                 }
842 842
             }
@@ -852,11 +852,11 @@  discard block
 block discarded – undo
852 852
             NZB::NZB_ADDED,
853 853
             $this->showPasswords(),
854 854
             $showSql,
855
-            (! empty($searchResult) ? 'AND r.id IN ('.implode(',', $searchResult).')' : ''),
855
+            (!empty($searchResult) ? 'AND r.id IN ('.implode(',', $searchResult).')' : ''),
856 856
             Category::getCategorySearch($cat, 'tv'),
857 857
             ($maxAge > 0 ? sprintf('AND r.postdate > NOW() - INTERVAL %d DAY', $maxAge) : ''),
858 858
             ($minSize > 0 ? sprintf('AND r.size >= %d', $minSize) : ''),
859
-            ! empty($excludedCategories) ? sprintf('AND r.categories_id NOT IN('.implode(',', $excludedCategories).')') : ''
859
+            !empty($excludedCategories) ? sprintf('AND r.categories_id NOT IN('.implode(',', $excludedCategories).')') : ''
860 860
         );
861 861
         $baseSql = sprintf(
862 862
             "SELECT r.searchname, r.guid, r.postdate, r.groups_id, r.categories_id, r.size, r.totalpart, r.fromname, r.passwordstatus, r.grabs, r.comments, r.adddate, r.tv_episodes_id, r.haspreview, r.jpgstatus,
@@ -906,12 +906,12 @@  discard block
 block discarded – undo
906 906
      */
907 907
     public function animeSearch($aniDbID, int $offset = 0, int $limit = 100, string $name = '', array $cat = [-1], int $maxAge = -1, array $excludedCategories = []): mixed
908 908
     {
909
-        if (! empty($name)) {
909
+        if (!empty($name)) {
910 910
             if (config('nntmux.elasticsearch_enabled') === true) {
911 911
                 $searchResult = $this->elasticSearch->indexSearchTMA($name, $limit);
912 912
             } else {
913 913
                 $searchResult = $this->manticoreSearch->searchIndexes('releases_rt', $name, ['searchname']);
914
-                if (! empty($searchResult)) {
914
+                if (!empty($searchResult)) {
915 915
                     $searchResult = Arr::wrap(Arr::get($searchResult, 'id'));
916 916
                 }
917 917
             }
@@ -928,8 +928,8 @@  discard block
 block discarded – undo
928 928
             $this->showPasswords(),
929 929
             NZB::NZB_ADDED,
930 930
             ($aniDbID > -1 ? sprintf(' AND r.anidbid = %d ', $aniDbID) : ''),
931
-            (! empty($searchResult) ? 'AND r.id IN ('.implode(',', $searchResult).')' : ''),
932
-            ! empty($excludedCategories) ? sprintf('AND r.categories_id NOT IN('.implode(',', $excludedCategories).')') : '',
931
+            (!empty($searchResult) ? 'AND r.id IN ('.implode(',', $searchResult).')' : ''),
932
+            !empty($excludedCategories) ? sprintf('AND r.categories_id NOT IN('.implode(',', $excludedCategories).')') : '',
933 933
             Category::getCategorySearch($cat),
934 934
             ($maxAge > 0 ? sprintf(' AND r.postdate > NOW() - INTERVAL %d DAY ', $maxAge) : '')
935 935
         );
@@ -976,12 +976,12 @@  discard block
 block discarded – undo
976 976
      */
977 977
     public function moviesSearch(int $imDbId = -1, int $tmDbId = -1, int $traktId = -1, int $offset = 0, int $limit = 100, string $name = '', array $cat = [-1], int $maxAge = -1, int $minSize = 0, array $excludedCategories = []): mixed
978 978
     {
979
-        if (! empty($name)) {
979
+        if (!empty($name)) {
980 980
             if (config('nntmux.elasticsearch_enabled') === true) {
981 981
                 $searchResult = $this->elasticSearch->indexSearchTMA($name, $limit);
982 982
             } else {
983 983
                 $searchResult = $this->manticoreSearch->searchIndexes('releases_rt', $name, ['searchname']);
984
-                if (! empty($searchResult)) {
984
+                if (!empty($searchResult)) {
985 985
                     $searchResult = Arr::wrap(Arr::get($searchResult, 'id'));
986 986
                 }
987 987
             }
@@ -998,11 +998,11 @@  discard block
 block discarded – undo
998 998
 			%s %s %s %s %s %s %s',
999 999
             NZB::NZB_ADDED,
1000 1000
             $this->showPasswords(),
1001
-            (! empty($searchResult) ? 'AND r.id IN ('.implode(',', $searchResult).')' : ''),
1001
+            (!empty($searchResult) ? 'AND r.id IN ('.implode(',', $searchResult).')' : ''),
1002 1002
             ($imDbId !== -1 && is_numeric($imDbId)) ? sprintf(' AND m.imdbid = \'%s\' ', $imDbId) : '',
1003 1003
             ($tmDbId !== -1 && is_numeric($tmDbId)) ? sprintf(' AND m.tmdbid = %d ', $tmDbId) : '',
1004 1004
             ($traktId !== -1 && is_numeric($traktId)) ? sprintf(' AND m.traktid = %d ', $traktId) : '',
1005
-            ! empty($excludedCategories) ? sprintf('AND r.categories_id NOT IN('.implode(',', $excludedCategories).')') : '',
1005
+            !empty($excludedCategories) ? sprintf('AND r.categories_id NOT IN('.implode(',', $excludedCategories).')') : '',
1006 1006
             Category::getCategorySearch($cat, 'movies'),
1007 1007
             $maxAge > 0 ? sprintf(' AND r.postdate > NOW() - INTERVAL %d DAY ', $maxAge) : '',
1008 1008
             $minSize > 0 ? sprintf('AND r.size >= %d', $minSize) : ''
@@ -1058,7 +1058,7 @@  discard block
 block discarded – undo
1058 1058
             }
1059 1059
 
1060 1060
             $results = $this->search(['searchname' => getSimilarName($name)], -1, '', '', -1, -1, 0, config('nntmux.items_per_page'), '', -1, $excludedCats, 'basic', [$parentCat]);
1061
-            if (! $results) {
1061
+            if (!$results) {
1062 1062
                 return $ret;
1063 1063
             }
1064 1064
 
Please login to merge, or discard this patch.
app/Http/Controllers/Api/ApiV2Controller.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -245,14 +245,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.