Skip to content

Commit c4cae1e

Browse files
author
CleanTalk
committed
Merge pull request #4 from psrustik/semver
Semver
2 parents dca1ccd + c597d9a commit c4cae1e

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
php-antispam
22
============
33

4+
[![Latest Stable Version](https://poser.pugx.org/cleantalk/php-antispam/v/stable.svg)](https://packagist.org/packages/cleantalk/php-antispam)
5+
46
A PHP API for antispam service cleantalk.org. Invisible protection from spam, no captches, no puzzles, no animals and no math.
57

68
## How API stops spam?

cleantalk.class.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Cleantalk base class
44
*
5-
* @version 2.0
5+
* @version 2.0.0
66
* @package Cleantalk
77
* @subpackage Base
88
* @author Cleantalk team ([email protected])
@@ -298,7 +298,7 @@ class CleantalkRequest {
298298

299299
/**
300300
* Phone number
301-
* @var type
301+
* @var type
302302
*/
303303
public $phone = null;
304304

@@ -310,7 +310,7 @@ class CleantalkRequest {
310310

311311
/**
312312
* Fill params with constructor
313-
* @param type $params
313+
* @param array $params
314314
*/
315315
public function __construct($params = null) {
316316
if (is_array($params) && count($params) > 0) {
@@ -1071,7 +1071,6 @@ function apache_request_headers()
10711071
if( preg_match($rx_http, $key) )
10721072
{
10731073
$arh_key = preg_replace($rx_http, '', $key);
1074-
$rx_matches = array();
10751074
$rx_matches = explode('_', $arh_key);
10761075
if( count($rx_matches) > 0 and strlen($arh_key) > 2 )
10771076
{
@@ -1084,5 +1083,3 @@ function apache_request_headers()
10841083
return( $arh );
10851084
}
10861085
}
1087-
1088-
?>

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "cleantalk/php-antispam",
33
"description": "PHP API for antispam service cleantalk.org. Invisible protection from spam, no captches, no puzzles, no animals and no math.",
4-
"version": "1.22",
54
"license": "GPL-3.0",
65
"support": {
76
"email": "[email protected]"

0 commit comments

Comments
 (0)