Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
25 | 5 | public function handle($context, $options) |
|
26 | { |
||
27 | 5 | $options = isset($options['hash']) ? $options['hash'] : []; |
|
28 | 5 | $bundle = $this->defaultNamespace; |
|
29 | 5 | if (isset($options['bundle'])) { |
|
30 | 2 | $bundle = $options['bundle'].':'; |
|
31 | 2 | unset($options['bundle']); |
|
32 | } |
||
33 | |||
34 | 5 | $cmsKey = $bundle.$context; |
|
35 | |||
36 | 5 | $result = $this->translationHelper->handle($cmsKey, $options); |
|
37 | |||
38 | 5 | return $result; |
|
39 | } |
||
40 | } |
||
41 |