Completed
Pull Request — master (#3)
by
unknown
02:55
created
src/DefaultFieldResolver.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,9 @@
 block discarded – undo
72 72
     {
73 73
         $class = new ReflectionClass($source);
74 74
 
75
-        if (!preg_match('~^(is|has)[A-Z]~', $name) ||  !$class->hasMethod($name))
76
-            $name = 'get' . ucfirst($name);
75
+        if (!preg_match('~^(is|has)[A-Z]~', $name) ||  !$class->hasMethod($name)) {
76
+                    $name = 'get' . ucfirst($name);
77
+        }
77 78
 
78 79
         if ($class->hasMethod($name)) {
79 80
             $method = $class->getMethod($name);
Please login to merge, or discard this patch.