| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | |||
| 24 | protected function isReplacedObj($val): bool |
||
| 25 | { |
||
| 26 | return !is_array($val) && (!is_object($val) |
||
| 27 | || method_exists($val, '__toString')) && (!$val instanceof Throwable); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function interpolate(string $message, array $context, array $attribute) |
||
| 31 | { |
||
| 32 | $replace = []; |
||
| 33 | $attribute = array_merge($this->attribute, $attribute); |
||
| 34 | foreach ($attribute as $key => $val) { |
||
| 35 | $replace['%' . $key . '%'] = $val; |
||
| 36 | } |
||
| 63 |