@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | protected static function inArguments(array $arguments, string $shortArg, string $longArg) |
| 92 | 92 | { |
| 93 | - return array_key_exists($shortArg, $arguments) || array_key_exists($longArg, $arguments); |
|
| 93 | + return array_key_exists($shortArg, $arguments) || array_key_exists($longArg, $arguments); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * @param string $filePath The file's full path |
| 102 | 102 | * @param bool $throwError Throw error on true or silent process. Default is true |
| 103 | 103 | * |
| 104 | - * @return object|null |
|
| 104 | + * @return object|null |
|
| 105 | 105 | * @throws \Exception |
| 106 | 106 | * @throws \LogicException |
| 107 | 107 | */ |
@@ -109,10 +109,10 @@ discard block |
||
| 109 | 109 | { |
| 110 | 110 | // check file exists |
| 111 | 111 | if (!file_exists($filePath) || !is_file($filePath)){ |
| 112 | - if ($throwError) { |
|
| 112 | + if ($throwError) { |
|
| 113 | 113 | throw new \Exception('Config file not found'); |
| 114 | - } |
|
| 115 | - return null; |
|
| 114 | + } |
|
| 115 | + return null; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | // get and parse content |
@@ -386,7 +386,7 @@ |
||
| 386 | 386 | */ |
| 387 | 387 | protected static function getNumericParameter(array $arguments, string $shortArg, string $longArg, int $defaultValue) |
| 388 | 388 | { |
| 389 | - if (self::inArguments($arguments,$shortArg, $longArg)){ |
|
| 389 | + if (self::inArguments($arguments,$shortArg, $longArg)){ |
|
| 390 | 390 | $val = self::getArgumentValue($arguments,$shortArg, $longArg); |
| 391 | 391 | |
| 392 | 392 | if (!is_numeric($val)){ |