Completed
Push — master ( c00ec8...083880 )
by Rafael
03:48
created
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/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.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -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 [$v];
79 79
                 }
80 80
             )
@@ -87,14 +87,14 @@  discard block
 block discarded – undo
87 87
             ->beforeNormalization()
88 88
             ->ifString()
89 89
             ->then(
90
-                function ($v) {
90
+                function($v) {
91 91
                     return [$v];
92 92
                 }
93 93
             )
94 94
             ->end()
95 95
             ->validate()
96 96
             ->ifTrue(
97
-                function (array $value) {
97
+                function(array $value) {
98 98
                     foreach ($value as $val) {
99 99
                         try {
100 100
                             preg_match($val, null);
@@ -111,14 +111,14 @@  discard block
 block discarded – undo
111 111
             ->beforeNormalization()
112 112
             ->ifString()
113 113
             ->then(
114
-                function ($v) {
114
+                function($v) {
115 115
                     return [$v];
116 116
                 }
117 117
             )
118 118
             ->end()
119 119
             ->validate()
120 120
             ->ifTrue(
121
-                function (array $value) {
121
+                function(array $value) {
122 122
                     foreach ($value as $val) {
123 123
                         try {
124 124
                             preg_match($val, null);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                           ->useAttributeAsKey('name')
137 137
                           ->validate()
138 138
                           ->ifTrue(
139
-                              function ($v) {
139
+                              function($v) {
140 140
                                   return array_key_exists('default', $v);
141 141
                               }
142 142
                           )->thenInvalid('"default" can\'t be used as endpoint name, the system internally use this endpoint name to store the entire schema.')
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                   ->beforeNormalization()
149 149
                   ->ifString()
150 150
                   ->then(
151
-                      function ($v) {
151
+                      function($v) {
152 152
                           return preg_split('/\s*,\s*/', $v);
153 153
                       }
154 154
                   )
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
              ->beforeNormalization()
166 166
              ->ifString()
167 167
              ->then(
168
-                 function ($v) {
168
+                 function($v) {
169 169
                      return preg_split('/\s*,\s*/', $v);
170 170
                  }
171 171
              )
Please login to merge, or discard this patch.
src/Command/ControlledErrorCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      */
60 60
     protected function execute(InputInterface $input, OutputInterface $output)
61 61
     {
62
-        $this->errorManager->clear();//force reload
62
+        $this->errorManager->clear(); //force reload
63 63
         $errors = $this->errorManager->all();
64 64
 
65 65
         $result = $output;
Please login to merge, or discard this patch.
src/Controller/GraphQLEndpointController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
 
184 184
             $result->setErrorFormatter([$formatter, 'format']);
185 185
             $result->setErrorsHandler(
186
-                function ($errors) use ($handler, $formatter) {
186
+                function($errors) use ($handler, $formatter) {
187 187
                     return $handler->handle($errors, $formatter, $this->getDebugMode());
188 188
                 }
189 189
             );
Please login to merge, or discard this patch.
src/Form/Type/IDType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         $resolver->setDefault('alternative_id', null);
85 85
         $resolver->setNormalizer(
86 86
             'alternative_id',
87
-            function (Options $options, $value) {
87
+            function(Options $options, $value) {
88 88
                 if ($value && !$options->offsetGet('class')) {
89 89
                     throw new InvalidArgumentException('Can\'t set the option "alternative_id" without define a valid "class"');
90 90
                 }
Please login to merge, or discard this patch.
src/Extension/EndpointNotValidException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct(string $endpoint, array $registeredEndpoints)
19 19
     {
20
-        $message  = sprintf(
20
+        $message = sprintf(
21 21
             '"%s" is not a valid configured endpoint, use one of the following endpoints: [%s]',
22 22
             $endpoint,
23 23
             implode($registeredEndpoints, ',')
Please login to merge, or discard this patch.
src/EventListener/GraphQL/NodeDeferredListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
             $event->setValue(
60 60
                 new Deferred(
61
-                    function () use ($value) {
61
+                    function() use ($value) {
62 62
                         $this->deferredBuffer->loadBuffer();
63 63
 
64 64
                         return $this->deferredBuffer->getLoadedEntity($value);
Please login to merge, or discard this patch.
src/Filter/Resolver/DoctrineORMFilterResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     /**
65 65
      * @inheritDoc
66 66
      */
67
-    public function resolve(ExecutableDefinitionInterface $executableDefinition,ObjectDefinitionInterface $node, Endpoint $endpoint): array
67
+    public function resolve(ExecutableDefinitionInterface $executableDefinition, ObjectDefinitionInterface $node, Endpoint $endpoint): array
68 68
     {
69 69
         $class = $node->getClass();
70 70
         $filters = [];
Please login to merge, or discard this patch.