| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | protected static function cacheMany($currentData, $many) |
||
| 7 | { |
||
| 8 | if (empty($currentData)) { |
||
| 9 | $currentData = $many(); |
||
| 10 | } else { |
||
| 11 | foreach ($many() as $point => $tracks) { |
||
| 12 | $currentData = self::cacheOne($currentData, $point, function () use ($tracks) { |
||
| 13 | return $tracks; |
||
| 14 | }); |
||
| 15 | } |
||
| 16 | } |
||
| 17 | |||
| 18 | return $currentData; |
||
| 19 | } |
||
| 20 | |||
| 42 |