Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 7, 2014
1 parent ad1cacd commit 2f54ad0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/Collection/Iterator/NestIterator.php
Expand Up @@ -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
Expand Down Expand Up @@ -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());

Expand Down
2 changes: 1 addition & 1 deletion src/Collection/Iterator/TreeIterator.php
Expand Up @@ -32,7 +32,7 @@ class TreeIterator extends RecursiveIteratorIterator {
/**
* The iteration mode
*
* @car integer
* @var integer
*/
protected $_mode;

Expand Down

0 comments on commit 2f54ad0

Please sign in to comment.