@@ -193,10 +193,10 @@ discard block |
||
193 | 193 | * |
194 | 194 | * @access public |
195 | 195 | * @static |
196 | - * @param string $filePath The file's full path |
|
197 | - * @param bool $throwError Throw error on true or silent process. Default is true |
|
196 | + * @param string $filePath The file's full path |
|
197 | + * @param bool $throwError Throw error on true or silent process. Default is true |
|
198 | 198 | * |
199 | - * @return object|null |
|
199 | + * @return object|null |
|
200 | 200 | * @throws \Exception |
201 | 201 | * @throws \LogicException |
202 | 202 | */ |
@@ -204,10 +204,10 @@ discard block |
||
204 | 204 | { |
205 | 205 | // check file exists |
206 | 206 | if (!file_exists($filePath) || !is_file($filePath)){ |
207 | - if ($throwError) { |
|
207 | + if ($throwError) { |
|
208 | 208 | throw new \Exception('Config file not found'); |
209 | - } |
|
210 | - return null; |
|
209 | + } |
|
210 | + return null; |
|
211 | 211 | } |
212 | 212 | |
213 | 213 | // get and parse content |
@@ -277,38 +277,38 @@ discard block |
||
277 | 277 | { |
278 | 278 | Console::log(' ' . Console::text('SYNOPSIS:', 'white', 'underline')); |
279 | 279 | Console::log(' ' . Console::text(' abuseipdb -C ') . |
280 | - Console::text('ip', 'yellow') . |
|
281 | - Console::text(' [-d ') . |
|
282 | - Console::text('days', 'yellow') . |
|
283 | - Console::text('] [-v] [-l ') . |
|
284 | - Console::text('limit', 'yellow') . |
|
285 | - Console::text(']')); |
|
280 | + Console::text('ip', 'yellow') . |
|
281 | + Console::text(' [-d ') . |
|
282 | + Console::text('days', 'yellow') . |
|
283 | + Console::text('] [-v] [-l ') . |
|
284 | + Console::text('limit', 'yellow') . |
|
285 | + Console::text(']')); |
|
286 | 286 | |
287 | 287 | Console::log(' ' . Console::text(' abuseipdb -K ') . |
288 | - Console::text('network', 'yellow') . |
|
289 | - Console::text(' [-d ') . |
|
290 | - Console::text('days', 'yellow') . |
|
291 | - Console::text(']')); |
|
288 | + Console::text('network', 'yellow') . |
|
289 | + Console::text(' [-d ') . |
|
290 | + Console::text('days', 'yellow') . |
|
291 | + Console::text(']')); |
|
292 | 292 | |
293 | 293 | Console::log(' ' . Console::text(' abuseipdb -R ' . |
294 | - Console::text('ip', 'yellow') . ' -c ' . |
|
295 | - Console::text('categories', 'yellow') . ' -m ' . |
|
296 | - Console::text('message', 'yellow'))); |
|
294 | + Console::text('ip', 'yellow') . ' -c ' . |
|
295 | + Console::text('categories', 'yellow') . ' -m ' . |
|
296 | + Console::text('message', 'yellow'))); |
|
297 | 297 | |
298 | 298 | Console::log(' ' . Console::text(' abuseipdb -V ' . |
299 | - Console::text('path', 'yellow'))); |
|
299 | + Console::text('path', 'yellow'))); |
|
300 | 300 | |
301 | 301 | Console::log(' ' . Console::text(' abuseipdb -E ' . |
302 | - Console::text('ip', 'yellow'))); |
|
302 | + Console::text('ip', 'yellow'))); |
|
303 | 303 | |
304 | 304 | Console::log(' ' . Console::text(' abuseipdb -B ') . |
305 | - Console::text('[-l ') . |
|
306 | - Console::text('limit', 'yellow') . |
|
307 | - Console::text('] [-s ') . |
|
308 | - Console::text('score', 'yellow') . |
|
309 | - Console::text('] [-p ') . |
|
310 | - Console::text('', 'yellow') . |
|
311 | - Console::text(']')); |
|
305 | + Console::text('[-l ') . |
|
306 | + Console::text('limit', 'yellow') . |
|
307 | + Console::text('] [-s ') . |
|
308 | + Console::text('score', 'yellow') . |
|
309 | + Console::text('] [-p ') . |
|
310 | + Console::text('', 'yellow') . |
|
311 | + Console::text(']')); |
|
312 | 312 | |
313 | 313 | Console::log(' ' . Console::text(' abuseipdb -L ')); |
314 | 314 | Console::log(' ' . Console::text(' abuseipdb -G ')); |
@@ -864,7 +864,7 @@ discard block |
||
864 | 864 | |
865 | 865 | $line = Console::text(' →', $defaultColor); |
866 | 866 | $line .= self::printResult(' reported at: ', self::getDate($lastReport->reportedAt), $defaultColor, '', false); |
867 | - // $line .= self::printResult(' by user: ', $lastReport->reporterId, $defaultColor, '', false); |
|
867 | + // $line .= self::printResult(' by user: ', $lastReport->reporterId, $defaultColor, '', false); |
|
868 | 868 | if (isset($lastReport->reporterCountryCode) && isset($lastReport->reporterCountryName)){ |
869 | 869 | $line .= Console::text(' from: ', 'white'); |
870 | 870 | $line .= self::printResult('', $lastReport->reporterCountryCode, $defaultColor, '', false); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | */ |
92 | 92 | protected static function inArguments(array $arguments, string $shortArg, string $longArg) |
93 | 93 | { |
94 | - return array_key_exists($shortArg, $arguments) || array_key_exists($longArg, $arguments); |
|
94 | + return array_key_exists($shortArg, $arguments) || array_key_exists($longArg, $arguments); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |