Skip to content

Commit

Permalink
v0.9.12
Browse files Browse the repository at this point in the history
  • Loading branch information
kristuff authored Feb 23, 2021
2 parents 87147b9 + 33ffa16 commit f04a68d
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion bin/abuseipdb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"require": {
"php": ">=7.1",
"kristuff/mishell": "^1.5-stable",
"kristuff/abuseipdb": "0.9.10"
"kristuff/abuseipdb": "0.9.11"
},
"bin": [
"bin/abuseipdb"
Expand Down
6 changes: 3 additions & 3 deletions src/AbstractClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
namespace Kristuff\AbuseIPDB;
Expand Down Expand Up @@ -42,7 +42,7 @@ abstract class AbstractClient extends ShellErrorHandler
/**
* @var string
*/
const VERSION = 'v0.9.11';
const VERSION = 'v0.9.12';

/**
* @var QuietApiHandler
Expand Down Expand Up @@ -162,7 +162,7 @@ protected static function checkForInstall(): bool
}

/**
* Get a new instance of ApiHandler with config stored in a Json file
* Get a new instance of ApiHandler with config stored in Json files
*
* @access public
* @static
Expand Down
12 changes: 6 additions & 6 deletions src/AbuseIPDBClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
namespace Kristuff\AbuseIPDB;
Expand Down Expand Up @@ -159,13 +159,13 @@ protected static function printHelp(): void
Console::log(' ' . Console::text('OPTIONS:', 'white', 'underline'));
Console::log();
Console::log(Console::text(' -h, --help', 'white'));
Console::log(' Prints the current help. If given, all next arguments are ignored.', 'lightgray');
Console::log(' Prints the current help.', 'lightgray');
Console::log();
Console::log(Console::text(' -G, --config', 'white'));
Console::log(' Prints the current config. If given, all next arguments are ignored.', 'lightgray');
Console::log(' Prints the current config.', 'lightgray');
Console::log();
Console::log(Console::text(' -L, --list', 'white'));
Console::log(' Prints the list report categories. If given, all next arguments are ignored.', 'lightgray');
Console::log(' Prints the list report categories.', 'lightgray');
Console::log();
Console::log(Console::text(' -C, --check ', 'white') . Console::text('IP', 'yellow', 'underline'));
Console::log(' Performs a check request for the given IP address. A valid IPv4 or IPv6 address is required.', 'lightgray');
Expand Down Expand Up @@ -210,7 +210,7 @@ protected static function printHelp(): void
Console::log(' check or report: confidence score only, check-block: reported IPs list with confidence score, ', 'lightgray');
Console::log(' bulk-report: number of saved reports, clear: number of deleted reports).', 'lightgray');
Console::log();
Console::log(Console::text(' -s, --score ', 'white'));
Console::log(Console::text(' -s, --score ', 'white'). Console::text('SCORE', 'yellow', 'underline'));
Console::log(' For a blacklist request, sets the confidence score minimum. The confidence minimum ', 'lightgray');
Console::log(' must be between 25 and 100. This parameter is subscriber feature (not honored otherwise, allways 100).', 'lightgray');
Console::log();
Expand All @@ -220,7 +220,7 @@ protected static function printHelp(): void
Console::log(' ' . Console::text('--limit', 'white') . Console::text(' parameter. ', 'lightgray'));
Console::log();
Console::log(Console::text(' --version', 'white'));
Console::log(' Prints the current version. If given, all next arguments are ignored.', 'lightgray');
Console::log(' Prints the current version.', 'lightgray');
Console::log();
Console::log(Console::text(' -S, --save-key ', 'white') . Console::text('KEY', 'yellow', 'underline'));
Console::log(' Save the given API key in the configuration file. Requires writing permissions on the config directory. ', 'lightgray');
Expand Down
2 changes: 1 addition & 1 deletion src/BulkReportTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
namespace Kristuff\AbuseIPDB;
Expand Down
2 changes: 1 addition & 1 deletion src/CheckBlockTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
namespace Kristuff\AbuseIPDB;
Expand Down
8 changes: 4 additions & 4 deletions src/CheckTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
namespace Kristuff\AbuseIPDB;
Expand Down Expand Up @@ -56,8 +56,8 @@ protected static function printCheckScore(object $response): void
*/
protected static function printCheckDetail(object $response, string $color): void
{
// self::printResult(' isPublic', $response->data->isPublic, $defaultColor);
// self::printResult(' ipVersion', $response->data->ipVersion, $defaultColor);
// self::printResult(' isPublic', $response->data->isPublic, $defaultColor);
// self::printResult(' ipVersion', $response->data->ipVersion, $defaultColor);

$line = self::printResult(Console::pad(' Whitelisted:', 23), $response->data->isWhitelisted ? 'true': 'false', $color, '', false);
$line .= $response->data->isWhitelisted ? Console::text('', 'green') : '';
Expand Down Expand Up @@ -197,7 +197,7 @@ private static function getLastReportsCategories(object $report): array
{
$categories = [];
foreach (array_filter($report->categories) as $catId){
$cat = ApiHandler::getCategoryNamebyId($catId)[0];
$cat = ApiHandler::getCategoryNameById(strval($catId));
if ($cat !== false) {
$categories[] = $cat;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ShellErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
namespace Kristuff\AbuseIPDB;
Expand Down
2 changes: 1 addition & 1 deletion src/ShellUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
namespace Kristuff\AbuseIPDB;
Expand Down
2 changes: 1 addition & 1 deletion src/UtilsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
namespace Kristuff\AbuseIPDB;
Expand Down

0 comments on commit f04a68d

Please sign in to comment.