Passed
Push — master ( 319fcb...7a107a )
by Rafael
04:41
created
src/DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                           ->useAttributeAsKey('name')
46 46
                           ->validate()
47 47
                           ->ifTrue(
48
-                              function ($v) {
48
+                              function($v) {
49 49
                                   return array_key_exists('default', $v);
50 50
                               }
51 51
                           )->thenInvalid('"default" can\'t be used as endpoint name, the system internally use this endpoint name to store the entire schema.')
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                   ->beforeNormalization()
58 58
                   ->ifString()
59 59
                   ->then(
60
-                      function ($v) {
60
+                      function($v) {
61 61
                           return preg_split('/\s*,\s*/', $v);
62 62
                       }
63 63
                   )
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
              ->beforeNormalization()
75 75
              ->ifString()
76 76
              ->then(
77
-                 function ($v) {
77
+                 function($v) {
78 78
                      return preg_split('/\s*,\s*/', $v);
79 79
                  }
80 80
              )
Please login to merge, or discard this patch.
src/Behat/GraphQLApiExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function __construct(ServiceProcessor $processor = null)
44 44
     {
45
-        $this->processor = $processor ? : new ServiceProcessor();
45
+        $this->processor = $processor ?: new ServiceProcessor();
46 46
     }
47 47
 
48 48
     public function getConfigKey()
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                   ->beforeNormalization()
80 80
                   ->ifString()
81 81
                   ->then(
82
-                      function ($v) {
82
+                      function($v) {
83 83
                           return preg_split('/\s*,\s*/', $v);
84 84
                       }
85 85
                   )
Please login to merge, or discard this patch.
src/Type/Definition/ObjectDefinitionType.php 1 patch
Spacing   +6 added lines, -6 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
             ]
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         $fields = [];
68 68
         foreach ($this->definition->getFields() as $fieldDefinition) {
69 69
             try {
70
-                if (!$fieldDefinition->getType()){
71
-                    print_r($fieldDefinition);exit;
70
+                if (!$fieldDefinition->getType()) {
71
+                    print_r($fieldDefinition); exit;
72 72
                 }
73 73
                 $type = TypeRegistry::get($fieldDefinition->getType());
74 74
             } catch (\UnexpectedValueException $exception) {
Please login to merge, or discard this patch.
src/Mutation/AbstractMutationResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         if ($formBuilder) {
44 44
             $formBuilder->addEventListener(
45 45
                 FormEvents::SUBMIT,
46
-                function (FormEvent $event) use (&$mutationEvent) {
46
+                function(FormEvent $event) use (&$mutationEvent) {
47 47
                     if ($this->eventDispatcher) {
48 48
                         $mutationEvent = new GraphQLMutationEvent($this->context, $event);
49 49
                         $this->eventDispatcher->dispatch(GraphQLEvents::MUTATION_SUBMITTED, $mutationEvent);
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
 
54 54
             $formBuilder->addEventSubscriber($this);
55 55
 
56
-            $extensionExecutor = function ($method) {
57
-                return function (FormEvent $event) use ($method) {
56
+            $extensionExecutor = function($method) {
57
+                return function(FormEvent $event) use ($method) {
58 58
                     foreach ($this->extensions as $extension) {
59 59
                         return call_user_func_array([$extension, $method], [$event]);
60 60
                     }
Please login to merge, or discard this patch.