Completed
Pull Request — master (#904)
by Antoine
03:10
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 1 patch
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.
src/Util/RequestAttributesExtractor.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
     {
42 42
         $result = [
43 43
             'resource_class' => $request->attributes->get('_api_resource_class'),
44
-             'subcollection_property' => $request->attributes->get('_api_subcollection_property_name'),
45
-             'subcollection_resource_class' => $request->attributes->get('_api_subcollection_resource_class'),
44
+                'subcollection_property' => $request->attributes->get('_api_subcollection_property_name'),
45
+                'subcollection_resource_class' => $request->attributes->get('_api_subcollection_resource_class'),
46 46
         ];
47 47
 
48 48
         if (null === $result['resource_class']) {
Please login to merge, or discard this 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.