@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | */ |
| 134 | 134 | public function report(string $ip = '', string $categories = '', string $message = '', bool $returnArray = false) |
| 135 | 135 | { |
| 136 | - // ip must be set |
|
| 136 | + // ip must be set |
|
| 137 | 137 | if (empty($ip)){ |
| 138 | 138 | throw new \InvalidArgumentException('Ip was empty'); |
| 139 | 139 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | // message must be set |
| 147 | - if (empty($message)){ |
|
| 147 | + if (empty($message)){ |
|
| 148 | 148 | throw new \InvalidArgumentException('report message was empty'); |
| 149 | 149 | } |
| 150 | 150 | |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | |
| 286 | 286 | // option |
| 287 | 287 | if ($verbose){ |
| 288 | - $data['verbose'] = true; |
|
| 288 | + $data['verbose'] = true; |
|
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | $response = $this->apiRequest('check', $data, 'GET') ; |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | * @access public |
| 467 | 467 | * @param string $message The original message |
| 468 | 468 | * |
| 469 | - * @return string |
|
| 469 | + * @return string |
|
| 470 | 470 | */ |
| 471 | 471 | protected function cleanMessage(string $message) |
| 472 | 472 | { |
@@ -491,10 +491,10 @@ discard block |
||
| 491 | 491 | * |
| 492 | 492 | * @access public |
| 493 | 493 | * @static |
| 494 | - * @param string $filePath The file's full path |
|
| 495 | - * @param bool $throwError Throw error on true or silent process. Default is true |
|
| 494 | + * @param string $filePath The file's full path |
|
| 495 | + * @param bool $throwError Throw error on true or silent process. Default is true |
|
| 496 | 496 | * |
| 497 | - * @return object|null |
|
| 497 | + * @return object|null |
|
| 498 | 498 | * @throws \Exception |
| 499 | 499 | * @throws \LogicException |
| 500 | 500 | */ |
@@ -502,10 +502,10 @@ discard block |
||
| 502 | 502 | { |
| 503 | 503 | // check file exists |
| 504 | 504 | if (!file_exists($filePath) || !is_file($filePath)){ |
| 505 | - if ($throwError) { |
|
| 505 | + if ($throwError) { |
|
| 506 | 506 | throw new \Exception('Config file not found'); |
| 507 | - } |
|
| 508 | - return null; |
|
| 507 | + } |
|
| 508 | + return null; |
|
| 509 | 509 | } |
| 510 | 510 | |
| 511 | 511 | // get and parse content |