@@ -19,11 +19,13 @@ |
||
19 | 19 | { |
20 | 20 | global $context, $txt; |
21 | 21 | |
22 | - if (empty($context['sub_template'])) { |
|
22 | + if (empty($context['sub_template'])) |
|
23 | + { |
|
23 | 24 | return; |
24 | 25 | } |
25 | 26 | |
26 | - if ($context['sub_template'] !== 'report') { |
|
27 | + if ($context['sub_template'] !== 'report') |
|
28 | + { |
|
27 | 29 | return; |
28 | 30 | } |
29 | 31 |
@@ -159,10 +159,10 @@ discard block |
||
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 | /** |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | { |
203 | 203 | $result = []; |
204 | 204 | $params = ['api_key' => $this->apiKey] + $params; |
205 | - $path .= '?' . http_build_query($params, '','&'); |
|
205 | + $path .= '?' . http_build_query($params, '', '&'); |
|
206 | 206 | |
207 | 207 | require_once(SUBSDIR . '/Package.subs.php'); |
208 | 208 | $body = fetch_web_data($this->baseApiUrl . $path); |
@@ -482,7 +482,7 @@ |
||
482 | 482 | global $context; |
483 | 483 | |
484 | 484 | $total = 0; |
485 | - foreach($context['likes'] as $item) { |
|
485 | + foreach ($context['likes'] as $item) { |
|
486 | 486 | $total += $item['count']; |
487 | 487 | } |
488 | 488 |
@@ -482,7 +482,8 @@ |
||
482 | 482 | global $context; |
483 | 483 | |
484 | 484 | $total = 0; |
485 | - foreach($context['likes'] as $item) { |
|
485 | + foreach($context['likes'] as $item) |
|
486 | + { |
|
486 | 487 | $total += $item['count']; |
487 | 488 | } |
488 | 489 |