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