Passed
Push — master ( 0b86b2...26cfdb )
by Rafael
13:17
created
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/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.
src/Behat/GraphQLApiExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function __construct(ServiceProcessor $processor = null)
40 40
     {
41
-        $this->processor = $processor ? : new ServiceProcessor();
41
+        $this->processor = $processor ?: new ServiceProcessor();
42 42
     }
43 43
 
44 44
     public function getConfigKey()
Please login to merge, or discard this patch.
src/Behat/Transformer/TransformPystringToYamlstring.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         //parse
64 64
         array_walk_recursive(
65 65
             $parsedValue,
66
-            function (&$value) use ($definitionCall, $argumentIndex) {
66
+            function(&$value) use ($definitionCall, $argumentIndex) {
67 67
                 foreach ($this->transformers as $transformer) {
68 68
                     if ($transformer->supportsDefinitionAndArgument($definitionCall, $argumentIndex, $value)) {
69 69
                         $value = $transformer->transformArgument($definitionCall, $argumentIndex, $value);
Please login to merge, or discard this patch.
src/Behat/Transformer/ExpressionLanguage/JMESPathSearchProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
         if (preg_match('/search\(/', $expression)) {
31 31
             $el->register(
32 32
                 'search',
33
-                function ($expression, $data) {
33
+                function($expression, $data) {
34 34
                     return sprintf('$search(%s, %s)', $expression, $data);
35 35
                 },
36
-                function (array $variables, $expression, $data) {
36
+                function(array $variables, $expression, $data) {
37 37
                     return $variables['search']($expression, $data);
38 38
                 }
39 39
             );
40 40
 
41
-            $values['search'] = function ($expression, $data) {
41
+            $values['search'] = function($expression, $data) {
42 42
                 return search($expression, $data);
43 43
             };
44 44
         }
Please login to merge, or discard this patch.
src/Behat/Deprecation/DeprecationAdviser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         if (!empty($this->warnings)) {
56 56
             uasort(
57 57
                 $this->warnings,
58
-                function ($a, $b) {
58
+                function($a, $b) {
59 59
                     if (count($a) === count($b)) {
60 60
                         return 0;
61 61
                     }
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.