14
14
* For the full copyright and license information, please view the LICENSE
15
15
* file that was distributed with this source code.
16
16
*
17
- * @version 0.9.10
17
+ * @version 0.9.11
18
18
* @copyright 2020-2021 Kristuff
19
19
*/
20
20
namespace Kristuff \AbuseIPDB ;
@@ -170,7 +170,7 @@ protected static function printHelp(): void
170
170
Console::log (Console::text (' -C, --check ' , 'white ' ) . Console::text ('IP ' , 'yellow ' , 'underline ' ));
171
171
Console::log (' Performs a check request for the given IP address. A valid IPv4 or IPv6 address is required. ' , 'lightgray ' );
172
172
Console::log ();
173
- Console::log (Console::text (' -K, --check-block ' , 'white ' ) . Console::text ('network ' , 'yellow ' , 'underline ' ));
173
+ Console::log (Console::text (' -K, --check-block ' , 'white ' ) . Console::text ('NETWORK ' , 'yellow ' , 'underline ' ));
174
174
Console::log (' Performs a check-block request for the given network. A valid subnet (v4 or v6) denoted with ' , 'lightgray ' );
175
175
Console::log (' CIDR notation is required. ' , 'lightgray ' );
176
176
Console::log ();
@@ -223,7 +223,7 @@ protected static function printHelp(): void
223
223
Console::log (' Prints the current version. If given, all next arguments are ignored. ' , 'lightgray ' );
224
224
Console::log ();
225
225
Console::log (Console::text (' -S, --save-key ' , 'white ' ) . Console::text ('KEY ' , 'yellow ' , 'underline ' ));
226
- Console::log (' Save the given API key in the configuration file. Required writing permissions on the config directory. ' , 'lightgray ' );
226
+ Console::log (' Save the given API key in the configuration file. Requires writing permissions on the config directory. ' , 'lightgray ' );
227
227
Console::log ();
228
228
}
229
229
@@ -471,7 +471,7 @@ protected static function getBlacklist(array $arguments): void
471
471
{
472
472
self ::printTitle (Console::text (' ► Get Blacklist ' , 'darkgray ' ));
473
473
474
- $ plainText = self ::$ outputFormat === self ::OUTPUT_PLAINTEXT ;
474
+ $ plainText = ( self ::$ outputFormat === self ::OUTPUT_PLAINTEXT ) ;
475
475
$ limit = self ::getNumericParameter ($ arguments ,'l ' , 'limit ' , 1000 );
476
476
$ scoreMin = self ::getNumericParameter ($ arguments ,'s ' , 'score ' , 100 );
477
477
@@ -495,7 +495,7 @@ protected static function getBlacklist(array $arguments): void
495
495
// ✓ Done: print deleted report number
496
496
switch (self ::$ outputFormat ){
497
497
case self ::OUTPUT_JSON :
498
- echo json_encode ($ response , JSON_PRETTY_PRINT );
498
+ echo json_encode ($ decodedResponse , JSON_PRETTY_PRINT );
499
499
break ;
500
500
501
501
case self ::OUTPUT_DEFAULT :
0 commit comments