@@ -177,7 +177,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | $parametersMemory = []; |
134 | 134 | $pathOperation['parameters'] = []; |
135 | 135 | |
136 | - foreach ($subresourceOperation['identifiers'] as list($identifier, , $hasIdentifier)) { |
|
136 | + foreach ($subresourceOperation['identifiers'] as list($identifier,, $hasIdentifier)) { |
|
137 | 137 | if (true === $hasIdentifier) { |
138 | 138 | $pathOperation['parameters'][] = ['name' => $identifier, 'in' => 'path', 'required' => true, 'type' => 'string']; |
139 | 139 | $parametersMemory[] = $identifier; |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | $definitionKey = $this->getDefinitionKey($resourceMetadata->getShortName(), (array) ($serializerContext['groups'] ?? [])); |
425 | 425 | |
426 | 426 | if (!isset($definitions[$definitionKey])) { |
427 | - $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
427 | + $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
428 | 428 | $definitions[$definitionKey] = $this->getDefinitionSchema($resourceClass, $resourceMetadata, $definitions, $serializerContext); |
429 | 429 | } |
430 | 430 |
@@ -211,7 +211,7 @@ |
||
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 | { |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | public function __construct(ManagerRegistry $managerRegistry, RequestStack $requestStack, string $orderParameterName, LoggerInterface $logger = null, array $properties = null) |
57 | 57 | { |
58 | 58 | if (null !== $properties) { |
59 | - $properties = array_map(function ($propertyOptions) { |
|
59 | + $properties = array_map(function($propertyOptions) { |
|
60 | 60 | // shorthand for default direction |
61 | 61 | if (is_string($propertyOptions)) { |
62 | 62 | $propertyOptions = [ |
@@ -9,7 +9,7 @@ |
||
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\Serializer\Filter; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\Serializer\Filter; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\HttpCache\EventListener; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\HttpCache; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\HttpCache\EventListener; |
15 | 15 |
@@ -9,7 +9,7 @@ discard block |
||
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\HttpCache; |
15 | 15 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | // Create the regex to purge all tags in just one request |
47 | - $parts = array_map(function ($iri) { |
|
47 | + $parts = array_map(function($iri) { |
|
48 | 48 | return sprintf('(^|\,)%s($|\,)', preg_quote($iri)); |
49 | 49 | }, $iris); |
50 | 50 |