Passed
Pull Request — master (#7)
by Yonel Ceruto
09:02
created
src/Type/Definition/ObjectDefinitionType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
             [
39 39
                 'name' => $definition->getName(),
40 40
                 'description' => $definition->getDescription(),
41
-                'fields' => function () {
41
+                'fields' => function() {
42 42
                     return $this->resolveFields();
43 43
                 },
44
-                'interfaces' => function () {
44
+                'interfaces' => function() {
45 45
                     return $this->resolveInterfaces();
46 46
                 },
47
-                'resolveField' => function ($root, array $args, $context, ResolveInfo $resolveInfo) {
47
+                'resolveField' => function($root, array $args, $context, ResolveInfo $resolveInfo) {
48 48
                     $resolver = new ObjectFieldResolver(
49 49
                         $this->container,
50 50
                         $this->endpoint,
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
                     return $resolver($root, $args, $context, $resolveInfo);
57 57
                 },
58
-                'isTypeOf' => function ($value, $context, ResolveInfo $info) {
58
+                'isTypeOf' => function($value, $context, ResolveInfo $info) {
59 59
                     //TODO: implement this
60 60
                 },
61 61
             ]
Please login to merge, or discard this patch.
src/Definition/Extension/RolesDefinitionExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             }
69 69
             $this->definitionVisited[$key] = true;
70 70
 
71
-            $type = $endpoint->hasType($definition->getType()) ? $endpoint->getType($definition->getType()): null;
71
+            $type = $endpoint->hasType($definition->getType()) ? $endpoint->getType($definition->getType()) : null;
72 72
 
73 73
             if (($roles = $definition->getRoles()) && !$this->authorizationChecker->isGranted($roles)) {
74 74
                 if ($parent) {
Please login to merge, or discard this patch.