diff --git a/README.md b/README.md index c75e855..6191e3a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ php-antispam ============ +[![Latest Stable Version](https://poser.pugx.org/cleantalk/php-antispam/v/stable.svg)](https://packagist.org/packages/cleantalk/php-antispam) + A PHP API for antispam service cleantalk.org. Invisible protection from spam, no captches, no puzzles, no animals and no math. ## How API stops spam? diff --git a/cleantalk.class.php b/cleantalk.class.php index f7c1ed3..64fe7dd 100644 --- a/cleantalk.class.php +++ b/cleantalk.class.php @@ -2,7 +2,7 @@ /** * Cleantalk base class * - * @version 2.0 + * @version 2.0.0 * @package Cleantalk * @subpackage Base * @author Cleantalk team (welcome@cleantalk.org) @@ -298,7 +298,7 @@ class CleantalkRequest { /** * Phone number - * @var type + * @var type */ public $phone = null; @@ -310,7 +310,7 @@ class CleantalkRequest { /** * Fill params with constructor - * @param type $params + * @param array $params */ public function __construct($params = null) { if (is_array($params) && count($params) > 0) { @@ -1071,7 +1071,6 @@ function apache_request_headers() if( preg_match($rx_http, $key) ) { $arh_key = preg_replace($rx_http, '', $key); - $rx_matches = array(); $rx_matches = explode('_', $arh_key); if( count($rx_matches) > 0 and strlen($arh_key) > 2 ) { @@ -1084,5 +1083,3 @@ function apache_request_headers() return( $arh ); } } - -?> diff --git a/composer.json b/composer.json index 3485a33..2b960aa 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,6 @@ { "name": "cleantalk/php-antispam", "description": "PHP API for antispam service cleantalk.org. Invisible protection from spam, no captches, no puzzles, no animals and no math.", - "version": "1.22", "license": "GPL-3.0", "support": { "email": "welcome@cleantalk.org"