Skip to content

Commit

Permalink
Merge pull request #4 from psrustik/semver
Browse files Browse the repository at this point in the history
Semver
  • Loading branch information
CleanTalk committed May 18, 2015
2 parents dca1ccd + c597d9a commit c4cae1e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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?
Expand Down
9 changes: 3 additions & 6 deletions cleantalk.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Cleantalk base class
*
* @version 2.0
* @version 2.0.0
* @package Cleantalk
* @subpackage Base
* @author Cleantalk team (welcome@cleantalk.org)
Expand Down Expand Up @@ -298,7 +298,7 @@ class CleantalkRequest {
/**
* Phone number
* @var type
* @var type
*/
public $phone = null;
Expand All @@ -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) {
Expand Down Expand Up @@ -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 )
{
Expand All @@ -1084,5 +1083,3 @@ function apache_request_headers()
return( $arh );
}
}

?>
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c4cae1e

Please sign in to comment.