| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Init |
||
| 12 | { |
||
| 13 | public static function initTheme() |
||
| 22 | } |
||
| 23 | |||
| 24 | public static function loadComponents() |
||
| 25 | { |
||
| 26 | $basePath = get_template_directory() . '/Components'; |
||
| 27 | Api::registerComponentsFromPath($basePath); |
||
| 28 | do_action('Flynt/afterRegisterComponents'); |
||
| 29 | } |
||
| 30 | |||
| 31 | public static function checkRequiredPlugins() |
||
| 47 | } |
||
| 48 | |||
| 49 | protected static function notifyRequiredPluginIsMissing($pluginName) |
||
| 62 | } |
||
| 63 | } |
||
| 64 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.