Passed
Pull Request — master (#842)
by butschster
16:08 queued 18s
created
src/Views/src/Processor/ContextProcessor.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
             \preg_replace_callback(
31 31
                 $this->pattern,
32 32
                 static function (array $matches) use ($context) {
33
-                    try {
33
+                    try{
34 34
                         return $context->resolveValue($matches['name']);
35
-                    } catch (ContextException $e) {
36
-                        if (isset($matches['default'])) {
35
+                    }catch (ContextException $e){
36
+                        if (isset($matches['default'])){
37 37
                             return $matches['default'];
38 38
                         }
39 39
 
Please login to merge, or discard this patch.
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,11 +29,16 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.