| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public static function all() |
||
| 24 | { |
||
| 25 | $regionPathPattern = __DIR__ . '/Region/*'; |
||
| 26 | $availableRegions = glob($regionPathPattern, GLOB_ONLYDIR); |
||
| 27 | |||
| 28 | $output = []; |
||
| 29 | if ($availableRegions !== false) { |
||
| 30 | $output = array_map(function($regionPath) { |
||
| 31 | return substr($regionPath, strrpos($regionPath, DIRECTORY_SEPARATOR) + 1); |
||
| 32 | }, $availableRegions); |
||
| 33 | } |
||
| 34 | |||
| 35 | return $output; |
||
| 36 | } |
||
| 38 |