@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public static function create(RequestException $e) { |
| 31 | 31 | |
| 32 | - if($response = $e->getResponse()) { |
|
| 32 | + if ($response = $e->getResponse()) { |
|
| 33 | 33 | |
| 34 | 34 | switch ($response->getStatusCode()) { |
| 35 | 35 | case 400: |
@@ -45,9 +45,9 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public function filter(string $query) |
| 47 | 47 | { |
| 48 | - $end = '/search'.$this->endpoint(); |
|
| 48 | + $end = '/search' . $this->endpoint(); |
|
| 49 | 49 | $query = [ |
| 50 | - 'query' => '"'.$query.'"', |
|
| 50 | + 'query' => '"' . $query . '"', |
|
| 51 | 51 | ]; |
| 52 | 52 | return $this->api()->request('GET', $end, null, $query); |
| 53 | 53 | } |