@@ -29,11 +29,16 @@ |
||
| 29 | 29 | return $source->withCode( |
| 30 | 30 | \preg_replace_callback( |
| 31 | 31 | $this->pattern, |
| 32 | - static function (array $matches) use ($context) { |
|
| 33 | - try { |
|
| 32 | + static function (array $matches) use ($context) |
|
| 33 | + { |
|
| 34 | + try |
|
| 35 | + { |
|
| 34 | 36 | return $context->resolveValue($matches['name']); |
| 35 | - } catch (ContextException $e) { |
|
| 36 | - if (isset($matches['default'])) { |
|
| 37 | + } |
|
| 38 | + catch (ContextException $e) |
|
| 39 | + { |
|
| 40 | + if (isset($matches['default'])) |
|
| 41 | + { |
|
| 37 | 42 | return $matches['default']; |
| 38 | 43 | } |
| 39 | 44 | |