| Conditions | 5 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | protected function analyse(array $context) |
||
| 29 | { |
||
| 30 | $replace = []; |
||
| 31 | foreach ($context as $key => $val) { |
||
| 32 | if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) { |
||
| 33 | $replace['{' . $key . '}'] = $val; |
||
| 34 | } else { |
||
| 35 | $this->attach[$key] = $val; |
||
| 36 | } |
||
| 37 | } |
||
| 38 | return $replace; |
||
| 39 | } |
||
| 61 |