Passed
Push — master ( 4f12b2...844eab )
by GRASSIOT
07:44 queued 12s
created
src/Swagger/Serializer/DocumentationNormalizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
139 139
                                         ->values(['query', 'header'])
140 140
                                     ->end()
141 141
                                 ->end()
142
-                             ->end()
142
+                                ->end()
143 143
                         ->end()
144 144
                     ->end()
145 145
                 ->end()
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Serializer/AbstractItemNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.