| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* Reads frontend runtime options and normalizes malformed provider responses. |
| 9 |
*/ |
| 10 |
class ABJ_404_Solution_FrontendRuntimeOptions { |
| 11 |
|
| 12 |
/** |
| 13 |
* @param bool $skipDbCheck |
| 14 |
* @return array<string, mixed> |
| 15 |
*/ |
| 16 |
function get(bool $skipDbCheck = false): array { |
| 17 |
$options = abj_service('options_repository')->getOptions($skipDbCheck); |
| 18 |
return is_array($options) ? $options : array(); |
| 19 |
} |
| 20 |
} |
| 21 |
|