Passed
Pull Request — master (#9)
by Rafael
03:29
created
src/Model/UpdateNodePayload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     /**
66 66
      * @return null|string
67 67
      */
68
-    public function getClientMutationId():?string
68
+    public function getClientMutationId(): ?string
69 69
     {
70 70
         return $this->clientMutationId;
71 71
     }
Please login to merge, or discard this patch.
src/Definition/ExecutableDefinitionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     /**
21 21
      * {@inheritDoc}
22 22
      */
23
-    public function getResolver():?string;
23
+    public function getResolver(): ?string;
24 24
 
25 25
     /**
26 26
      * {@inheritDoc}
Please login to merge, or discard this patch.
src/Definition/Loader/Annotation/ObjectTypeAnnotationParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@
 block discarded – undo
291 291
         //sort by priority
292 292
         usort(
293 293
             $decorators,
294
-            function ($service1, $service2) {
294
+            function($service1, $service2) {
295 295
                 list($priority1) = $service1;
296 296
                 list($priority2) = $service2;
297 297
 
Please login to merge, or discard this patch.
src/Definition/Loader/AnnotationLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         //sort by priority
78 78
         usort(
79 79
             $resolvers,
80
-            function ($service1, $service2) {
80
+            function($service1, $service2) {
81 81
                 list($priority1) = $service1;
82 82
                 list($priority2) = $service2;
83 83
 
Please login to merge, or discard this patch.
src/Definition/Extension/MutationFormResolverExtension.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/Definition/Extension/PaginationDefinitionExtension.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,15 +65,15 @@
 block discarded – undo
65 65
 
66 66
         /** @var NodeBuilder $rootNode */
67 67
         $config->scalarNode('target')
68
-               ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions')
69
-               ->isRequired();
68
+                ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions')
69
+                ->isRequired();
70 70
         $config->integerNode('limit')->info('Max number of records allowed for first & last')->defaultValue($this->limit);
71 71
         $config->scalarNode('parent_field')
72
-               ->info('When is used in sub-fields should be the field to filter by parent instance');
72
+                ->info('When is used in sub-fields should be the field to filter by parent instance');
73 73
         $config->enumNode('parent_relation')
74
-               ->info('When is used in sub-fields should be the type of relation with the parent field')
75
-               ->defaultValue(self::ONE_TO_MANY)
76
-               ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]);
74
+                ->info('When is used in sub-fields should be the type of relation with the parent field')
75
+                ->defaultValue(self::ONE_TO_MANY)
76
+                ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]);
77 77
     }
78 78
 
79 79
     /**
Please login to merge, or discard this patch.
src/Definition/Registry/Endpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      *
82 82
      * @return null|string
83 83
      */
84
-    public function getClassForType(string $type):?string
84
+    public function getClassForType(string $type): ?string
85 85
     {
86 86
         if (isset($this->typeMap[$type])) {
87 87
             return $this->typeMap[$type];
Please login to merge, or discard this patch.
src/Query/Node/AllNodesWithPagination.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,10 +129,10 @@
 block discarded – undo
129 129
         $paramName = 'root'.mt_rand();
130 130
         if ($this->queryDefinition->getMeta('pagination')['parent_relation'] === PaginationDefinitionExtension::MANY_TO_MANY) {
131 131
             $qb->andWhere(sprintf(':%s MEMBER OF %s.%s', $paramName, $this->queryAlias, $parentField))
132
-               ->setParameter($paramName, $root);
132
+                ->setParameter($paramName, $root);
133 133
         } else {
134 134
             $qb->andWhere(sprintf('%s.%s = :%s', $this->queryAlias, $parentField, $paramName))
135
-               ->setParameter($paramName, $root);
135
+                ->setParameter($paramName, $root);
136 136
         }
137 137
     }
138 138
 }
Please login to merge, or discard this patch.
src/Pagination/DoctrineOffsetCursorPaginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
         $cursorOffset = $offset - 1;
46 46
         foreach ($results as $result) {
47
-            $cursorOffset ++;
47
+            $cursorOffset++;
48 48
 
49 49
             if (!$this->connection->getPageInfo()->getStartCursor()) {
50 50
                 $this->connection->getPageInfo()->setStartCursor($this->encodeCursor($offset));
Please login to merge, or discard this patch.