Passed
Push — master ( f9d86d...09d1e9 )
by Darko
10:04
created
app/Console/Commands/FetchMovieByImdb.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $normalized = preg_replace('/^tt/i', '', $normalized); // remove leading tt if present
27 27
         $imdbId = preg_replace('/\D/', '', $normalized); // keep digits only
28 28
 
29
-        if ($imdbId === '' || ! ctype_digit($imdbId) || strlen($imdbId) < 5) {
29
+        if ($imdbId === '' || !ctype_digit($imdbId) || strlen($imdbId) < 5) {
30 30
             $this->error('Invalid IMDb id provided: '.$raw.' (parsed: '.$imdbId.')');
31 31
 
32 32
             return self::FAILURE;
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         $this->info('Force fetching movie data for IMDb id: tt'.$imdbId.' ...');
38 38
         $ok = $movie->updateMovieInfo($imdbId);
39
-        if (! $ok) {
39
+        if (!$ok) {
40 40
             $this->error('Failed to fetch/update movie data for tt'.$imdbId.'.');
41 41
 
42 42
             return self::FAILURE;
Please login to merge, or discard this patch.