| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public static function renderComponent($output, $componentName, $componentData) |
||
| 16 | { |
||
| 17 | if (is_null($output)) { |
||
| 18 | $componentManager = ComponentManager::getInstance(); |
||
| 19 | $filePath = $componentManager->getComponentFilePath($componentName); |
||
| 20 | $output = self::renderFile($componentData, $filePath); |
||
| 21 | } |
||
| 22 | return $output; |
||
| 23 | } |
||
| 50 |