diff --git a/src/Collection/Iterator/NestIterator.php b/src/Collection/Iterator/NestIterator.php index 63a304992bc..2cda6ec0c23 100644 --- a/src/Collection/Iterator/NestIterator.php +++ b/src/Collection/Iterator/NestIterator.php @@ -18,11 +18,11 @@ use RecursiveIterator; /** - * A type of collection that is aweare of nested items and exposes methods to - * check or retreive them + * A type of collection that is aware of nested items and exposes methods to + * check or retrieve them * */ -class NestIterator extends Collection implements RecursiveIterator{ +class NestIterator extends Collection implements RecursiveIterator { /** * The name of the property that contains the nested items for each element @@ -54,12 +54,12 @@ public function getChildren() { } /** - * Returns true if there is an arary or a traversable object stored under the - * condifure nestKey for the current item + * Returns true if there is an array or a traversable object stored under the + * configured nestKey for the current item * * @return boolean */ - public function hasChildren () { + public function hasChildren() { $property = $this->_propertyExtractor($this->_nestKey); $children = $property($this->current()); diff --git a/src/Collection/Iterator/TreeIterator.php b/src/Collection/Iterator/TreeIterator.php index 1d9ad9d2eb5..11802965b0f 100644 --- a/src/Collection/Iterator/TreeIterator.php +++ b/src/Collection/Iterator/TreeIterator.php @@ -32,7 +32,7 @@ class TreeIterator extends RecursiveIteratorIterator { /** * The iteration mode * - * @car integer + * @var integer */ protected $_mode;