Completed
Push — 2.1 ( fe8cbb...ba2c12 )
by Kévin
05:47 queued 02:39
created
src/Hal/Serializer/ItemNormalizer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
      * @param string|null $format
202 202
      * @param array       $context
203 203
      *
204
-     * @return bool|string
204
+     * @return string|false
205 205
      */
206 206
     private function getHalCacheKey(string $format = null, array $context)
207 207
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Hal\Serializer;
15 15
 
Please login to merge, or discard this patch.
src/Swagger/Serializer/DocumentationNormalizer.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
     /**
179 179
      * @param \ArrayObject     $pathOperation
180
-     * @param array            $mimeTypes
180
+     * @param string[]            $mimeTypes
181 181
      * @param string           $operationType
182 182
      * @param ResourceMetadata $resourceMetadata
183 183
      * @param string           $resourceClass
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 
233 233
     /**
234 234
      * @param \ArrayObject     $pathOperation
235
-     * @param array            $mimeTypes
235
+     * @param string[]            $mimeTypes
236 236
      * @param string           $operationType
237 237
      * @param ResourceMetadata $resourceMetadata
238 238
      * @param string           $resourceClass
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
     /**
269 269
      * @param \ArrayObject     $pathOperation
270
-     * @param array            $mimeTypes
270
+     * @param string[]            $mimeTypes
271 271
      * @param string           $operationType
272 272
      * @param ResourceMetadata $resourceMetadata
273 273
      * @param string           $resourceClass
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Swagger\Serializer;
15 15
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 $parametersMemory = [];
147 147
                 $pathOperation['parameters'] = [];
148 148
 
149
-                foreach ($subresourceOperation['identifiers'] as list($identifier, , $hasIdentifier)) {
149
+                foreach ($subresourceOperation['identifiers'] as list($identifier,, $hasIdentifier)) {
150 150
                     if (true === $hasIdentifier) {
151 151
                         $pathOperation['parameters'][] = ['name' => $identifier, 'in' => 'path', 'required' => true, 'type' => 'string'];
152 152
                         $parametersMemory[] = $identifier;
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
         $definitionKey = $this->getDefinitionKey($resourceMetadata->getShortName(), (array) ($serializerContext[AbstractNormalizer::GROUPS] ?? []));
446 446
 
447 447
         if (!isset($definitions[$definitionKey])) {
448
-            $definitions[$definitionKey] = [];  // Initialize first to prevent infinite loop
448
+            $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop
449 449
             $definitions[$definitionKey] = $this->getDefinitionSchema($resourceClass, $resourceMetadata, $definitions, $serializerContext);
450 450
         }
451 451
 
Please login to merge, or discard this patch.
src/Bridge/Doctrine/Orm/Filter/AbstractFilter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
      *
212 212
      * @param string $property
213 213
      *
214
-     * @return array
214
+     * @return string
215 215
      */
216 216
     protected function splitPropertyParts(string $property/*, string $resourceClass*/): array
217 217
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Bridge\Doctrine\Orm\Filter;
15 15
 
Please login to merge, or discard this patch.
src/Hal/Serializer/EntrypointNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Hal\Serializer;
15 15
 
Please login to merge, or discard this patch.
src/Documentation/Documentation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Documentation;
15 15
 
Please login to merge, or discard this patch.
src/Documentation/Action/DocumentationAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Documentation\Action;
15 15
 
Please login to merge, or discard this patch.
src/Annotation/ApiProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Annotation;
15 15
 
Please login to merge, or discard this patch.
src/Hydra/EventListener/AddLinkHeaderListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Hydra\EventListener;
15 15
 
Please login to merge, or discard this patch.
src/Hydra/Serializer/ErrorNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Hydra\Serializer;
15 15
 
Please login to merge, or discard this patch.