Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'upstream/master' into module-class-map-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
coss committed Sep 5, 2012
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function getName()
* Set name
*
* @param string $name
* @return AbstractAdapter
*/
public function setName($name)
{
Expand Down
6 changes: 3 additions & 3 deletions src/AbstractWord.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function setSessionClass($sessionClass)
}

/**
* Retrieve word length to use when genrating captcha
* Retrieve word length to use when generating captcha
*
* @return integer
*/
Expand Down Expand Up @@ -175,7 +175,7 @@ public function getId()
* Set captcha identifier
*
* @param string $id
* return Word
* @return AbstractWord
*/
protected function setId ($id)
{
Expand Down Expand Up @@ -347,7 +347,7 @@ public function generate()
/**
* Generate a random identifier
*
* @return void
* @return string
*/
protected function generateRandomId()
{
Expand Down
1 change: 0 additions & 1 deletion src/Figlet.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class Figlet extends AbstractWord
* Constructor
*
* @param null|string|array|\Traversable $options
* @return void
*/
public function __construct($options = null)
{
Expand Down
7 changes: 5 additions & 2 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ class Image extends AbstractWord
* Constructor
*
* @param array|\Traversable $options
* @return void
*/
public function __construct($options = null)
{
Expand Down Expand Up @@ -266,6 +265,7 @@ public function getWidth()

/**
* @param string $startImage
* @return Image
*/
public function setStartImage($startImage)
{
Expand All @@ -275,6 +275,7 @@ public function setStartImage($startImage)

/**
* @param int $dotNoiseLevel
* @return Image
*/
public function setDotNoiseLevel($dotNoiseLevel)
{
Expand All @@ -284,6 +285,7 @@ public function setDotNoiseLevel($dotNoiseLevel)

/**
* @param int $lineNoiseLevel
* @return Image
*/
public function setLineNoiseLevel($lineNoiseLevel)
{
Expand Down Expand Up @@ -377,6 +379,7 @@ public function setImgUrl($imgUrl)

/**
* @param string $imgAlt
* @return Image
*/
public function setImgAlt($imgAlt)
{
Expand All @@ -385,7 +388,7 @@ public function setImgAlt($imgAlt)
}

/**
* Set captch image filename suffix
* Set captcha image filename suffix
*
* @param string $suffix
* @return Image
Expand Down
1 change: 0 additions & 1 deletion src/ReCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public function setPubkey($pubkey)
* Constructor
*
* @param null|array|Traversable $options
* @return void
*/
public function __construct($options = null)
{
Expand Down
4 changes: 2 additions & 2 deletions test/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ public function setUpImageTest()
$this->markTestSkipped('The GD extension is not available.');
return;
}
if(!function_exists("imagepng")) {
if (!function_exists("imagepng")) {
$this->markTestSkipped("Image CAPTCHA requires PNG support");
}
if(!function_exists("imageftbbox")) {
if (!function_exists("imageftbbox")) {
$this->markTestSkipped("Image CAPTCHA requires FT fonts support");
}

Expand Down
4 changes: 2 additions & 2 deletions test/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public function setUp()
$this->markTestSkipped('The GD extension is not available.');
return;
}
if(!function_exists("imagepng")) {
if (!function_exists("imagepng")) {
$this->markTestSkipped("Image CAPTCHA requires PNG support");
}
if(!function_exists("imageftbbox")) {
if (!function_exists("imageftbbox")) {
$this->markTestSkipped("Image CAPTCHA requires FT fonts support");
}

Expand Down

0 comments on commit 8f36ec1

Please sign in to comment.