@@ -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(); |
@@ -33,6 +33,9 @@ |
||
| 33 | 33 | return $sortedIterator; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param \Traversable $iterator |
|
| 38 | + */ |
|
| 36 | 39 | protected function generateElement($key, $value, $iterator) |
| 37 | 40 | { |
| 38 | 41 | return (object) ['key' => $key, 'current' => $value]; |