Completed
Pull Request — master (#1225)
by Antoine
08:00 queued 04:29
created
src/Hydra/Serializer/DocumentationNormalizer.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
      * @param string           $prefixedShortName
202 202
      * @param bool             $collection
203 203
      *
204
-     * @return array
204
+     * @return string
205 205
      */
206 206
     private function getHydraOperations(string $resourceClass, ResourceMetadata $resourceMetadata, string $prefixedShortName, bool $collection): array
207 207
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
             $propertyMetadata = $this->propertyMetadataFactory->create($resourceClass, $propertyName);
219 219
 
220 220
             if (!$propertyMetadata->hasSubresource()) {
221
-               continue;
221
+                continue;
222 222
             }
223 223
 
224 224
             $hydraOperations[] = $this->getHydraOperation($resourceClass, $resourceMetadata, $operationName, $operation, $prefixedShortName, OperationType::SUBRESOURCE);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Hydra\Serializer;
15 15
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     {
245 245
         if (OperationType::COLLECTION === $operationType) {
246 246
             $method = $this->operationMethodResolver->getCollectionOperationMethod($resourceClass, $operationName);
247
-        } else if(OperationType::ITEM === $operationType) {
247
+        } else if (OperationType::ITEM === $operationType) {
248 248
             $method = $this->operationMethodResolver->getItemOperationMethod($resourceClass, $operationName);
249 249
         } else {
250 250
             $method = 'GET';
Please login to merge, or discard this patch.