Completed
Pull Request — master (#591)
by Amrouche
03:57
created
src/Hydra/ApiDocumentationBuilder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@
 block discarded – undo
392 392
                         return ['$ref' => sprintf('#/definitions/%s', $this->resourceMetadataFactory->create($className)->getShortName())];
393 393
                     }
394 394
                 }
395
-           break;
395
+            break;
396 396
         }
397 397
     }
398 398
 
Please login to merge, or discard this patch.
Symfony/Validator/Hydra/Serializer/ConstraintViolationListNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,6 +70,6 @@
 block discarded – undo
70 70
      */
71 71
     public function supportsNormalization($data, $format = null)
72 72
     {
73
-        return in_array($format, self::FORMAT)  && $data instanceof ConstraintViolationListInterface;
73
+        return in_array($format, self::FORMAT) && $data instanceof ConstraintViolationListInterface;
74 74
     }
75 75
 }
Please login to merge, or discard this patch.
src/Swagger/ApiDocumentationBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 if ($propertyMetadata->isIdentifier() && !$propertyMetadata->isWritable()) {
119 119
                     continue;
120 120
                 }
121
-                $range =  $this->getRange($propertyMetadata);
121
+                $range = $this->getRange($propertyMetadata);
122 122
 
123 123
                 $property[$propertyName] = [
124 124
                     'type' => $range,
@@ -245,14 +245,14 @@  discard block
 block discarded – undo
245 245
                 if (!isset($swaggerOperation[$methodSwagger]['title'])) {
246 246
                     $swaggerOperation[$methodSwagger]['summary'] = sprintf('Replaces the %s resource.', $shortName);
247 247
                 }
248
-                $swaggerOperation[$methodSwagger]['parameters']= [ [
248
+                $swaggerOperation[$methodSwagger]['parameters'] = [[
249 249
                     'name' => 'id',
250 250
                     'in' => 'path',
251 251
                     'required' => true,
252 252
                     'type' => 'integer',
253 253
                 ]];
254 254
                 if ($this->resourceClassResolver->isResourceClass($shortName)) {
255
-                    $swaggerOperation[$methodSwagger]['parameters']= [ [
255
+                    $swaggerOperation[$methodSwagger]['parameters'] = [[
256 256
                         'name' => 'id',
257 257
                         'in' => 'path',
258 258
                         'required' => true,
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
                 $swaggerOperation[$methodSwagger]['responses'] = [
278 278
                     '204' => ['description' => 'Deleted'],
279 279
                 ];
280
-                $swaggerOperation[$methodSwagger]['parameters']= [ [
280
+                $swaggerOperation[$methodSwagger]['parameters'] = [[
281 281
                     'name' => 'id',
282 282
                     'in' => 'path',
283 283
                     'required' => true,
Please login to merge, or discard this patch.