From 0090adef7c7cc159ab2c2a7bc06632dc9a3d8460 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Tue, 23 Sep 2014 22:52:22 -0400 Subject: [PATCH] Dropped AYAH Going to merge into my AYAH library eventually. For now just need to remove it --- composer.json | 3 +- src/classes/API/AYAH.php | 53 ---------------------------------- tests/classes/API/AYAHTest.php | 40 ------------------------- 3 files changed, 1 insertion(+), 95 deletions(-) delete mode 100644 src/classes/API/AYAH.php delete mode 100644 tests/classes/API/AYAHTest.php diff --git a/composer.json b/composer.json index 739fdeb..1e28c79 100644 --- a/composer.json +++ b/composer.json @@ -21,8 +21,7 @@ "satooshi/php-coveralls": "dev-master" }, "require": { - "php": ">=5.4", - "joshtronic/php-ayah": "dev-master" + "php": ">=5.4" }, "autoload": { "classmap": ["src/"] diff --git a/src/classes/API/AYAH.php b/src/classes/API/AYAH.php deleted file mode 100644 index 9822705..0000000 --- a/src/classes/API/AYAH.php +++ /dev/null @@ -1,53 +0,0 @@ - - * @copyright Copyright 2007-2014, Josh Sherman - * @license http://www.opensource.org/licenses/mit-license.html - * @package PICKLES - * @link https://github.com/joshtronic/pickles - */ - -/** - * Are You A Human API Interface - * - * @link http://areyouahuman.com - */ -class API_AYAH -{ - public static function getHTML() - { - $config = Config::getInstance(); - - if (!$config->api['ayah']) - { - throw new Exception('Missing API configuration.'); - } - - $ayah = new AYAH($config->api['ayah']); - - return $ayah->getPublisherHTML(); - } - - public static function isHuman() - { - $config = Config::getInstance(); - - if (!$config->api['ayah']) - { - throw new Exception('Missing API configuration.'); - } - - $ayah = new AYAH($config->api['ayah']); - - return $ayah->scoreResult(); - } -} - diff --git a/tests/classes/API/AYAHTest.php b/tests/classes/API/AYAHTest.php deleted file mode 100644 index 8fd1ac6..0000000 --- a/tests/classes/API/AYAHTest.php +++ /dev/null @@ -1,40 +0,0 @@ -data['api']['ayah'] = [ - 'publisher_key' => '01f70454bada303692be5f36a8fd104eba8b00dd', - 'scoring_key' => '80cc3f9c6e1da29369c238d55bd8528a968473ad', - ]; - - $this->assertRegExp('/
<\/div>