From 91eef931f5effe87bb2ad209a31714cba0547f0f Mon Sep 17 00:00:00 2001 From: Maks3w Date: Thu, 12 Jul 2012 21:11:36 +0200 Subject: [PATCH] [PSR-2] fixers=braces,elseif,short_tag,php_closing_tag,trailing_spaces,linefeed Applied php-cs-fixer --fixers=braces,elseif,short_tag,php_closing_tag,trailing_spaces,linefeed --- src/Dumb.php | 2 +- src/Exception/InvalidArgumentException.php | 2 +- src/Factory.php | 6 +++--- src/Figlet.php | 4 ++-- test/ImageTest.php | 2 +- test/ReCaptchaTest.php | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Dumb.php b/src/Dumb.php index 45880ed..b22514a 100644 --- a/src/Dumb.php +++ b/src/Dumb.php @@ -48,7 +48,7 @@ public function getLabel() /** * Retrieve optional view helper name to use when rendering this captcha - * + * * @return string */ public function getHelperName() diff --git a/src/Exception/InvalidArgumentException.php b/src/Exception/InvalidArgumentException.php index 9ca874f..1fd7062 100644 --- a/src/Exception/InvalidArgumentException.php +++ b/src/Exception/InvalidArgumentException.php @@ -15,7 +15,7 @@ * @package Zend_Captcha * @subpackage Exception */ -class InvalidArgumentException extends \InvalidArgumentException implements +class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface { } diff --git a/src/Factory.php b/src/Factory.php index aaa87b5..53df3c6 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -31,8 +31,8 @@ abstract class Factory /** * Create a captcha adapter instance - * - * @param array|Traversable $options + * + * @param array|Traversable $options * @return AdapterInterface * @throws Exception\InvalidArgumentException for a non-array, non-Traversable $options * @throws Exception\DomainException if class is missing or invalid @@ -69,7 +69,7 @@ public static function factory($options) $class )); } - + unset($options['class']); if (isset($options['options'])) { diff --git a/src/Figlet.php b/src/Figlet.php index 41a32de..d7e3850 100644 --- a/src/Figlet.php +++ b/src/Figlet.php @@ -44,7 +44,7 @@ public function __construct($options = null) /** * Retrieve the composed figlet manager - * + * * @return FigletManager */ public function getFiglet() @@ -65,7 +65,7 @@ public function generate() /** * Get helper name used to render captcha - * + * * @return string */ public function getHelperName() diff --git a/test/ImageTest.php b/test/ImageTest.php index 38ce1e5..a7fd549 100644 --- a/test/ImageTest.php +++ b/test/ImageTest.php @@ -46,7 +46,7 @@ public function setUp() if (isset($this->word)) { unset($this->word); } - + $this->testDir = $this->getTmpDir() . '/ZF_test_images'; if (!is_dir($this->testDir)) { @mkdir($this->testDir); diff --git a/test/ReCaptchaTest.php b/test/ReCaptchaTest.php index d3ea129..ddd5ba9 100644 --- a/test/ReCaptchaTest.php +++ b/test/ReCaptchaTest.php @@ -119,6 +119,6 @@ public function testAllowsSettingThemeOptionOnServiceObject() public function testUsesReCaptchaHelper() { $captcha = new ReCaptcha; - $this->assertEquals('captcha/recaptcha', $captcha->getHelperName()); + $this->assertEquals('captcha/recaptcha', $captcha->getHelperName()); } }