@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | $parametersMemory = []; |
148 | 148 | $pathOperation['parameters'] = []; |
149 | 149 | |
150 | - foreach ($subresourceOperation['identifiers'] as list($identifier, , $hasIdentifier)) { |
|
150 | + foreach ($subresourceOperation['identifiers'] as list($identifier,, $hasIdentifier)) { |
|
151 | 151 | if (true === $hasIdentifier) { |
152 | 152 | $pathOperation['parameters'][] = ['name' => $identifier, 'in' => 'path', 'required' => true, 'type' => 'string']; |
153 | 153 | $parametersMemory[] = $identifier; |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | } |
454 | 454 | |
455 | 455 | if (!isset($definitions[$definitionKey])) { |
456 | - $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
456 | + $definitions[$definitionKey] = []; // Initialize first to prevent infinite loop |
|
457 | 457 | $definitions[$definitionKey] = $this->getDefinitionSchema($resourceClass, $resourceMetadata, $definitions, $serializerContext); |
458 | 458 | } |
459 | 459 |
@@ -128,8 +128,8 @@ discard block |
||
128 | 128 | ->arrayNode('swagger') |
129 | 129 | ->addDefaultsIfNotSet() |
130 | 130 | ->children() |
131 | - ->arrayNode('api_keys') |
|
132 | - ->prototype('array') |
|
131 | + ->arrayNode('api_keys') |
|
132 | + ->prototype('array') |
|
133 | 133 | ->children() |
134 | 134 | ->scalarNode('name') |
135 | 135 | ->info('The name of the header or query parameter containing the api key.') |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | ->values(['query', 'header']) |
140 | 140 | ->end() |
141 | 141 | ->end() |
142 | - ->end() |
|
142 | + ->end() |
|
143 | 143 | ->end() |
144 | 144 | ->end() |
145 | 145 | ->end() |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | ->variableNode('request_options') |
207 | 207 | ->defaultValue([]) |
208 | 208 | ->validate() |
209 | - ->ifTrue(function ($v) { return false === \is_array($v); }) |
|
209 | + ->ifTrue(function($v) { return false === \is_array($v); }) |
|
210 | 210 | ->thenInvalid('The request_options parameter must be an array.') |
211 | 211 | ->end() |
212 | 212 | ->info('To pass options to the client charged with the request.') |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | ->useAttributeAsKey('exception_class') |
255 | 255 | ->beforeNormalization() |
256 | 256 | ->ifArray() |
257 | - ->then(function (array $exceptionToStatus) { |
|
257 | + ->then(function(array $exceptionToStatus) { |
|
258 | 258 | foreach ($exceptionToStatus as &$httpStatusCode) { |
259 | 259 | if (\is_int($httpStatusCode)) { |
260 | 260 | continue; |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | ->prototype('integer')->end() |
274 | 274 | ->validate() |
275 | 275 | ->ifArray() |
276 | - ->then(function (array $exceptionToStatus) { |
|
276 | + ->then(function(array $exceptionToStatus) { |
|
277 | 277 | foreach ($exceptionToStatus as $httpStatusCode) { |
278 | 278 | if ($httpStatusCode < 100 || $httpStatusCode >= 600) { |
279 | 279 | throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode)); |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | ->useAttributeAsKey('format') |
306 | 306 | ->beforeNormalization() |
307 | 307 | ->ifArray() |
308 | - ->then(function ($v) { |
|
308 | + ->then(function($v) { |
|
309 | 309 | foreach ($v as $format => $value) { |
310 | 310 | if (isset($value['mime_types'])) { |
311 | 311 | continue; |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | public function __construct(PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, IriConverterInterface $iriConverter, ResourceClassResolverInterface $resourceClassResolver, PropertyAccessorInterface $propertyAccessor = null, NameConverterInterface $nameConverter = null, ClassMetadataFactoryInterface $classMetadataFactory = null, ItemDataProviderInterface $itemDataProvider = null, bool $allowPlainIdentifiers = false) |
59 | 59 | { |
60 | - $defaultContext = ['circular_reference_handler' => function ($object) { |
|
60 | + $defaultContext = ['circular_reference_handler' => function($object) { |
|
61 | 61 | return $this->iriConverter->getIriFromItem($object); |
62 | 62 | }]; |
63 | 63 |