Passed
Push — master ( a0d881...ad9c9b )
by Bruno
09:28
created
Modelarium/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $originalTypeLoader = $this->schema->getConfig()->typeLoader;
161 161
 
162
-        $this->schema->getConfig()->typeLoader = function ($typeName) use ($originalTypeLoader) {
162
+        $this->schema->getConfig()->typeLoader = function($typeName) use ($originalTypeLoader) {
163 163
             $type = $originalTypeLoader($typeName);
164 164
             if ($type instanceof \GraphQL\Type\Definition\CustomScalarType) {
165 165
                 $scalarName = $type->name;
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     {
175 175
         $this->ast = Visitor::visit($this->ast, [
176 176
             // load the scalar type classes
177
-            NodeKind::SCALAR_TYPE_DEFINITION => function ($node) {
177
+            NodeKind::SCALAR_TYPE_DEFINITION => function($node) {
178 178
                 $scalarName = $node->name->value;
179 179
 
180 180
                 // load classes
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
             return [];
238 238
         }
239 239
         return array_map(
240
-            function ($i) use ($basedir) {
240
+            function($i) use ($basedir) {
241 241
                 $name = $i[1];
242 242
                 if (array_key_exists($name, $this->imports)) {
243 243
                     return $this->imports[$name];
Please login to merge, or discard this patch.