| Conditions | 5 |
| Paths | 5 |
| Total Lines | 22 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | private function processProperty($property, array $options) |
||
| 45 | { |
||
| 46 | if (null === $property) { |
||
| 47 | return null; |
||
| 48 | } |
||
| 49 | |||
| 50 | if ($property instanceof MetadataInterface) { |
||
| 51 | $this->process($property, $options); |
||
| 52 | |||
| 53 | return $property; |
||
| 54 | } |
||
| 55 | |||
| 56 | if (is_array($property)) { |
||
| 57 | foreach ($property as $key => &$value) { |
||
| 58 | $value = $this->processProperty($value, $options); |
||
| 59 | } |
||
| 60 | |||
| 61 | return $property; |
||
| 62 | } |
||
| 63 | |||
| 64 | return $this->twig->createTemplate((string) $property)->render($options); |
||
| 65 | } |
||
| 66 | } |
||
| 67 |