@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | // Open proxy, open relay, or Tor exit node. |
71 | 71 | ['openproxy' , '9', 'Open Proxy', true], |
72 | 72 | |
73 | - // Comment/forum spam, HTTP referer spam, or other CMS spam. |
|
74 | - ['webspam' , '10', 'Web Spam', true], |
|
73 | + // Comment/forum spam, HTTP referer spam, or other CMS spam. |
|
74 | + ['webspam' , '10', 'Web Spam', true], |
|
75 | 75 | |
76 | 76 | // Spam email content, infected attachments, and phishing emails. Note: Limit comments to only relevent |
77 | 77 | // information (instead of log dumps) and be sure to remove PII if you want to remain anonymous. |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | if ($cat[0] === $categoryName) { |
148 | 148 | return $cat; |
149 | 149 | } |
150 | - } |
|
150 | + } |
|
151 | 151 | |
152 | 152 | // not found |
153 | 153 | return false; |
@@ -164,9 +164,9 @@ discard block |
||
164 | 164 | public function getCategoryNameById(string $categoryId) |
165 | 165 | { |
166 | 166 | foreach ($this->aipdbApiCategories as $cat){ |
167 | - if ($cat[1] === $categoryId) { |
|
168 | - return $cat; |
|
169 | - } |
|
167 | + if ($cat[1] === $categoryId) { |
|
168 | + return $cat; |
|
169 | + } |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | // not found |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | return $i; |
191 | 191 | } |
192 | 192 | $i++; |
193 | - } |
|
193 | + } |
|
194 | 194 | |
195 | 195 | // not found |
196 | 196 | return false; |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | */ |
146 | 146 | public function report(string $ip = '', string $categories = '', string $message = '', bool $returnArray = false) |
147 | 147 | { |
148 | - // ip must be set |
|
148 | + // ip must be set |
|
149 | 149 | if (empty($ip)){ |
150 | 150 | throw new \InvalidArgumentException('Ip was empty'); |
151 | 151 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | // message must be set |
159 | - if (empty($message)){ |
|
159 | + if (empty($message)){ |
|
160 | 160 | throw new \InvalidArgumentException('report message was empty'); |
161 | 161 | } |
162 | 162 | |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | |
276 | 276 | // option |
277 | 277 | if ($verbose){ |
278 | - $data['verbose'] = true; |
|
278 | + $data['verbose'] = true; |
|
279 | 279 | } |
280 | 280 | |
281 | 281 | $response = $this->apiRequest('check', $data, 'GET') ; |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | return json_decode($response, $returnArray); |
284 | 284 | } |
285 | 285 | |
286 | - /** |
|
286 | + /** |
|
287 | 287 | * Perform a 'clear-address' api request |
288 | 288 | * |
289 | 289 | * Sample response: |
@@ -457,14 +457,14 @@ discard block |
||
457 | 457 | 'Key: ' . $this->aipdbApiKey, |
458 | 458 | ]); |
459 | 459 | |
460 | - // execute curl call |
|
461 | - $result = curl_exec($ch); |
|
460 | + // execute curl call |
|
461 | + $result = curl_exec($ch); |
|
462 | 462 | |
463 | - // close connection |
|
464 | - curl_close($ch); |
|
463 | + // close connection |
|
464 | + curl_close($ch); |
|
465 | 465 | |
466 | - // return response as is (JSON or plain text) |
|
467 | - return $result; |
|
466 | + // return response as is (JSON or plain text) |
|
467 | + return $result; |
|
468 | 468 | } |
469 | 469 | |
470 | 470 | /** |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | * @access public |
476 | 476 | * @param string $message The original message |
477 | 477 | * |
478 | - * @return string |
|
478 | + * @return string |
|
479 | 479 | */ |
480 | 480 | protected function cleanMessage(string $message) |
481 | 481 | { |
@@ -500,10 +500,10 @@ discard block |
||
500 | 500 | * |
501 | 501 | * @access public |
502 | 502 | * @static |
503 | - * @param string $filePath The file's full path |
|
504 | - * @param bool $throwError Throw error on true or silent process. Default is true |
|
503 | + * @param string $filePath The file's full path |
|
504 | + * @param bool $throwError Throw error on true or silent process. Default is true |
|
505 | 505 | * |
506 | - * @return object|null |
|
506 | + * @return object|null |
|
507 | 507 | * @throws \Exception |
508 | 508 | * @throws \LogicException |
509 | 509 | */ |
@@ -511,10 +511,10 @@ discard block |
||
511 | 511 | { |
512 | 512 | // check file exists |
513 | 513 | if (!file_exists($filePath) || !is_file($filePath)){ |
514 | - if ($throwError) { |
|
514 | + if ($throwError) { |
|
515 | 515 | throw new \Exception('Config file not found'); |
516 | - } |
|
517 | - return null; |
|
516 | + } |
|
517 | + return null; |
|
518 | 518 | } |
519 | 519 | |
520 | 520 | // get and parse content |