Passed
Push — master ( cdadef...b2deac )
by Darko
07:15
created
Blacklight/Movie.php 1 patch
Spacing   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $this->config->language = $this->lookuplanguage;
133 133
         $this->config->throwHttpExceptions = false;
134 134
         $cacheDir = storage_path('framework/cache/imdb_cache');
135
-        if (! File::isDirectory($cacheDir)) {
135
+        if (!File::isDirectory($cacheDir)) {
136 136
             File::makeDirectory($cacheDir, 0777, false, true);
137 137
         }
138 138
         $this->config->cachedir = $cacheDir;
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 					ORDER BY %s %s %s",
177 177
                 $this->showPasswords,
178 178
                 $this->getBrowseBy(),
179
-                (! empty($catsrch) ? $catsrch : ''),
179
+                (!empty($catsrch) ? $catsrch : ''),
180 180
                 (
181 181
                     $maxAge > 0
182 182
                     ? 'AND r.postdate > NOW() - INTERVAL '.$maxAge.'DAY '
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
             Cache::put(md5($moviesSql.$page), $movies, $expiresAt);
197 197
         }
198 198
         $movieIDs = $releaseIDs = [];
199
-        if (! empty($movies['result'])) {
199
+        if (!empty($movies['result'])) {
200 200
             foreach ($movies['result'] as $movie => $id) {
201 201
                 $movieIDs[] = $id->imdbid;
202 202
                 $releaseIDs[] = $id->grp_release_id;
@@ -235,14 +235,14 @@  discard block
 block discarded – undo
235 235
 			AND r.id IN (%s) %s
236 236
 			GROUP BY m.imdbid
237 237
 			ORDER BY %s %s",
238
-            (\is_array($movieIDs) && ! empty($movieIDs) ? implode(',', $movieIDs) : -1),
239
-            (\is_array($releaseIDs) && ! empty($releaseIDs) ? implode(',', $releaseIDs) : -1),
240
-            (! empty($catsrch) ? $catsrch : ''),
238
+            (\is_array($movieIDs) && !empty($movieIDs) ? implode(',', $movieIDs) : -1),
239
+            (\is_array($releaseIDs) && !empty($releaseIDs) ? implode(',', $releaseIDs) : -1),
240
+            (!empty($catsrch) ? $catsrch : ''),
241 241
             $order[0],
242 242
             $order[1]
243 243
         );
244 244
 
245
-        return Cache::flexible(md5($sql.$page), [config('nntmux.cache_expiry_medium'), config('nntmux.cache_expiry_long')], function () use ($sql, $movies) {
245
+        return Cache::flexible(md5($sql.$page), [config('nntmux.cache_expiry_medium'), config('nntmux.cache_expiry_long')], function() use ($sql, $movies) {
246 246
             $return = Release::fromQuery($sql);
247 247
             if (\count($return) > 0) {
248 248
                 $return[0]->_totalcount = $movies['total'][0]->total ?? 0;
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
         $browseBy = ' ';
283 283
         $browseByArr = ['title', 'director', 'actors', 'genre', 'rating', 'year', 'imdb'];
284 284
         foreach ($browseByArr as $bb) {
285
-            if (request()->has($bb) && ! empty(request()->input($bb))) {
285
+            if (request()->has($bb) && !empty(request()->input($bb))) {
286 286
                 $bbv = stripslashes(request()->input($bb));
287 287
                 if ($bb === 'rating') {
288 288
                     $bbv .= '.';
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 
316 316
         if ($this->traktcheck !== null) {
317 317
             $data = $this->traktTv->client->movieSummary('tt'.$imdbId, 'full');
318
-            if (($data !== false) && ! empty($data['trailer'])) {
318
+            if (($data !== false) && !empty($data['trailer'])) {
319 319
                 return $data['trailer'];
320 320
             }
321 321
         }
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
             return false;
342 342
         }
343 343
 
344
-        if (! empty($data['trailer'])) {
344
+        if (!empty($data['trailer'])) {
345 345
             $data['trailer'] = str_ireplace(
346 346
                 ['watch?v=', 'http://'],
347 347
                 ['embed/', 'https://'],
@@ -375,17 +375,17 @@  discard block
 block discarded – undo
375 375
      */
376 376
     private function checkTraktValue($value)
377 377
     {
378
-        if (\is_array($value) && ! empty($value)) {
378
+        if (\is_array($value) && !empty($value)) {
379 379
             $temp = '';
380 380
             foreach ($value as $val) {
381
-                if (! \is_array($val) && ! \is_object($val)) {
381
+                if (!\is_array($val) && !\is_object($val)) {
382 382
                     $temp .= $val;
383 383
                 }
384 384
             }
385 385
             $value = $temp;
386 386
         }
387 387
 
388
-        return ! empty($value) ? $value : '';
388
+        return !empty($value) ? $value : '';
389 389
     }
390 390
 
391 391
     /**
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      */
407 407
     public function update(array $values): bool
408 408
     {
409
-        if (! \count($values)) {
409
+        if (!\count($values)) {
410 410
             return false;
411 411
         }
412 412
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
         $onDuplicateKey = ['created_at' => now()];
415 415
         $found = 0;
416 416
         foreach ($values as $key => $value) {
417
-            if (! empty($value)) {
417
+            if (!empty($value)) {
418 418
                 $found++;
419 419
                 if (\in_array($key, ['genre', 'language'], false)) {
420 420
                     $value = substr($value, 0, 64);
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
                 $onDuplicateKey += [$key => $value];
424 424
             }
425 425
         }
426
-        if (! $found) {
426
+        if (!$found) {
427 427
             return false;
428 428
         }
429 429
         foreach ($query as $key => $value) {
@@ -440,19 +440,19 @@  discard block
 block discarded – undo
440 440
      */
441 441
     protected function setVariables(string|array $variable1, string|array $variable2, string|array $variable3, string|array $variable4, string|array $variable5)
442 442
     {
443
-        if (! empty($variable1)) {
443
+        if (!empty($variable1)) {
444 444
             return $variable1;
445 445
         }
446
-        if (! empty($variable2)) {
446
+        if (!empty($variable2)) {
447 447
             return $variable2;
448 448
         }
449
-        if (! empty($variable3)) {
449
+        if (!empty($variable3)) {
450 450
             return $variable3;
451 451
         }
452
-        if (! empty($variable4)) {
452
+        if (!empty($variable4)) {
453 453
             return $variable4;
454 454
         }
455
-        if (! empty($variable5)) {
455
+        if (!empty($variable5)) {
456 456
             return $variable5;
457 457
         }
458 458
 
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 
488 488
         $iTunes = $this->fetchItunesMovieProperties($this->currentTitle);
489 489
 
490
-        if (! $imdb && ! $tmdb && ! $trakt && ! $omdb && empty($iTunes)) {
490
+        if (!$imdb && !$tmdb && !$trakt && !$omdb && empty($iTunes)) {
491 491
             return false;
492 492
         }
493 493
 
@@ -500,36 +500,36 @@  discard block
 block discarded – undo
500 500
         $mov['type'] = $mov['director'] = $mov['actors'] = $mov['language'] = '';
501 501
 
502 502
         $mov['imdbid'] = $imdbId;
503
-        $mov['tmdbid'] = (! isset($tmdb['tmdbid']) || $tmdb['tmdbid'] === '') ? 0 : $tmdb['tmdbid'];
504
-        $mov['traktid'] = (! isset($trakt['id']) || $trakt['id'] === '') ? 0 : $trakt['id'];
503
+        $mov['tmdbid'] = (!isset($tmdb['tmdbid']) || $tmdb['tmdbid'] === '') ? 0 : $tmdb['tmdbid'];
504
+        $mov['traktid'] = (!isset($trakt['id']) || $trakt['id'] === '') ? 0 : $trakt['id'];
505 505
 
506 506
         // Prefer Fanart.tv cover over TMDB,TMDB over IMDB,IMDB over OMDB and OMDB over iTunes.
507
-        if (! empty($fanart['cover'])) {
507
+        if (!empty($fanart['cover'])) {
508 508
             $mov['cover'] = $this->releaseImage->saveImage($imdbId.'-cover', $fanart['cover'], $this->imgSavePath);
509
-        } elseif (! empty($tmdb['cover'])) {
509
+        } elseif (!empty($tmdb['cover'])) {
510 510
             $mov['cover'] = $this->releaseImage->saveImage($imdbId.'-cover', $tmdb['cover'], $this->imgSavePath);
511
-        } elseif (! empty($imdb['cover'])) {
511
+        } elseif (!empty($imdb['cover'])) {
512 512
             $mov['cover'] = $this->releaseImage->saveImage($imdbId.'-cover', $imdb['cover'], $this->imgSavePath);
513
-        } elseif (! empty($omdb['cover'])) {
513
+        } elseif (!empty($omdb['cover'])) {
514 514
             $mov['cover'] = $this->releaseImage->saveImage($imdbId.'-cover', $omdb['cover'], $this->imgSavePath);
515
-        } elseif (! empty($iTunes['cover'])) {
515
+        } elseif (!empty($iTunes['cover'])) {
516 516
             $mov['cover'] = $this->releaseImage->saveImage($imdbId.'-cover', $iTunes['cover'], $this->imgSavePath);
517 517
         }
518 518
 
519 519
         // Backdrops.
520
-        if (! empty($fanart['backdrop'])) {
520
+        if (!empty($fanart['backdrop'])) {
521 521
             $mov['backdrop'] = $this->releaseImage->saveImage($imdbId.'-backdrop', $fanart['backdrop'], $this->imgSavePath, 1920, 1024);
522
-        } elseif (! empty($tmdb['backdrop'])) {
522
+        } elseif (!empty($tmdb['backdrop'])) {
523 523
             $mov['backdrop'] = $this->releaseImage->saveImage($imdbId.'-backdrop', $tmdb['backdrop'], $this->imgSavePath, 1920, 1024);
524 524
         }
525 525
 
526 526
         // Banner
527
-        if (! empty($fanart['banner'])) {
527
+        if (!empty($fanart['banner'])) {
528 528
             $mov['banner'] = $this->releaseImage->saveImage($imdbId.'-banner', $fanart['banner'], $this->imgSavePath);
529 529
         }
530 530
 
531 531
         // RottenTomatoes rating from OmdbAPI
532
-        if ($omdb !== false && ! empty($omdb['rtRating'])) {
532
+        if ($omdb !== false && !empty($omdb['rtRating'])) {
533 533
             $mov['rtrating'] = $omdb['rtRating'];
534 534
         }
535 535
 
@@ -540,29 +540,29 @@  discard block
 block discarded – undo
540 540
         $mov['year'] = $this->setVariables($imdb['year'] ?? '', $tmdb['year'] ?? '', $trakt['year'] ?? '', $omdb['year'] ?? '', $iTunes['year'] ?? '');
541 541
         $mov['genre'] = $this->setVariables($imdb['genre'] ?? '', $tmdb['genre'] ?? '', $trakt['genres'] ?? '', $omdb['genre'] ?? '', $iTunes['genre'] ?? '');
542 542
 
543
-        if (! empty($imdb['type'])) {
543
+        if (!empty($imdb['type'])) {
544 544
             $mov['type'] = $imdb['type'];
545 545
         }
546 546
 
547
-        if (! empty($imdb['director'])) {
547
+        if (!empty($imdb['director'])) {
548 548
             $mov['director'] = \is_array($imdb['director']) ? implode(', ', array_unique($imdb['director'])) : $imdb['director'];
549
-        } elseif (! empty($omdb['director'])) {
549
+        } elseif (!empty($omdb['director'])) {
550 550
             $mov['director'] = \is_array($omdb['director']) ? implode(', ', array_unique($omdb['director'])) : $omdb['director'];
551
-        } elseif (! empty($tmdb['director'])) {
551
+        } elseif (!empty($tmdb['director'])) {
552 552
             $mov['director'] = \is_array($tmdb['director']) ? implode(', ', array_unique($tmdb['director'])) : $tmdb['director'];
553 553
         }
554 554
 
555
-        if (! empty($imdb['actors'])) {
555
+        if (!empty($imdb['actors'])) {
556 556
             $mov['actors'] = \is_array($imdb['actors']) ? implode(', ', array_unique($imdb['actors'])) : $imdb['actors'];
557
-        } elseif (! empty($omdb['actors'])) {
557
+        } elseif (!empty($omdb['actors'])) {
558 558
             $mov['actors'] = \is_array($omdb['actors']) ? implode(', ', array_unique($omdb['actors'])) : $omdb['actors'];
559
-        } elseif (! empty($tmdb['actors'])) {
559
+        } elseif (!empty($tmdb['actors'])) {
560 560
             $mov['actors'] = \is_array($tmdb['actors']) ? implode(', ', array_unique($tmdb['actors'])) : $tmdb['actors'];
561 561
         }
562 562
 
563
-        if (! empty($imdb['language'])) {
563
+        if (!empty($imdb['language'])) {
564 564
             $mov['language'] = \is_array($imdb['language']) ? implode(', ', array_unique($imdb['language'])) : $imdb['language'];
565
-        } elseif (! empty($omdb['language']) && ! is_bool($omdb['language'])) {
565
+        } elseif (!empty($omdb['language']) && !is_bool($omdb['language'])) {
566 566
             $mov['language'] = \is_array($omdb['language']) ? implode(', ', array_unique($omdb['language'])) : $omdb['language'];
567 567
         }
568 568
 
@@ -620,20 +620,20 @@  discard block
 block discarded – undo
620 620
         if ($this->fanartapikey !== null) {
621 621
             $art = $this->fanart->getMovieFanArt('tt'.$imdbId);
622 622
 
623
-            if (! empty($art)) {
623
+            if (!empty($art)) {
624 624
                 if (isset($art['status']) && $art['status'] === 'error') {
625 625
                     return false;
626 626
                 }
627 627
                 $ret = [];
628
-                if (! empty($art['moviebackground'][0]['url'])) {
628
+                if (!empty($art['moviebackground'][0]['url'])) {
629 629
                     $ret['backdrop'] = $art['moviebackground'][0]['url'];
630
-                } elseif (! empty($art['moviethumb'][0]['url'])) {
630
+                } elseif (!empty($art['moviethumb'][0]['url'])) {
631 631
                     $ret['backdrop'] = $art['moviethumb'][0]['url'];
632 632
                 }
633
-                if (! empty($art['movieposter'][0]['url'])) {
633
+                if (!empty($art['movieposter'][0]['url'])) {
634 634
                     $ret['cover'] = $art['movieposter'][0]['url'];
635 635
                 }
636
-                if (! empty($art['moviebanner'][0]['url'])) {
636
+                if (!empty($art['moviebanner'][0]['url'])) {
637 637
                     $ret['banner'] = $art['moviebanner'][0]['url'];
638 638
                 }
639 639
 
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
             return false;
671 671
         }
672 672
 
673
-        if (! empty($tmdbLookup)) {
673
+        if (!empty($tmdbLookup)) {
674 674
             if ($this->currentTitle !== '') {
675 675
                 // Check the similarity.
676 676
                 similar_text($this->currentTitle, $tmdbLookup['title'], $percent);
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
                 $ret['rating'] = '';
700 700
             }
701 701
             $actors = Arr::pluck($tmdbLookup['credits']['cast'], 'name');
702
-            if (! empty($actors)) {
702
+            if (!empty($actors)) {
703 703
                 $ret['actors'] = $actors;
704 704
             } else {
705 705
                 $ret['actors'] = '';
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
                 }
711 711
             }
712 712
             $overview = $tmdbLookup['overview'];
713
-            if (! empty($overview)) {
713
+            if (!empty($overview)) {
714 714
                 $ret['plot'] = $overview;
715 715
             } else {
716 716
                 $ret['plot'] = '';
@@ -720,13 +720,13 @@  discard block
 block discarded – undo
720 720
             $ret['tagline'] = $tagline ?? '';
721 721
 
722 722
             $released = $tmdbLookup['release_date'];
723
-            if (! empty($released)) {
723
+            if (!empty($released)) {
724 724
                 $ret['year'] = Carbon::parse($released)->year;
725 725
             } else {
726 726
                 $ret['year'] = '';
727 727
             }
728 728
             $genresa = $tmdbLookup['genres'];
729
-            if (! empty($genresa) && \count($genresa) > 0) {
729
+            if (!empty($genresa) && \count($genresa) > 0) {
730 730
                 $genres = [];
731 731
                 foreach ($genresa as $genre) {
732 732
                     $genres[] = $genre['name'];
@@ -736,13 +736,13 @@  discard block
 block discarded – undo
736 736
                 $ret['genre'] = '';
737 737
             }
738 738
             $posterp = $tmdbLookup['poster_path'];
739
-            if (! empty($posterp)) {
739
+            if (!empty($posterp)) {
740 740
                 $ret['cover'] = 'https://image.tmdb.org/t/p/original'.$posterp;
741 741
             } else {
742 742
                 $ret['cover'] = '';
743 743
             }
744 744
             $backdrop = $tmdbLookup['backdrop_path'];
745
-            if (! empty($backdrop)) {
745
+            if (!empty($backdrop)) {
746 746
                 $ret['backdrop'] = 'https://image.tmdb.org/t/p/original'.$backdrop;
747 747
             } else {
748 748
                 $ret['backdrop'] = '';
@@ -764,9 +764,9 @@  discard block
 block discarded – undo
764 764
     {
765 765
         $realId = (new Title($imdbId, $this->config))->real_id();
766 766
         $result = new Title($realId, $this->config);
767
-        $title = ! empty($result->orig_title()) ? $result->orig_title() : $result->title();
768
-        if (! empty($title)) {
769
-            if (! empty($this->currentTitle)) {
767
+        $title = !empty($result->orig_title()) ? $result->orig_title() : $result->title();
768
+        if (!empty($title)) {
769
+            if (!empty($this->currentTitle)) {
770 770
                 similar_text($this->currentTitle, $title, $percent);
771 771
                 if ($percent >= self::MATCH_PERCENT) {
772 772
                     similar_text($this->currentYear, $result->year(), $percent);
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
                             'title' => $title,
776 776
                             'tagline' => $result->tagline() ?? '',
777 777
                             'plot' => Arr::get($result->plot_split(), '0.plot'),
778
-                            'rating' => ! empty($result->rating()) ? $result->rating() : '',
778
+                            'rating' => !empty($result->rating()) ? $result->rating() : '',
779 779
                             'year' => $result->year() ?? '',
780 780
                             'cover' => $result->photo() ?? '',
781 781
                             'genre' => $result->genre() ?? '',
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
                 'title' => $title,
801 801
                 'tagline' => $result->tagline() ?? '',
802 802
                 'plot' => Arr::get($result->plot_split(), '0.plot'),
803
-                'rating' => ! empty($result->rating()) ? $result->rating() : '',
803
+                'rating' => !empty($result->rating()) ? $result->rating() : '',
804 804
                 'year' => $result->year() ?? '',
805 805
                 'cover' => $result->photo() ?? '',
806 806
                 'genre' => $result->genre() ?? '',
@@ -874,7 +874,7 @@  discard block
 block discarded – undo
874 874
         if ($this->omdbapikey !== null) {
875 875
             $resp = $this->omdbApi->fetch('i', 'tt'.$imdbId);
876 876
 
877
-            if (\is_object($resp) && $resp->message === 'OK' && ! Str::contains($resp->data->Response, 'Error:') && $resp->data->Response !== 'False') {
877
+            if (\is_object($resp) && $resp->message === 'OK' && !Str::contains($resp->data->Response, 'Error:') && $resp->data->Response !== 'False') {
878 878
                 similar_text($this->currentTitle, $resp->data->Title, $percent);
879 879
                 if ($percent >= self::MATCH_PERCENT) {
880 880
                     similar_text($this->currentYear, $resp->data->Year, $percent);
@@ -1040,7 +1040,7 @@  discard block
 block discarded – undo
1040 1040
             // Loop over releases.
1041 1041
             foreach ($res as $arr) {
1042 1042
                 // Try to get a name/year.
1043
-                if (! $this->parseMovieSearchName($arr['searchname'])) {
1043
+                if (!$this->parseMovieSearchName($arr['searchname'])) {
1044 1044
                     //We didn't find a name, so set to all 0's so we don't parse again.
1045 1045
                     Release::query()->where('id', $arr['id'])->update(['imdbid' => 0000000]);
1046 1046
 
@@ -1074,7 +1074,7 @@  discard block
 block discarded – undo
1074 1074
                     try {
1075 1075
                         $imdbSearch = new TitleSearch($this->config);
1076 1076
                         foreach ($imdbSearch->search($this->currentTitle, [TitleSearch::MOVIE]) as $imdbTitle) {
1077
-                            if (! empty($imdbTitle->title())) {
1077
+                            if (!empty($imdbTitle->title())) {
1078 1078
                                 similar_text($imdbTitle->title(), $this->currentTitle, $percent);
1079 1079
                                 if ($percent >= self::MATCH_PERCENT) {
1080 1080
                                     similar_text($this->currentYear, $imdbTitle->year(), $percent);
@@ -1104,10 +1104,10 @@  discard block
 block discarded – undo
1104 1104
                             $buffer = $this->omdbApi->search($omdbTitle, 'movie');
1105 1105
                         }
1106 1106
 
1107
-                        if (\is_object($buffer) && $buffer->message === 'OK' && ! Str::contains($buffer->data->Response, 'Error:') && $buffer->data->Response === 'True') {
1107
+                        if (\is_object($buffer) && $buffer->message === 'OK' && !Str::contains($buffer->data->Response, 'Error:') && $buffer->data->Response === 'True') {
1108 1108
                             $getIMDBid = $buffer->data->Search[0]->imdbID;
1109 1109
 
1110
-                            if (! empty($getIMDBid)) {
1110
+                            if (!empty($getIMDBid)) {
1111 1111
                                 $imdbId = $this->doMovieUpdate($getIMDBid, 'OMDbAPI', $arr['id']);
1112 1112
                                 if ($imdbId !== false) {
1113 1113
                                     $movieUpdated = true;
@@ -1122,7 +1122,7 @@  discard block
 block discarded – undo
1122 1122
                     $data = $this->traktTv->client->movieSummary($movieName, 'full');
1123 1123
                     if ($data !== false) {
1124 1124
                         $this->parseTraktTv($data);
1125
-                        if (! empty($data['ids']['imdb'])) {
1125
+                        if (!empty($data['ids']['imdb'])) {
1126 1126
                             $imdbId = $this->doMovieUpdate($data['ids']['imdb'], 'Trakt', $arr['id']);
1127 1127
                             if ($imdbId !== false) {
1128 1128
                                 $movieUpdated = true;
@@ -1135,13 +1135,13 @@  discard block
 block discarded – undo
1135 1135
                 if ($movieUpdated === false) {
1136 1136
                     try {
1137 1137
                         $data = Tmdb::getSearchApi()->searchMovies($this->currentTitle);
1138
-                        if (($data['total_results'] > 0) && ! empty($data['results'])) {
1138
+                        if (($data['total_results'] > 0) && !empty($data['results'])) {
1139 1139
                             foreach ($data['results'] as $result) {
1140
-                                if (! empty($result['id']) && ! empty($result['release_date'])) {
1140
+                                if (!empty($result['id']) && !empty($result['release_date'])) {
1141 1141
                                     similar_text($this->currentYear, Carbon::parse($result['release_date'])->year, $percent);
1142 1142
                                     if ($percent >= self::YEAR_MATCH_PERCENT) {
1143 1143
                                         $ret = $this->fetchTMDBProperties($result['id'], true);
1144
-                                        if ($ret !== false && ! empty($ret['imdbid'])) {
1144
+                                        if ($ret !== false && !empty($ret['imdbid'])) {
1145 1145
                                             $imdbId = $this->doMovieUpdate('tt'.$ret['imdbid'], 'TMDB', $arr['id']);
1146 1146
                                             if ($imdbId !== false) {
1147 1147
                                                 $movieUpdated = true;
@@ -1242,7 +1242,7 @@  discard block
 block discarded – undo
1242 1242
             // Finally remove multiple spaces and trim leading spaces.
1243 1243
             $name = trim(preg_replace('/\s{2,}/', ' ', $name));
1244 1244
             // Check if the name is long enough and not just numbers.
1245
-            if (\strlen($name) > 4 && ! preg_match('/^\d+$/', $name)) {
1245
+            if (\strlen($name) > 4 && !preg_match('/^\d+$/', $name)) {
1246 1246
                 $this->currentTitle = $name;
1247 1247
                 $this->currentYear = $year;
1248 1248
 
Please login to merge, or discard this patch.