|
@@ -159,10 +159,10 @@ discard block |
|
|
block discarded – undo |
|
159
|
159
|
return $this->sendResults([], []); |
|
160
|
160
|
} |
|
161
|
161
|
|
|
162
|
|
- $images = $this->prepareImageResults($result); |
|
|
162
|
+ $images = $this->prepareImageResults($result); |
|
163
|
163
|
$result['pagination']['limit'] = $this->config['limit']; |
|
164
|
164
|
|
|
165
|
|
- return $this->sendResults($images,$result); |
|
|
165
|
+ return $this->sendResults($images, $result); |
|
166
|
166
|
} |
|
167
|
167
|
|
|
168
|
168
|
/** |
|
@@ -195,11 +195,11 @@ discard block |
|
|
block discarded – undo |
|
195
|
195
|
* |
|
196
|
196
|
* @return array The response from the API as an associative array, or an empty array if there was an error. |
|
197
|
197
|
*/ |
|
198
|
|
- public function request(string $path, array $params = [], bool|null &$error = null): array |
|
|
198
|
+ public function request(string $path, array $params = [], bool | null & $error = null): array |
|
199
|
199
|
{ |
|
200
|
200
|
$result = []; |
|
201
|
201
|
$params = ['api_key' => $this->apiKey] + $params; |
|
202
|
|
- $path .= '?' . http_build_query($params, '','&'); |
|
|
202
|
+ $path .= '?' . http_build_query($params, '', '&'); |
|
203
|
203
|
|
|
204
|
204
|
require_once(SUBSDIR . '/Package.subs.php'); |
|
205
|
205
|
$body = fetch_web_data($this->baseApiUrl . $path); |
Please login to merge, or discard this patch.