| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ConfigProvider |
||
| 11 | { |
||
| 12 | private const ROUTES_PREFIX = '/rest/v{version:1|2}'; |
||
| 13 | |||
| 14 | /** @var callable */ |
||
| 15 | private $loadConfig; |
||
| 16 | |||
| 17 | 2 | public function __construct(?callable $loadConfig = null) |
|
| 21 | 2 | }; |
|
| 22 | } |
||
| 23 | |||
| 24 | 2 | public function __invoke() |
|
| 28 | } |
||
| 29 | |||
| 30 | 2 | private function applyRoutesPrefix(array $config): array |
|
| 43 |