@@ -21,7 +21,7 @@ discard block  | 
                                                    ||
| 21 | 21 | private $fn_cnt = 0;  | 
                                                        
| 22 | 22 | |
| 23 | 23 | /**  | 
                                                        
| 24 | - * @return \Spindle\Collection  | 
                                                        |
| 24 | + * @return Collection  | 
                                                        |
| 25 | 25 | */  | 
                                                        
| 26 | 26 | public static function from($iterable, $debug = null)  | 
                                                        
| 27 | 27 |      { | 
                                                        
@@ -34,7 +34,7 @@ discard block  | 
                                                    ||
| 34 | 34 | * @param int|string $end  | 
                                                        
| 35 | 35 | * @param int $step  | 
                                                        
| 36 | 36 | * @param bool $debug  | 
                                                        
| 37 | - * @return \Spindle\Collection  | 
                                                        |
| 37 | + * @return Collection  | 
                                                        |
| 38 | 38 | */  | 
                                                        
| 39 | 39 | public static function range($start, $end, $step = 1, $debug = null)  | 
                                                        
| 40 | 40 |      { | 
                                                        
@@ -80,6 +80,7 @@ discard block  | 
                                                    ||
| 80 | 80 | |
| 81 | 81 | /**  | 
                                                        
| 82 | 82 | * @param iterable $seed  | 
                                                        
| 83 | + * @param string $type  | 
                                                        |
| 83 | 84 | */  | 
                                                        
| 84 | 85 | public function __construct($seed, $debug = null, $type = null)  | 
                                                        
| 85 | 86 |      { | 
                                                        
@@ -146,7 +147,7 @@ discard block  | 
                                                    ||
| 146 | 147 | }  | 
                                                        
| 147 | 148 | |
| 148 | 149 | /**  | 
                                                        
| 149 | - * @return \Spindle\Collection (new instance)  | 
                                                        |
| 150 | + * @return Collection (new instance)  | 
                                                        |
| 150 | 151 | */  | 
                                                        
| 151 | 152 | public function flip()  | 
                                                        
| 152 | 153 |      { | 
                                                        
@@ -262,6 +263,11 @@ discard block  | 
                                                    ||
| 262 | 263 | ];  | 
                                                        
| 263 | 264 | }  | 
                                                        
| 264 | 265 | |
| 266 | + /**  | 
                                                        |
| 267 | + * @param string $_code  | 
                                                        |
| 268 | + * @param string $_before  | 
                                                        |
| 269 | + * @param string $_after  | 
                                                        |
| 270 | + */  | 
                                                        |
| 265 | 271 | private static function evaluate($_seed, $_vars, $_code, $_before, $_after)  | 
                                                        
| 266 | 272 |      { | 
                                                        
| 267 | 273 |          $_old_handler = set_error_handler(function($severity, $message, $file, $line){ | 
                                                        
@@ -38,7 +38,7 @@  | 
                                                    ||
| 38 | 38 | |
| 39 | 39 | /**  | 
                                                        
| 40 | 40 | * @param string|callable $fn '$_carry + $_'  | 
                                                        
| 41 | - * @param mixed $initial  | 
                                                        |
| 41 | + * @param integer $initial  | 
                                                        |
| 42 | 42 | * @return mixed  | 
                                                        
| 43 | 43 | */  | 
                                                        
| 44 | 44 | public function reduce($fn, $initial = null)  | 
                                                        
@@ -42,7 +42,7 @@  | 
                                                    ||
| 42 | 42 | public function usortStable(callable $cmp)  | 
                                                        
| 43 | 43 |      { | 
                                                        
| 44 | 44 |          $array = $this->map('[$_, $_i]')->toArray(); | 
                                                        
| 45 | -        usort($array, static function ($a, $b) use ($cmp) { | 
                                                        |
| 45 | +        usort($array, static function($a, $b) use ($cmp) { | 
                                                        |
| 46 | 46 | return $cmp($a[0], $b[0]) ?: ($a[1] - $b[1]);  | 
                                                        
| 47 | 47 | });  | 
                                                        
| 48 | 48 | $sorted = new $this($array, $this->debug);  |