Passed
Push — master ( 46c3ee...445208 )
by Rafael
04:28
created
src/Query/Node/AllNodesWithPagination.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,10 +207,10 @@
 block discarded – undo
207 207
         $paramName = 'root'.mt_rand();
208 208
         if ($this->queryDefinition->getMeta('pagination')['parent_relation'] === PaginationDefinitionPlugin::MANY_TO_MANY) {
209 209
             $qb->andWhere(sprintf(':%s MEMBER OF %s.%s', $paramName, $this->queryAlias, $parentField))
210
-               ->setParameter($paramName, $root);
210
+                ->setParameter($paramName, $root);
211 211
         } else {
212 212
             $qb->andWhere(sprintf('%s.%s = :%s', $this->queryAlias, $parentField, $paramName))
213
-               ->setParameter($paramName, $root);
213
+                ->setParameter($paramName, $root);
214 214
         }
215 215
     }
216 216
 }
Please login to merge, or discard this patch.
src/Definition/Plugin/MutationFormResolverPlugin.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -67,22 +67,22 @@
 block discarded – undo
67 67
             ->children();
68 68
 
69 69
         $config->variableNode('type')
70
-               ->defaultNull()
71
-               ->info(
72
-                   'Specify the form type to use,
70
+                ->defaultNull()
71
+                ->info(
72
+                    'Specify the form type to use,
73 73
 [string] Name of the form type to use
74 74
 [true|null] The form will be automatically resolved to ...Bundle\Form\Input\{Node}\{MutationName}Input.
75 75
 [true] Throw a exception if the form can`t be located
76 76
 [false] The form is not required and should not be resolved'
77
-               );
77
+                );
78 78
         $config->variableNode('options')->defaultValue([])->info('Form options');
79 79
         $config->variableNode('argument')
80
-               ->defaultValue('input')
81
-               ->info('Name of the argument to use as input');
80
+                ->defaultValue('input')
81
+                ->info('Name of the argument to use as input');
82 82
 
83 83
         $config->booleanNode('client_mutation_id')
84
-               ->defaultTrue()
85
-               ->info('Automatically add a field called clientMutationId');
84
+                ->defaultTrue()
85
+                ->info('Automatically add a field called clientMutationId');
86 86
     }
87 87
 
88 88
     /**
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.
src/Cache/DefinitionCacheWarmer.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,9 +103,9 @@
 block discarded – undo
103 103
 
104 104
         /** @var iterable $files */
105 105
         $files = Finder::create()
106
-                       ->in($dirs)
107
-                       ->date(sprintf('>= %s', date('Y-m-d H:i:s', $controlTime)))
108
-                       ->files();
106
+                        ->in($dirs)
107
+                        ->date(sprintf('>= %s', date('Y-m-d H:i:s', $controlTime)))
108
+                        ->files();
109 109
 
110 110
         //exist at least one modified file
111 111
         foreach ($files as $file) {
Please login to merge, or discard this patch.
src/Type/Definition/InterfaceDefinitionType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
             [
44 44
                 'name' => $definition->getName(),
45 45
                 'description' => $definition->getDescription(),
46
-                'fields' => function () use ($definition) {
46
+                'fields' => function() use ($definition) {
47 47
                     return GraphQLBuilder::resolveFields($definition);
48 48
                 },
49
-                'resolveType' => function ($value) {
49
+                'resolveType' => function($value) {
50 50
                     return TypeUtil::resolveObjectType($this->endpoint, $value);
51 51
                 },
52 52
             ]
Please login to merge, or discard this patch.
src/Definition/Registry/Endpoint.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      *
83 83
      * @return null|string
84 84
      */
85
-    public function getClassForType(string $type):?string
85
+    public function getClassForType(string $type): ?string
86 86
     {
87 87
         if (isset($this->typeMap[$type])) {
88 88
             return $this->typeMap[$type];
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     {
111 111
         $types = array_filter(
112 112
             $this->typeMap,
113
-            function ($val) use ($class) {
113
+            function($val) use ($class) {
114 114
                 return $val === $class;
115 115
             }
116 116
         );
Please login to merge, or discard this patch.
src/Command/SchemaExportCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@
 block discarded – undo
42 42
     protected function configure()
43 43
     {
44 44
         $this->setName('graphql:schema:export')
45
-             ->setDescription('Export your schema.')
46
-             ->addOption('endpoint', null, InputOption::VALUE_REQUIRED, 'Name of the endpoint to export', DefinitionRegistry::DEFAULT_ENDPOINT)
47
-             ->addOption('output', 'o', InputOption::VALUE_REQUIRED, 'Name of the file to save the schema, e.i. schema.graphql or schema.json')
48
-             ->addOption('json', null, InputOption::VALUE_NONE, 'Create json output, automatically used if the output contains json extension');
45
+                ->setDescription('Export your schema.')
46
+                ->addOption('endpoint', null, InputOption::VALUE_REQUIRED, 'Name of the endpoint to export', DefinitionRegistry::DEFAULT_ENDPOINT)
47
+                ->addOption('output', 'o', InputOption::VALUE_REQUIRED, 'Name of the file to save the schema, e.i. schema.graphql or schema.json')
48
+                ->addOption('json', null, InputOption::VALUE_NONE, 'Create json output, automatically used if the output contains json extension');
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
src/Command/SchemaSnapshotCommand.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@
 block discarded – undo
57 57
     protected function configure()
58 58
     {
59 59
         $this->setName('graphql:schema:snapshot')
60
-             ->setDescription('Create a snapshot of your schema to compare using behat tests.')
61
-             ->addOption('endpoint', null, InputOption::VALUE_REQUIRED, 'Name of the endpoint to export', DefinitionRegistry::DEFAULT_ENDPOINT)
62
-             ->addOption('all', 'a', InputOption::VALUE_NONE, 'Create snapshot for all registered endpoints')
63
-             ->addOption('strict', null, InputOption::VALUE_NONE, 'When use strict mode the snapshot must be updated every time your schema change')
64
-             ->addOption('features', null, InputOption::VALUE_REQUIRED, 'Path where should be located the generated features and fixtures');
60
+                ->setDescription('Create a snapshot of your schema to compare using behat tests.')
61
+                ->addOption('endpoint', null, InputOption::VALUE_REQUIRED, 'Name of the endpoint to export', DefinitionRegistry::DEFAULT_ENDPOINT)
62
+                ->addOption('all', 'a', InputOption::VALUE_NONE, 'Create snapshot for all registered endpoints')
63
+                ->addOption('strict', null, InputOption::VALUE_NONE, 'When use strict mode the snapshot must be updated every time your schema change')
64
+                ->addOption('features', null, InputOption::VALUE_REQUIRED, 'Path where should be located the generated features and fixtures');
65 65
     }
66 66
 
67 67
     /**
Please login to merge, or discard this patch.
src/Behat/Client/GraphQLClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
     public function sendRequest($method, $uri, array $parameters = [], array $files = [], array $server = [], $content = null, $changeHistory = true)
240 240
     {
241 241
         set_error_handler(
242
-            function ($level, $message, $errFile, $errLine) {
242
+            function($level, $message, $errFile, $errLine) {
243 243
                 if ($this->deprecationAdviser) {
244 244
                     $this->deprecationAdviser->addWarning($message, $errFile, $errLine);
245 245
                 }
Please login to merge, or discard this patch.