@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | |
172 | 172 | $line = Console::text(' →', $defaultColor); |
173 | 173 | $line .= self::printResult(' reported at: ', self::getDate($report->reportedAt), $defaultColor, '', false); |
174 | - // $line .= self::printResult(' by user: ', $report->reporterId, $defaultColor, '', false); |
|
174 | + // $line .= self::printResult(' by user: ', $report->reporterId, $defaultColor, '', false); |
|
175 | 175 | if (isset($report->reporterCountryCode) && isset($report->reporterCountryName)){ |
176 | 176 | $line .= Console::text(' from: ', 'white'); |
177 | 177 | $line .= self::printResult('', $report->reporterCountryCode, $defaultColor, '', false); |
@@ -206,5 +206,5 @@ discard block |
||
206 | 206 | } |
207 | 207 | } |
208 | 208 | return $categories; |
209 | - } |
|
209 | + } |
|
210 | 210 | } |
211 | 211 | \ No newline at end of file |
@@ -171,7 +171,7 @@ |
||
171 | 171 | */ |
172 | 172 | protected static function getNumericParameter(array $arguments, string $shortArg, string $longArg, int $defaultValue): int |
173 | 173 | { |
174 | - if (self::inArguments($arguments,$shortArg, $longArg)){ |
|
174 | + if (self::inArguments($arguments,$shortArg, $longArg)){ |
|
175 | 175 | $val = self::getArgumentValue($arguments,$shortArg, $longArg); |
176 | 176 | |
177 | 177 | if (!is_numeric($val)){ |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | protected static function inArguments(array $arguments, string $shortArg, string $longArg): bool |
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 |
@@ -69,51 +69,51 @@ |
||
69 | 69 | Console::log(); |
70 | 70 | Console::log(' ' . Console::text('SYNOPSIS:', 'white', 'underline')); |
71 | 71 | Console::log(' ' . Console::text(' abuseipdb -C ') . |
72 | - Console::text('IP', 'yellow') . |
|
73 | - Console::text(' [-d ') . |
|
74 | - Console::text('DAYS', 'yellow') . |
|
75 | - Console::text('] [-v] [-l ') . |
|
76 | - Console::text('LIMIT', 'yellow') . |
|
77 | - Console::text('] [-o ') . |
|
78 | - Console::text('FORMAT', 'yellow') . |
|
79 | - Console::text(']')); |
|
72 | + Console::text('IP', 'yellow') . |
|
73 | + Console::text(' [-d ') . |
|
74 | + Console::text('DAYS', 'yellow') . |
|
75 | + Console::text('] [-v] [-l ') . |
|
76 | + Console::text('LIMIT', 'yellow') . |
|
77 | + Console::text('] [-o ') . |
|
78 | + Console::text('FORMAT', 'yellow') . |
|
79 | + Console::text(']')); |
|
80 | 80 | |
81 | 81 | Console::log(' ' . Console::text(' abuseipdb -K ') . |
82 | - Console::text('NETWORK', 'yellow') . |
|
83 | - Console::text(' [-d ') . |
|
84 | - Console::text('DAYS', 'yellow') . |
|
85 | - Console::text('] [-o ') . |
|
86 | - Console::text('FORMAT', 'yellow') . |
|
87 | - Console::text(']')); |
|
82 | + Console::text('NETWORK', 'yellow') . |
|
83 | + Console::text(' [-d ') . |
|
84 | + Console::text('DAYS', 'yellow') . |
|
85 | + Console::text('] [-o ') . |
|
86 | + Console::text('FORMAT', 'yellow') . |
|
87 | + Console::text(']')); |
|
88 | 88 | |
89 | 89 | Console::log(' ' . Console::text(' abuseipdb -R ') . |
90 | - Console::text('IP', 'yellow') . ' -c ' . |
|
91 | - Console::text('CATEGORIES', 'yellow') . ' -m ' . |
|
92 | - Console::text('MESSAGE', 'yellow') . |
|
93 | - Console::text(' [-o ') . |
|
94 | - Console::text('FORMAT', 'yellow') . |
|
95 | - Console::text(']')); |
|
90 | + Console::text('IP', 'yellow') . ' -c ' . |
|
91 | + Console::text('CATEGORIES', 'yellow') . ' -m ' . |
|
92 | + Console::text('MESSAGE', 'yellow') . |
|
93 | + Console::text(' [-o ') . |
|
94 | + Console::text('FORMAT', 'yellow') . |
|
95 | + Console::text(']')); |
|
96 | 96 | |
97 | 97 | Console::log(' ' . Console::text(' abuseipdb -V ') . |
98 | - Console::text('FILE', 'yellow') . |
|
99 | - Console::text(' [-o ') . |
|
100 | - Console::text('FORMAT', 'yellow') . |
|
101 | - Console::text(']')); |
|
98 | + Console::text('FILE', 'yellow') . |
|
99 | + Console::text(' [-o ') . |
|
100 | + Console::text('FORMAT', 'yellow') . |
|
101 | + Console::text(']')); |
|
102 | 102 | |
103 | 103 | Console::log(' ' . Console::text(' abuseipdb -E ') . |
104 | - Console::text('IP', 'yellow'). |
|
105 | - Console::text(' [-o ') . |
|
106 | - Console::text('FORMAT', 'yellow') . |
|
107 | - Console::text(']')); |
|
104 | + Console::text('IP', 'yellow'). |
|
105 | + Console::text(' [-o ') . |
|
106 | + Console::text('FORMAT', 'yellow') . |
|
107 | + Console::text(']')); |
|
108 | 108 | |
109 | 109 | Console::log(' ' . Console::text(' abuseipdb -B ') . |
110 | - Console::text('[-l ') . |
|
111 | - Console::text('LIMIT', 'yellow') . |
|
112 | - Console::text('] [-s ') . |
|
113 | - Console::text('SCORE', 'yellow') . |
|
114 | - Console::text('] [-o ') . |
|
115 | - Console::text('FORMAT', 'yellow') . |
|
116 | - Console::text(']')); |
|
110 | + Console::text('[-l ') . |
|
111 | + Console::text('LIMIT', 'yellow') . |
|
112 | + Console::text('] [-s ') . |
|
113 | + Console::text('SCORE', 'yellow') . |
|
114 | + Console::text('] [-o ') . |
|
115 | + Console::text('FORMAT', 'yellow') . |
|
116 | + Console::text(']')); |
|
117 | 117 | |
118 | 118 | Console::log(' ' . Console::text(' abuseipdb -L | -G | -h | --version')); |
119 | 119 |