@@ -42,7 +42,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |