Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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