From 69e5c8ad62c02e45424443e6e27cf884a0bb7571 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/Config.php | 14 +++++++------- src/Factory.php | 4 ++-- src/Reader/ReaderInterface.php | 2 +- src/Writer/AbstractWriter.php | 2 +- src/Writer/Ini.php | 2 +- src/Writer/WriterInterface.php | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Config.php b/src/Config.php index b7eb9a0..e3498b0 100644 --- a/src/Config.php +++ b/src/Config.php @@ -30,7 +30,7 @@ class Config implements Countable, Iterator, ArrayAccess /** * Whether modifications to configuration data are allowed. * - * @var boolean + * @var bool */ protected $allowModifications; @@ -52,7 +52,7 @@ class Config implements Countable, Iterator, ArrayAccess * Used when unsetting values during iteration to ensure we do not skip * the next element. * - * @var boolean + * @var bool */ protected $skipNextIteration; @@ -63,7 +63,7 @@ class Config implements Countable, Iterator, ArrayAccess * on construction. * * @param array $array - * @param boolean $allowModifications + * @param bool $allowModifications */ public function __construct(array $array, $allowModifications = false) { @@ -185,7 +185,7 @@ public function toArray() * isset() overloading * * @param string $name - * @return boolean + * @return bool */ public function __isset($name) { @@ -276,7 +276,7 @@ public function rewind() * valid(): defined by Iterator interface. * * @see Iterator::valid() - * @return boolean + * @return bool */ public function valid() { @@ -288,7 +288,7 @@ public function valid() * * @see ArrayAccess::offsetExists() * @param mixed $offset - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -396,7 +396,7 @@ public function setReadOnly() /** * Returns whether this Config object is read only or not. * - * @return boolean + * @return bool */ public function isReadOnly() { diff --git a/src/Factory.php b/src/Factory.php index b5386c9..ec081dd 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -43,7 +43,7 @@ class Factory * Read a config from a file. * * @param string $filename - * @param boolean $returnConfigObject + * @param bool $returnConfigObject * @return array|Config * @throws Exception\InvalidArgumentException * @throws Exception\RuntimeException @@ -93,7 +93,7 @@ public static function fromFile($filename, $returnConfigObject = false) * Read configuration from multiple files and merge them. * * @param array $files - * @param boolean $returnConfigObject + * @param bool $returnConfigObject * @return array|Config */ public static function fromFiles(array $files, $returnConfigObject = false) diff --git a/src/Reader/ReaderInterface.php b/src/Reader/ReaderInterface.php index 4ecaf8d..e921cc0 100644 --- a/src/Reader/ReaderInterface.php +++ b/src/Reader/ReaderInterface.php @@ -29,7 +29,7 @@ public function fromFile($filename); * Read from a string and create an array * * @param string $string - * @return array|boolean + * @return array|bool */ public function fromString($string); } diff --git a/src/Writer/AbstractWriter.php b/src/Writer/AbstractWriter.php index e09ba73..08d82cd 100644 --- a/src/Writer/AbstractWriter.php +++ b/src/Writer/AbstractWriter.php @@ -28,7 +28,7 @@ abstract class AbstractWriter implements WriterInterface * @see WriterInterface::toFile() * @param string $filename * @param mixed $config - * @param boolean $exclusiveLock + * @param bool $exclusiveLock * @return void * @throws Exception\InvalidArgumentException * @throws Exception\RuntimeException diff --git a/src/Writer/Ini.php b/src/Writer/Ini.php index b641d62..e4ebdf3 100644 --- a/src/Writer/Ini.php +++ b/src/Writer/Ini.php @@ -74,7 +74,7 @@ public function setRenderWithoutSectionsFlags($withoutSections) /** * Return whether the writer should render without sections. * - * @return boolean + * @return bool */ public function shouldRenderWithoutSections() { diff --git a/src/Writer/WriterInterface.php b/src/Writer/WriterInterface.php index b81e961..102bcd7 100644 --- a/src/Writer/WriterInterface.php +++ b/src/Writer/WriterInterface.php @@ -22,7 +22,7 @@ interface WriterInterface * * @param string $filename * @param mixed $config - * @param boolean $exclusiveLock + * @param bool $exclusiveLock * @return void */ public function toFile($filename, $config, $exclusiveLock = true);