From 1ee7510d45d960e00569782548ea1dac49bed6ea Mon Sep 17 00:00:00 2001 From: rustik Date: Fri, 15 May 2015 22:50:57 +0500 Subject: [PATCH 1/4] Fix composer.json --- composer.json | 1 - 1 file changed, 1 deletion(-) 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" From c52540b74c36e34d2723480d648466bd6f0be696 Mon Sep 17 00:00:00 2001 From: rustik Date: Fri, 15 May 2015 22:53:04 +0500 Subject: [PATCH 2/4] Change version in phpdoc --- cleantalk.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleantalk.class.php b/cleantalk.class.php index f7c1ed3..b5878ed 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) From b243272a16633552992d66315ccc4088077fb2ff Mon Sep 17 00:00:00 2001 From: rustik Date: Fri, 15 May 2015 22:57:57 +0500 Subject: [PATCH 3/4] Removed closing php tag for save stdout --- cleantalk.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cleantalk.class.php b/cleantalk.class.php index b5878ed..64fe7dd 100644 --- a/cleantalk.class.php +++ b/cleantalk.class.php @@ -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 ); } } - -?> From c597d9afcb4766d29e6f69aed191132373141008 Mon Sep 17 00:00:00 2001 From: rustik Date: Fri, 15 May 2015 23:10:57 +0500 Subject: [PATCH 4/4] Version badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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?