Completed
Pull Request — master (#904)
by Antoine
03:00
created
src/Bridge/Symfony/Routing/ApiLoader.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,6 @@
 block discarded – undo
133 133
      * @param string          $operationName
134 134
      * @param array           $operation
135 135
      * @param string          $resourceShortName
136
-     * @param bool            $collection
137 136
      *
138 137
      * @throws RuntimeException
139 138
      */
Please login to merge, or discard this patch.
src/Util/RequestAttributesExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
             }
59 59
         }
60 60
 
61
-        throw new RuntimeException('One of the following request attribute must be defined: %s', implode(', ', array_map(function ($operationType) {
61
+        throw new RuntimeException('One of the following request attribute must be defined: %s', implode(', ', array_map(function($operationType) {
62 62
             return "_api_{$operationType}_operation_name";
63 63
         }, OperationTypes::TYPES)));
64 64
     }
Please login to merge, or discard this patch.
src/Bridge/Doctrine/Orm/SubcollectionDataProvider.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
      * @param ManagerRegistry                        $managerRegistry
38 38
      * @param PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory
39 39
      * @param PropertyMetadataFactoryInterface       $propertyMetadataFactory
40
-     * @param QueryItemExtensionInterface[]          $itemExtensions
41 40
      */
42 41
     public function __construct(ManagerRegistry $managerRegistry, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, array $collectionExtensions = [])
43 42
     {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,15 +11,12 @@
 block discarded – undo
11 11
 
12 12
 namespace ApiPlatform\Core\Bridge\Doctrine\Orm;
13 13
 
14
-use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGenerator;
15 14
 use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\IdentifierManagerTrait;
16 15
 use ApiPlatform\Core\DataProvider\SubcollectionDataProviderInterface;
17
-use ApiPlatform\Core\Exception\ResourceClassNotSupportedException;
18 16
 use ApiPlatform\Core\Exception\RuntimeException;
19 17
 use ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface;
20 18
 use ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface;
21 19
 use Doctrine\Common\Persistence\ManagerRegistry;
22
-use Doctrine\ORM\EntityManagerInterface;
23 20
 
24 21
 /**
25 22
  * Subcollection data provider for the Doctrine ORM.
Please login to merge, or discard this patch.
src/Api/ResourceClassResolver.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     public function getResourceClassFromContext($value, array $context = null, bool $strict = false): string
67 67
     {
68
-		$resourceClass = $context['resource_class'] ?? null;
68
+        $resourceClass = $context['resource_class'] ?? null;
69 69
 
70 70
         if (isset($context['subcollection_resource_class']) && null !== $context['subcollection_resource_class']) {
71 71
             $resourceClass = $context['subcollection_resource_class'];
Please login to merge, or discard this patch.