Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit b7a3ee9

Browse files
committed
Fixes DocBlocks in Zend_Captcha_Image
1 parent 1984f62 commit b7a3ee9

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

library/Zend/Captcha/Image.php

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,24 +240,36 @@ public function getWidth()
240240
{
241241
return $this->_width;
242242
}
243+
243244
/**
245+
* Set start image
246+
*
244247
* @param string $startImage
248+
* @return Zend_Captcha_Image
245249
*/
246250
public function setStartImage ($startImage)
247251
{
248252
$this->_startImage = $startImage;
249253
return $this;
250254
}
255+
251256
/**
257+
* Set dot noise level
258+
*
252259
* @param int $dotNoiseLevel
260+
* @return Zend_Captcha_Image
253261
*/
254262
public function setDotNoiseLevel ($dotNoiseLevel)
255263
{
256264
$this->_dotNoiseLevel = $dotNoiseLevel;
257265
return $this;
258266
}
259-
/**
267+
268+
/**
269+
* Set line noise level
270+
*
260271
* @param int $lineNoiseLevel
272+
* @return Zend_Captcha_Image
261273
*/
262274
public function setLineNoiseLevel ($lineNoiseLevel)
263275
{
@@ -348,8 +360,12 @@ public function setImgUrl($imgUrl)
348360
$this->_imgUrl = rtrim($imgUrl, "/\\") . '/';
349361
return $this;
350362
}
363+
351364
/**
365+
* Set image alternative text
366+
*
352367
* @param string $imgAlt
368+
* @return Zend_Captcha_Image
353369
*/
354370
public function setImgAlt ($imgAlt)
355371
{
@@ -440,8 +456,9 @@ public function generate()
440456
* Override this function if you want different image generator
441457
* Wave transform from http://www.captcha.ru/captchas/multiwave/
442458
*
443-
* @param string $id Captcha ID
459+
* @param string $id Captcha ID
444460
* @param string $word Captcha word
461+
* @throws Zend_Captcha_Exception
445462
*/
446463
protected function _generateImage($id, $word)
447464
{
@@ -567,7 +584,6 @@ protected function _generateImage($id, $word)
567584

568585
/**
569586
* Remove old files from image directory
570-
*
571587
*/
572588
protected function _gc()
573589
{

0 commit comments

Comments
 (0)