Skip to content

Commit

Permalink
Address issue #11 and revert #12
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsmith committed Apr 26, 2016
1 parent 0442aea commit bdfdec5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Cgsmith/Form/Element/Recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @license MIT
* @author Chris Smith
*/
class Recaptcha extends Zend_Form_Element
class Recaptcha extends \Zend_Form_Element
{
/** @var string specify formRecaptcha helper */
public $helper = 'formRecaptcha';
Expand All @@ -25,13 +25,13 @@ class Recaptcha extends Zend_Form_Element
*
* @param array|string|Zend_Config $spec
* @param null $options
* @throws Zend_Exception
* @throws Zend_Form_Exception
* @throws \Zend_Exception
* @throws \Zend_Form_Exception
*/
public function __construct($spec, $options = null)
{
if (empty($options['siteKey']) || empty($options['secretKey'])) {
throw new Zend_Exception('Site key and secret key must be specified.');
throw new \Zend_Exception('Site key and secret key must be specified.');
}
$this->_siteKey = trim($options['siteKey']); // trim the white space if there is any just to be sure
$this->_secretKey = trim($options['secretKey']); // trim the white space if there is any just to be sure
Expand Down
2 changes: 1 addition & 1 deletion src/Cgsmith/Validate/Recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Chris Smith
* @link https://github.com/google/recaptcha
*/
class Recaptcha extends Zend_Validate_Abstract
class Recaptcha extends \Zend_Validate_Abstract
{
/** @var string secret key */
protected $_secretKey;
Expand Down
6 changes: 3 additions & 3 deletions src/Cgsmith/View/Helper/FormRecaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license MIT
* @author Chris Smith
*/
class FormRecaptcha extends Zend_View_Helper_FormElement
class FormRecaptcha extends \Zend_View_Helper_FormElement
{
/**
* For google recaptcha div to render properly
Expand All @@ -19,12 +19,12 @@ class FormRecaptcha extends Zend_View_Helper_FormElement
* @param null $options
* @param string $listsep
* @return string
* @throws Zend_Exception
* @throws \Zend_Exception
*/
public function formRecaptcha($name, $value = null, $attribs = null, $options = null, $listsep = '')
{
if (!isset($attribs['siteKey']) || !isset($attribs['secretKey'])) {
throw new Zend_Exception('Site key is not set in the view helper');
throw new \Zend_Exception('Site key is not set in the view helper');
}

$customClasses = '';
Expand Down

0 comments on commit bdfdec5

Please sign in to comment.