Completed
Pull Request — master (#628)
by Amrouche
03:47 queued 32s
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
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
         $this->resourceNameCollection = $resourceNameCollection;
30 30
     }
31 31
 
32
-   public function getResourceNameCollection() {
33
-       return $this->resourceNameCollection;
34
-   }
32
+    public function getResourceNameCollection() {
33
+        return $this->resourceNameCollection;
34
+    }
35 35
 
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.