From 05557b3786b04b0abf9f4c0043d2d47ef58ca5dc Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 5 Jan 2013 05:43:48 +0700 Subject: [PATCH] boolean to bool in docblock --- src/Filter/Alnum.php | 6 +++--- src/Translator/Loader/Gettext.php | 2 +- src/Validator/Alnum.php | 6 +++--- src/Validator/Alpha.php | 2 +- src/Validator/Float.php | 2 +- src/Validator/Int.php | 2 +- src/Validator/PostCode.php | 2 +- test/Filter/AlnumTest.php | 2 +- test/Filter/AlphaTest.php | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Filter/Alnum.php b/src/Filter/Alnum.php index 6c036b8d..c3e55da7 100644 --- a/src/Filter/Alnum.php +++ b/src/Filter/Alnum.php @@ -31,7 +31,7 @@ class Alnum extends AbstractLocale /** * Sets default option values for this instance * - * @param array|Traversable|boolean|null $allowWhiteSpaceOrOptions + * @param array|Traversable|bool|null $allowWhiteSpaceOrOptions * @param string|null $locale */ public function __construct($allowWhiteSpaceOrOptions = null, $locale = null) @@ -49,7 +49,7 @@ public function __construct($allowWhiteSpaceOrOptions = null, $locale = null) /** * Sets the allowWhiteSpace option * - * @param boolean $flag + * @param bool $flag * @return Alnum Provides a fluent interface */ public function setAllowWhiteSpace($flag = true) @@ -61,7 +61,7 @@ public function setAllowWhiteSpace($flag = true) /** * Whether white space is allowed * - * @return boolean + * @return bool */ public function getAllowWhiteSpace() { diff --git a/src/Translator/Loader/Gettext.php b/src/Translator/Loader/Gettext.php index b1f4d6b2..75ddb789 100644 --- a/src/Translator/Loader/Gettext.php +++ b/src/Translator/Loader/Gettext.php @@ -34,7 +34,7 @@ class Gettext implements FileLoaderInterface /** * Whether the current file is little endian. * - * @var boolean + * @var bool */ protected $littleEndian; diff --git a/src/Validator/Alnum.php b/src/Validator/Alnum.php index 96aaaac3..e560b2dd 100644 --- a/src/Validator/Alnum.php +++ b/src/Validator/Alnum.php @@ -69,7 +69,7 @@ public function __construct($allowWhiteSpace = false) /** * Returns the allowWhiteSpace option * - * @return boolean + * @return bool */ public function getAllowWhiteSpace() { @@ -79,7 +79,7 @@ public function getAllowWhiteSpace() /** * Sets the allowWhiteSpace option * - * @param boolean $allowWhiteSpace + * @param bool $allowWhiteSpace * @return AlnumFilter Provides a fluent interface */ public function setAllowWhiteSpace($allowWhiteSpace) @@ -92,7 +92,7 @@ public function setAllowWhiteSpace($allowWhiteSpace) * Returns true if and only if $value contains only alphabetic and digit characters * * @param string $value - * @return boolean + * @return bool */ public function isValid($value) { diff --git a/src/Validator/Alpha.php b/src/Validator/Alpha.php index 0c62cfdb..a2e519ef 100644 --- a/src/Validator/Alpha.php +++ b/src/Validator/Alpha.php @@ -54,7 +54,7 @@ class Alpha extends Alnum * Returns true if and only if $value contains only alphabetic characters * * @param string $value - * @return boolean + * @return bool */ public function isValid($value) { diff --git a/src/Validator/Float.php b/src/Validator/Float.php index 09d70f5a..55686d54 100644 --- a/src/Validator/Float.php +++ b/src/Validator/Float.php @@ -90,7 +90,7 @@ public function setLocale($locale) * Returns true if and only if $value is a floating-point value * * @param string $value - * @return boolean + * @return bool * @throws Exception\InvalidArgumentException */ public function isValid($value) diff --git a/src/Validator/Int.php b/src/Validator/Int.php index 3b7f80a6..3f638f5c 100644 --- a/src/Validator/Int.php +++ b/src/Validator/Int.php @@ -87,7 +87,7 @@ public function setLocale($locale) * Returns true if and only if $value is a valid integer * * @param string|integer $value - * @return boolean + * @return bool * @throws Exception\InvalidArgumentException */ public function isValid($value) diff --git a/src/Validator/PostCode.php b/src/Validator/PostCode.php index 094c20ab..4ce60b0f 100644 --- a/src/Validator/PostCode.php +++ b/src/Validator/PostCode.php @@ -324,7 +324,7 @@ public function setService($service) * Returns true if and only if $value is a valid postalcode * * @param string $value - * @return boolean + * @return bool * @throws Exception\InvalidArgumentException */ public function isValid($value) diff --git a/test/Filter/AlnumTest.php b/test/Filter/AlnumTest.php index 02749050..f1475fec 100644 --- a/test/Filter/AlnumTest.php +++ b/test/Filter/AlnumTest.php @@ -45,7 +45,7 @@ class AlnumTest extends \PHPUnit_Framework_TestCase /** * The Alphabet means english alphabet. * - * @var boolean + * @var bool */ protected static $meansEnglishAlphabet; diff --git a/test/Filter/AlphaTest.php b/test/Filter/AlphaTest.php index 248d6e13..29233de8 100644 --- a/test/Filter/AlphaTest.php +++ b/test/Filter/AlphaTest.php @@ -45,7 +45,7 @@ class AlphaTest extends \PHPUnit_Framework_TestCase /** * The Alphabet means english alphabet. * - * @var boolean + * @var bool */ protected static $meansEnglishAlphabet;