Conditions | 4 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4.5923 |
Changes | 0 |
1 | <?php |
||
42 | 26 | public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
|
43 | { |
||
44 | 26 | $content = ''; |
|
45 | 26 | $resultSet = self::getUsedSearchResultSetFromRenderingContext($renderingContext); |
|
46 | 26 | if (!empty($GLOBALS['TSFE']->beUserLogin) && $resultSet && $resultSet->getUsedSearch() !== null) { |
|
47 | 2 | $content = '<br><strong>Parsed Query:</strong><br>' . $resultSet->getUsedSearch()->getDebugResponse()->parsedquery; |
|
48 | } |
||
49 | 26 | return $content; |
|
50 | } |
||
51 | } |
||
52 |