Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
60 | private function getReplacingAttributes(array $variables = []) |
||
61 | { |
||
62 | $attributes = $this->getVariables(); |
||
63 | |||
64 | $values = []; |
||
65 | |||
66 | foreach ($variables as $variable) { |
||
67 | $values[self::VARIABLE_OPENING . $variable . self::VARIABLE_CLOSING] = |
||
68 | ($attributes[$variable] ?? $variable); |
||
69 | } |
||
70 | |||
71 | return $values; |
||
72 | } |
||
73 | } |
||
74 |