Passed
Push — master ( 844eab...4575a5 )
by GRASSIOT
06:28
created
src/Api/CachedIdentifiersExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      */
67 67
     public function getIdentifiersFromItem($item): array
68 68
     {
69
-        $keys = $this->getKeys($item, function ($item) use (&$identifiers) {
69
+        $keys = $this->getKeys($item, function($item) use (&$identifiers) {
70 70
             return $identifiers = $this->decorated->getIdentifiersFromItem($item);
71 71
         });
72 72
 
Please login to merge, or discard this patch.
src/Operation/Factory/CachedSubresourceOperationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         $cacheKey = self::CACHE_KEY_PREFIX.md5($resourceClass);
41 41
 
42
-        return $this->getCached($cacheKey, function () use ($resourceClass) {
42
+        return $this->getCached($cacheKey, function() use ($resourceClass) {
43 43
             return $this->decorated->create($resourceClass);
44 44
         });
45 45
     }
Please login to merge, or discard this patch.
src/GraphQl/Resolver/Factory/CollectionResolverFactory.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
     public function __invoke(string $resourceClass = null, string $rootClass = null, string $operationName = null): callable
66 66
     {
67
-        return function ($source, $args, $context, ResolveInfo $info) use ($resourceClass, $rootClass, $operationName) {
67
+        return function($source, $args, $context, ResolveInfo $info) use ($resourceClass, $rootClass, $operationName) {
68 68
             if (null === $resourceClass) {
69 69
                 return null;
70 70
             }
Please login to merge, or discard this patch.
src/GraphQl/Type/SchemaBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 'name' => 'Query',
99 99
                 'fields' => $queryFields,
100 100
             ]),
101
-            'typeLoader' => function ($name) {
101
+            'typeLoader' => function($name) {
102 102
                 return $this->graphqlTypes[$name];
103 103
             },
104 104
         ];
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                     'description' => 'The id of this node.',
129 129
                 ],
130 130
             ],
131
-            'resolveType' => function ($value) {
131
+            'resolveType' => function($value) {
132 132
                 if (!isset($value[ItemNormalizer::ITEM_KEY])) {
133 133
                     return null;
134 134
                 }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
                         if (array_key_exists($key, $parsed) && \is_array($parsed[$key])) {
250 250
                             $parsed = [$key => ''];
251 251
                         }
252
-                        array_walk_recursive($parsed, function (&$value) use ($graphqlFilterType) {
252
+                        array_walk_recursive($parsed, function(&$value) use ($graphqlFilterType) {
253 253
                             $value = $graphqlFilterType;
254 254
                         });
255 255
                         $args = $this->mergeFilterArgs($args, $parsed, $resourceMetadata, $key);
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
             'name' => $shortName,
420 420
             'description' => $resourceMetadata->getDescription(),
421 421
             'resolveField' => $this->defaultFieldResolver,
422
-            'fields' => function () use ($resourceClass, $resourceMetadata, $input, $mutationName, $depth) {
422
+            'fields' => function() use ($resourceClass, $resourceMetadata, $input, $mutationName, $depth) {
423 423
                 return $this->getResourceObjectTypeFields($resourceClass, $resourceMetadata, $input, $mutationName, $depth);
424 424
             },
425 425
             'interfaces' => [$this->getNodeInterface()],
Please login to merge, or discard this patch.
src/Bridge/Symfony/Routing/CachedRouteNameResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $context = \func_num_args() > 2 ? func_get_arg(2) : [];
44 44
         $cacheKey = self::CACHE_KEY_PREFIX.md5(serialize([$resourceClass, $operationType, $context['subresource_resources'] ?? null]));
45 45
 
46
-        return $this->getCached($cacheKey, function () use ($resourceClass, $operationType, $context) {
46
+        return $this->getCached($cacheKey, function() use ($resourceClass, $operationType, $context) {
47 47
             return $this->decorated->getRouteName($resourceClass, $operationType, $context);
48 48
         });
49 49
     }
Please login to merge, or discard this patch.
src/Metadata/Resource/Factory/CachedResourceNameCollectionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function create(): ResourceNameCollection
43 43
     {
44
-        return $this->getCached(self::CACHE_KEY, function () {
44
+        return $this->getCached(self::CACHE_KEY, function() {
45 45
             return $this->decorated->create();
46 46
         });
47 47
     }
Please login to merge, or discard this patch.
src/Metadata/Property/Factory/CachedPropertyMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     {
44 44
         $cacheKey = self::CACHE_KEY_PREFIX.md5(serialize([$resourceClass, $property, $options]));
45 45
 
46
-        return $this->getCached($cacheKey, function () use ($resourceClass, $property, $options) {
46
+        return $this->getCached($cacheKey, function() use ($resourceClass, $property, $options) {
47 47
             return $this->decorated->create($resourceClass, $property, $options);
48 48
         });
49 49
     }
Please login to merge, or discard this patch.
src/Metadata/Property/Factory/CachedPropertyNameCollectionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     {
44 44
         $cacheKey = self::CACHE_KEY_PREFIX.md5(serialize([$resourceClass, $options]));
45 45
 
46
-        return $this->getCached($cacheKey, function () use ($resourceClass, $options) {
46
+        return $this->getCached($cacheKey, function() use ($resourceClass, $options) {
47 47
             return $this->decorated->create($resourceClass, $options);
48 48
         });
49 49
     }
Please login to merge, or discard this patch.
src/Metadata/Extractor/AbstractExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             return $value;
92 92
         }
93 93
 
94
-        $escapedValue = preg_replace_callback('/%%|%([^%\s]++)%/', function ($match) use ($value) {
94
+        $escapedValue = preg_replace_callback('/%%|%([^%\s]++)%/', function($match) use ($value) {
95 95
             $parameter = $match[1];
96 96
 
97 97
             // skip %%
Please login to merge, or discard this patch.