diff --git a/.gitignore b/.gitignore index 25d109d..208a599 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -_* -.old* vendor/* \ No newline at end of file diff --git a/README.md b/README.md index b9df5c3..bcb3ae3 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Deploy with composer: ```json ... "require": { - "kristuff/abuseipdb": ">=0.9.11-stable" + "kristuff/abuseipdb": "^0.9.12-stable" }, ``` @@ -41,8 +41,7 @@ More infos - [Project website](https://kristuff.fr/projects/abuseipdb) - [Api documentation](https://kristuff.fr/projects/abuseipdb/doc) -- [Config/Install guide](https://kristuff.fr/projects/abuseipdb/technical#configuration) -- [CLI version](https://kristuff.fr/projects/abuseipdbcli) +- CLI version: [github](https://github.com/kristuff/abuseipdb-cli) | [website](https://kristuff.fr/projects/abuseipdbcli) License diff --git a/composer.json b/composer.json index 860a576..d473e9d 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,9 @@ "authors": [ { "name": "Kristuff", - "homepage": "https://github.com/kristuff" + "homepage": "https://github.com/kristuff", + "email": "kristuff@kristuff.fr", + "role": "Developer" } ], "require": { diff --git a/lib/ApiBase.php b/lib/ApiBase.php index 2be1bd9..366d606 100644 --- a/lib/ApiBase.php +++ b/lib/ApiBase.php @@ -7,14 +7,14 @@ * / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) | * /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/ * - * This file is part of Kristuff\AbsuseIPDB. + * This file is part of Kristuff\AbuseIPDB. * - * (c) Kristuff + * (c) Kristuff * * 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 */ @@ -44,8 +44,8 @@ abstract class ApiBase /** * AbuseIPDB API v2 categories - * shorname, id (string), long name - * last paramter is false when the category cant' be used alone + * shortname, id (string), long name + * last parameter is false when the category can't be used alone * * @static * @var array diff --git a/lib/ApiHandler.php b/lib/ApiHandler.php index 2bf2d43..6b800bd 100644 --- a/lib/ApiHandler.php +++ b/lib/ApiHandler.php @@ -7,14 +7,14 @@ * / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) | * /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/ * - * This file is part of Kristuff\AbsuseIPDB. + * This file is part of Kristuff\AbuseIPDB. * - * (c) Kristuff + * (c) Kristuff * * 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 */ @@ -35,7 +35,7 @@ class ApiHandler extends ApiBase /** * @var string */ - const VERSION = 'v0.9.11'; + const VERSION = 'v0.9.12'; /** * The ips to remove from report messages diff --git a/lib/ApiResponse.php b/lib/ApiResponse.php index 099e705..0a7b50a 100644 --- a/lib/ApiResponse.php +++ b/lib/ApiResponse.php @@ -7,14 +7,14 @@ * / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) | * /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/ * - * This file is part of Kristuff\AbsuseIPDB. + * This file is part of Kristuff\AbuseIPDB. * - * (c) Kristuff + * (c) Kristuff * * 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 */ @@ -70,9 +70,9 @@ class ApiResponse * * @access public * - * @return object|null + * @return \stdClass|null */ - public function getObject(): ?object + public function getObject(): ?\stdClass { return $this->decodedResponse; } diff --git a/lib/CurlTrait.php b/lib/CurlTrait.php index 18ce4f1..683c5e5 100644 --- a/lib/CurlTrait.php +++ b/lib/CurlTrait.php @@ -7,14 +7,14 @@ * / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) | * /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/ * - * This file is part of Kristuff\AbsuseIPDB. + * This file is part of Kristuff\AbuseIPDB. * - * (c) Kristuff + * (c) Kristuff * * 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 */ diff --git a/lib/InvalidPermissionException.php b/lib/InvalidPermissionException.php index 27becac..9183df9 100644 --- a/lib/InvalidPermissionException.php +++ b/lib/InvalidPermissionException.php @@ -7,14 +7,14 @@ * / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) | * /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/ * - * This file is part of Kristuff\AbsuseIPDB. + * This file is part of Kristuff\AbuseIPDB. * - * (c) Kristuff + * (c) Kristuff * * 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 */ diff --git a/lib/QuietApiHandler.php b/lib/QuietApiHandler.php index 96211d7..8995c33 100644 --- a/lib/QuietApiHandler.php +++ b/lib/QuietApiHandler.php @@ -7,14 +7,14 @@ * / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) | * /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/ * - * This file is part of Kristuff\AbsuseIPDB. + * This file is part of Kristuff\AbuseIPDB. * - * (c) Kristuff + * (c) Kristuff * * 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 */