Completed
Pull Request — master (#904)
by Antoine
21:03
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/Bridge/Doctrine/Orm/SubcollectionDataProvider.php 2 patches
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -37,9 +37,6 @@
 block discarded – undo
37 37
 
38 38
     /**
39 39
      * @param ManagerRegistry                        $managerRegistry
40
-     * @param PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory
41
-     * @param PropertyMetadataFactoryInterface       $propertyMetadataFactory
42
-     * @param QueryItemExtensionInterface[]          $itemExtensions
43 40
      */
44 41
     public function __construct(ManagerRegistry $managerRegistry, IdentifiersHelper $identifiersHelper, array $collectionExtensions = [])
45 42
     {
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -12,17 +12,13 @@
 block discarded – undo
12 12
 namespace ApiPlatform\Core\Bridge\Doctrine\Orm;
13 13
 
14 14
 use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryItemExtensionInterface;
15
-use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryResultItemExtensionInterface;
16 15
 use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\IdentifiersHelper;
17 16
 use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGenerator;
18 17
 use ApiPlatform\Core\DataProvider\SubcollectionDataProviderInterface;
19
-use ApiPlatform\Core\Exception\PropertyNotFoundException;
20 18
 use ApiPlatform\Core\Exception\ResourceClassNotSupportedException;
21 19
 use ApiPlatform\Core\Exception\RuntimeException;
22 20
 use Doctrine\Common\Persistence\ManagerRegistry;
23
-use Doctrine\Common\Persistence\ObjectManager;
24 21
 use Doctrine\ORM\EntityManagerInterface;
25
-use Doctrine\ORM\QueryBuilder;
26 22
 
27 23
 /**
28 24
  * Subcollection data provider for the Doctrine ORM.
Please login to merge, or discard this patch.
src/Bridge/Doctrine/Orm/Util/IdentifiersHelper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface;
15 15
 use ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface;
16 16
 use Doctrine\Common\Persistence\ObjectManager;
17
-use Doctrine\ORM\QueryBuilder;
18 17
 
19 18
 /**
20 19
  * Tools that helps managing Identifiers (composite or regular) and related where clauses 
Please login to merge, or discard this patch.
src/Util/RequestAttributesExtractor.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
     {
43 43
         $result = [
44 44
             'resource_class' => $request->attributes->get('_api_resource_class'),
45
-             'subcollection_property' => $request->attributes->get('_api_subcollection_property_name'),
46
-             'subcollection_resource_class' => $request->attributes->get('_api_subcollection_resource_class')
45
+                'subcollection_property' => $request->attributes->get('_api_subcollection_property_name'),
46
+                'subcollection_resource_class' => $request->attributes->get('_api_subcollection_resource_class')
47 47
         ];
48 48
 
49 49
         if (null === $result['resource_class']) {
Please login to merge, or discard this patch.