| Total Complexity | 7 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Defaults |
||
| 8 | { |
||
| 9 | public static function init() |
||
| 13 | } |
||
| 14 | |||
| 15 | public static function renderComponent($output, $componentName, $componentData) |
||
| 23 | } |
||
| 24 | |||
| 25 | public static function loadFunctionsFile($componentName) |
||
| 26 | { |
||
| 27 | $componentManager = ComponentManager::getInstance(); |
||
| 28 | $functionsFilePath = $componentManager->getComponentFilePath($componentName, 'functions.php'); |
||
| 29 | if (false !== $functionsFilePath) { |
||
| 30 | require_once $functionsFilePath; |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | protected static function renderFile($componentData, $filePath) |
||
| 48 | } |
||
| 49 | } |
||
| 50 |