| Total Complexity | 12 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | final class ConfigProvider implements ConfigProviderInterface |
||
| 10 | { |
||
| 11 | 1 | public function getLogFilePath(): string |
|
| 12 | { |
||
| 13 | 1 | return $_ENV['LOG_PATH'] ?? ''; |
|
| 14 | } |
||
| 15 | |||
| 16 | 1 | public function getJwtSecret(): string |
|
| 17 | { |
||
| 18 | 1 | return $_ENV['JWT_SECRET'] ?? ''; |
|
| 19 | } |
||
| 20 | |||
| 21 | 1 | public function getCookieName(): string |
|
| 22 | { |
||
| 23 | 1 | return $_ENV['TOKEN_NAME'] ?? 'nekot'; |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | public function getTokenLifetime(): int |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function getLogLevel(): string |
|
| 32 | { |
||
| 33 | 1 | return $_ENV['LOG_LEVEL'] ?? LogLevel::ERROR; |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | public function getCorsOrigin(): string |
|
| 37 | { |
||
| 38 | 1 | return $_ENV['CORS_ORIGIN'] ?? ''; |
|
| 39 | } |
||
| 40 | |||
| 41 | 4 | public function getApiBasePath(): string |
|
| 44 | } |
||
| 45 | |||
| 46 | 1 | public function getAssetPath(): string |
|
| 49 | } |
||
| 50 | |||
| 51 | 3 | public function getBaseUrl(): string |
|
| 78 |