Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
23 | 12 | protected function parseValue($value): string |
|
24 | { |
||
25 | 12 | $nesting_level = $this->templateKey ?: $this->getNestingLevel(); |
|
26 | |||
27 | 12 | $template_path = $this->getTemplatePath( |
|
28 | 12 | get_class($this->model). |
|
29 | 12 | ($nesting_level ? '.'.$nesting_level : '') |
|
30 | ); |
||
31 | |||
32 | 12 | return $this->translator->has($template_path) ? $this->translator->get( |
|
33 | 12 | $template_path, |
|
34 | 12 | $this->parseAttributesWithKeys($value) |
|
35 | 12 | ) : $this->model->getAttribute($value); |
|
36 | } |
||
37 | |||
50 |