Skip to content

Commit

Permalink
fixed helper name 'captcha\word' => 'captcha/word'
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-mabe committed Jun 20, 2012
1 parent 259b6c4 commit 97fb866
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions library/Zend/Captcha/Word.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ abstract class Word extends AbstractAdapter
* @var integer
*/
protected $timeout = 300;

/**
* Should generate() keep session or create a new one?
*
*
* @var boolean
*/
protected $keepSession = false;
Expand Down Expand Up @@ -219,19 +219,19 @@ public function getTimeout()

/**
* Sets if session should be preserved on generate()
*
*
* @param $keepSession Should session be kept on generate()?
* @return Word
*/
public function setKeepSession($keepSession)
public function setKeepSession($keepSession)
{
$this->keepSession = $keepSession;
return $this;
}

/**
* Numbers should be included in the pattern?
*
*
* @return bool
*/
public function getUseNumbers()
Expand All @@ -241,7 +241,7 @@ public function getUseNumbers()

/**
* Set if numbers should be included in the pattern
*
*
* @param bool $useNumbers numbers should be included in the pattern?
* @return Word
*/
Expand Down Expand Up @@ -347,7 +347,7 @@ protected function generateWord()
public function generate()
{
if (!$this->keepSession) {
$this->session = null;
$this->session = null;
}
$id = $this->generateRandomId();
$this->setId($id);
Expand All @@ -358,7 +358,7 @@ public function generate()

/**
* Generate a random identifier
*
*
* @return void
*/
protected function generateRandomId()
Expand Down Expand Up @@ -417,6 +417,6 @@ public function isValid($value, $context = null)
*/
public function getHelperName()
{
return "captcha\word";
return 'captcha/word';
}
}

0 comments on commit 97fb866

Please sign in to comment.