Conditions | 7 |
Paths | 5 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 56 |
Changes | 0 |
1 | <?php |
||
34 | public function render(): ?array |
||
35 | { |
||
36 | if ($this->arguments['type'] === 'cache') { |
||
37 | |||
38 | if (isset($this->arguments['identifier']) && '' !== $this->arguments['identifier']) { |
||
39 | return $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$this->arguments['identifier']]; |
||
40 | } |
||
41 | |||
42 | return $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']; |
||
43 | } |
||
44 | |||
45 | if ($this->arguments['type'] === 'session') { |
||
46 | |||
47 | if (isset($this->arguments['identifier']) && '' !== $this->arguments['identifier']) { |
||
48 | return $GLOBALS['TYPO3_CONF_VARS']['SYS']['session'][$this->arguments['identifier']]; |
||
49 | } |
||
50 | |||
51 | return $GLOBALS['TYPO3_CONF_VARS']['SYS']['session']; |
||
52 | } |
||
53 | |||
54 | return null; |
||
55 | } |
||
56 | } |
||
57 |