Passed
Push — master ( ba1565...df9a93 )
by Rafael
06:12
created
src/Query/Node/Nodes.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@
 block discarded – undo
84 84
 
85 85
                 $qb = $repo->createQueryBuilder('o', $findBy);
86 86
                 $entities = $qb->where($qb->expr()->in($findBy, $searchValues))
87
-                               ->getQuery()
88
-                               ->getResult();
87
+                                ->getQuery()
88
+                                ->getResult();
89 89
 
90 90
                 foreach ($entities as $searchValue => $entity) {
91 91
                     $expectedResultsOrder[md5($type.$searchValue)] = $entity;
Please login to merge, or discard this patch.
src/Resolver/DeferredBuffer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@
 block discarded – undo
92 92
             $repo = $this->registry->getRepository($class);
93 93
             $qb = $repo->createQueryBuilder('o', 'o.id');
94 94
             $entities = $qb->where($qb->expr()->in('o.id', $ids))
95
-                           ->getQuery()
96
-                           ->getResult();
95
+                            ->getQuery()
96
+                            ->getResult();
97 97
             self::$deferred[$class] = $entities;
98 98
         }
99 99
     }
Please login to merge, or discard this patch.
src/Resolver/ObjectFieldResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
             $this->deferredBuffer->add($value);
119 119
 
120 120
             return new Deferred(
121
-                function () use ($value) {
121
+                function() use ($value) {
122 122
                     $this->deferredBuffer->loadBuffer();
123 123
 
124 124
                     return $this->deferredBuffer->getLoadedEntity($value);
Please login to merge, or discard this patch.
Loader/Annotation/FieldDecorator/DoctrineFieldDefinitionDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
      *
113 113
      * @return string
114 114
      */
115
-    protected function getGraphQLType(?string $type):?string
115
+    protected function getGraphQLType(?string $type): ?string
116 116
     {
117 117
         switch ($type) {
118 118
             case DoctrineType::BOOLEAN:
Please login to merge, or discard this patch.
src/Definition/Traits/DeprecateTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * @return string
47 47
      */
48
-    public function getDeprecationReason():?string
48
+    public function getDeprecationReason(): ?string
49 49
     {
50 50
         return $this->deprecationReason;
51 51
     }
Please login to merge, or discard this patch.
src/Definition/DeprecateInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * @return string
28 28
      */
29
-    public function getDeprecationReason():?string;
29
+    public function getDeprecationReason(): ?string;
30 30
 
31 31
     /**
32 32
      * @return bool
Please login to merge, or discard this patch.
src/Util/GraphQLBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         }
54 54
 
55 55
         if (is_numeric($complexity)) {
56
-            return function ($childrenComplexity) use ($complexity) {
56
+            return function($childrenComplexity) use ($complexity) {
57 57
                 return $childrenComplexity + $complexity;
58 58
             };
59 59
         }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
         $el = new ExpressionLanguage();
67 67
 
68
-        return function ($childrenComplexity, $args) use ($el, $complexity) {
68
+        return function($childrenComplexity, $args) use ($el, $complexity) {
69 69
             return $el->evaluate($complexity, array_merge($args, ['children_complexity' => $childrenComplexity]));
70 70
         };
71 71
     }
Please login to merge, or discard this patch.
src/Type/Definition/InputObjectDefinitionType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,10 +47,10 @@
 block discarded – undo
47 47
             [
48 48
                 'name' => $definition->getName(),
49 49
                 'description' => $definition->getDescription(),
50
-                'fields' => function () {
50
+                'fields' => function() {
51 51
                     return $this->resolveFields();
52 52
                 },
53
-                'resolveField' => function ($root, array $args, $context, ResolveInfo $resolveInfo) {
53
+                'resolveField' => function($root, array $args, $context, ResolveInfo $resolveInfo) {
54 54
                     $resolver = new ObjectFieldResolver(
55 55
                         $this->container,
56 56
                         $this->endpoint,
Please login to merge, or discard this patch.
src/Test/ApiTestCase.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
 
260 260
             /** @var Response $response */
261 261
             $response = static::getClient()->getResponse();
262
-            $bg = $response->getStatusCode() >= 400 ? 41: 42;
262
+            $bg = $response->getStatusCode() >= 400 ? 41 : 42;
263 263
             print_r("\033[{$bg}m-------------------- RESPONSE ----------------------\n\n\033[0m");
264 264
             print_r(sprintf("STATUS: [%s] %s \n", $response->getStatusCode(), Response::$statusTexts[$response->getStatusCode()] ?? 'Unknown Status'));
265 265
             print_r(sprintf("TIME: %s ms \n\n", self::$lastQueryExecutionTime));
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -216,10 +216,10 @@
 block discarded – undo
216 216
 
217 217
         if (!$node instanceof NodeInterface) {
218 218
             $nodeClass = static::getClient()
219
-                               ->getContainer()
220
-                               ->get(DefinitionRegistry::class)
221
-                               ->getEndpoint()
222
-                               ->getClassForType($nodeType);
219
+                                ->getContainer()
220
+                                ->get(DefinitionRegistry::class)
221
+                                ->getEndpoint()
222
+                                ->getClassForType($nodeType);
223 223
 
224 224
             $node = self::getDoctrine()->getEntityManager()->getReference($nodeClass, $node);
225 225
         }
Please login to merge, or discard this patch.