Passed
Push — master ( 09d1e9...66abdb )
by Darko
09:57
created
app/Services/ImdbScraper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             $res = $this->client->get($url);
43 43
             $html = (string) $res->getBody();
44 44
             $dom = HtmlDomParser::str_get_html($html);
45
-            if (! $dom) {
45
+            if (!$dom) {
46 46
                 Cache::put($cacheKey, false, now()->addHours(6));
47 47
 
48 48
                 return false;
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             // Plot
75 75
             $plot = '';
76 76
             $plotNode = $dom->findOne("span[data-testid='plot-l']");
77
-            if (! $plotNode) {
77
+            if (!$plotNode) {
78 78
                 $plotNode = $dom->findOne("span[data-testid='plot-xl']");
79 79
             }
80 80
             if ($plotNode) {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             $json = json_decode((string) $res->getBody(), true);
195 195
             $results = [];
196 196
             foreach (($json['d'] ?? []) as $row) {
197
-                if (! isset($row['id']) || ! str_starts_with($row['id'], 'tt')) {
197
+                if (!isset($row['id']) || !str_starts_with($row['id'], 'tt')) {
198 198
                     continue;
199 199
                 }
200 200
                 $id = substr($row['id'], 2);
Please login to merge, or discard this patch.