@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | /** |
| 134 | 134 | * Easy access iterator apply for processing an entire file. |
| 135 | 135 | * |
| 136 | - * @param Iterator $input [description] |
|
| 136 | + * @param \Iterator $input [description] |
|
| 137 | 137 | * @param callable $callback [description] |
| 138 | 138 | */ |
| 139 | 139 | public function process(\Iterator $input, callable $callback) |
@@ -169,8 +169,6 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * File comparison |
| 171 | 171 | * |
| 172 | - * @param string $filename |
|
| 173 | - * The file to check against. |
|
| 174 | 172 | * |
| 175 | 173 | * @return bool |
| 176 | 174 | * True if the contents of this file matches the contents of $filename. |
@@ -16,6 +16,9 @@ |
||
| 16 | 16 | self::$root = $root; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @param string $path |
|
| 21 | + */ |
|
| 19 | 22 | protected static function getRootedPath($path) |
| 20 | 23 | { |
| 21 | 24 | // Avoid infinite recursion. |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | parent::__construct($this->getSortedIterator($iterator)); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param \Traversable $iterator |
|
| 32 | + */ |
|
| 30 | 33 | public function getSortedIterator($iterator) |
| 31 | 34 | { |
| 32 | 35 | $sortedIterator = new \ArrayIterator(); |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | return $iterator->current(); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @return string |
|
| 45 | + */ |
|
| 43 | 46 | public static function reduce(\Traversable $iterator, callable $callback, $initial = null) |
| 44 | 47 | { |
| 45 | 48 | $callback = \Closure::fromCallable($callback); |
@@ -12,6 +12,9 @@ |
||
| 12 | 12 | parent::__construct($this->getShuffledIterator($iterator)); |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param \Traversable $iterator |
|
| 17 | + */ |
|
| 15 | 18 | public function getShuffledIterator($iterator) |
| 16 | 19 | { |
| 17 | 20 | $sortedIterator = new \ArrayIterator(); |