@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | public function __construct() |
36 | 36 | { |
37 | 37 | // Initialise the list of urls as an empty array. |
38 | - $this->urls = []; |
|
38 | + $this->urls = [ ]; |
|
39 | 39 | |
40 | 40 | // Initialise the list of urls as an empty array. |
41 | - $this->results = []; |
|
41 | + $this->results = [ ]; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | public function isDangerous(string $url): bool |
136 | 136 | { |
137 | 137 | $data = json_decode((string) $this->results); |
138 | - $matches = empty($data->response) ? null : $data->response['matches']; |
|
138 | + $matches = empty($data->response) ? null : $data->response[ 'matches' ]; |
|
139 | 139 | if (empty($matches)) { |
140 | 140 | return false; |
141 | 141 | } |