Completed
Pull Request — master (#628)
by Amrouche
04:13
created
src/Hydra/DocumentationNormalizer.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@
 block discarded – undo
22 22
 use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
23 23
 use ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface;
24 24
 use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;
25
-use ApiPlatform\Core\Metadata\Resource\ResourceNameCollection;
26 25
 use Symfony\Component\PropertyInfo\Type;
27 26
 use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
28 27
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -427,6 +427,6 @@
 block discarded – undo
427 427
      */
428 428
     public function supportsNormalization($data, $format = null, array $context = [])
429 429
     {
430
-        return self::FORMAT === $format && $data instanceof Documentation;;
430
+        return self::FORMAT === $format && $data instanceof Documentation; ;
431 431
     }
432 432
 }
Please login to merge, or discard this patch.
src/Swagger/DocumentationNormalizer.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@  discard block
 block discarded – undo
14 14
 use ApiPlatform\Core\Api\IriConverterInterface;
15 15
 use ApiPlatform\Core\Api\OperationMethodResolverInterface;
16 16
 use ApiPlatform\Core\Api\ResourceClassResolverInterface;
17
-use ApiPlatform\Core\Documentation\ApiDocumentationBuilderInterface;
18 17
 use ApiPlatform\Core\Documentation\Documentation;
19 18
 use ApiPlatform\Core\Exception\InvalidArgumentException;
20 19
 use ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface;
@@ -23,7 +22,6 @@  discard block
 block discarded – undo
23 22
 use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
24 23
 use ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface;
25 24
 use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;
26
-use ApiPlatform\Core\Metadata\Resource\ResourceNameCollection;
27 25
 use Symfony\Component\PropertyInfo\Type;
28 26
 use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
29 27
 
Please login to merge, or discard this patch.
src/Documentation/Documentation.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@
 block discarded – undo
66 66
         return $this->title;
67 67
     }
68 68
 
69
-   public function getResourceNameCollection(): ResourceNameCollection {
70
-       return $this->resourceNameCollection;
71
-   }
69
+    public function getResourceNameCollection(): ResourceNameCollection {
70
+        return $this->resourceNameCollection;
71
+    }
72 72
 
73 73
 }
74 74
\ No newline at end of file
Please login to merge, or discard this patch.