| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 3 | public static function run(array $threads, callable $waitAll) |
|
| 12 | { |
||
| 13 | 3 | $request = new MultiRequestCore($threads, $waitAll); |
|
| 14 | 3 | $id = spl_object_hash($request); |
|
| 15 | 3 | self::$contexts[$id] = $request; |
|
| 16 | 3 | $oriId = self::$currentContext; |
|
| 17 | 3 | self::$currentContext = $id; |
|
| 18 | 3 | $request->run(); |
|
| 19 | 3 | self::$currentContext = $oriId; |
|
| 20 | 3 | return $request->getResults(); |
|
| 21 | } |
||
| 22 | |||
| 41 | } |