@@ -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: |
@@ -152,9 +152,9 @@ |
||
152 | 152 | */ |
153 | 153 | public function search(string $filtersQuery) |
154 | 154 | { |
155 | - $end = '/search'.$this->endpoint(); |
|
155 | + $end = '/search' . $this->endpoint(); |
|
156 | 156 | $query = [ |
157 | - 'query' => '"'.$filtersQuery.'"', |
|
157 | + 'query' => '"' . $filtersQuery . '"', |
|
158 | 158 | ]; |
159 | 159 | return $this->api()->request('GET', $end, null, $query); |
160 | 160 | } |
@@ -228,13 +228,13 @@ |
||
228 | 228 | } |
229 | 229 | |
230 | 230 | $multiparts = []; |
231 | - foreach($attachments as $attachment) { |
|
231 | + foreach ($attachments as $attachment) { |
|
232 | 232 | $multiparts[] = [ |
233 | 233 | 'name' => 'attachments[]', |
234 | 234 | 'contents' => $attachment, // $attachment is a resource from fopen('/path/to/file', 'r') |
235 | 235 | ]; |
236 | 236 | } |
237 | - foreach($data as $key => $value) { |
|
237 | + foreach ($data as $key => $value) { |
|
238 | 238 | $multiparts[] = [ |
239 | 239 | 'name' => $key, |
240 | 240 | 'contents' => $value, |