| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 2 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 21 | 1 | public function __invoke($count, $function /*, $context */)  | 
            |
| 22 |     { | 
            ||
| 23 | // Context switching is possible in PHP 5.4 by using Closure::bind.  | 
            ||
| 24 | |||
| 25 | 1 | $results = [];  | 
            |
| 26 | 1 |         for ($i = 0; $i < $count; $i++) { | 
            |
| 27 | 1 | $results[] = $function($i);  | 
            |
| 28 | }  | 
            ||
| 29 | |||
| 30 | 1 | return new Underscore(new Collection($results));  | 
            |
| 31 | }  | 
            ||
| 32 | }  | 
            ||
| 33 |