Completed
Pull Request — master (#79)
by Jacob
02:58
created
src/Api/AbstractAdapter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      *
50 50
      * @param   SerializerInterface     $serializer
51 51
      * @param   NormalizerInterface     $normalizer
52
-     * @param   StoreInterface          $store
52
+     * @param   Store          $store
53 53
      * @param   Rest\RestConfiguration  $config
54 54
      */
55 55
     public function __construct(SerializerInterface $serializer, NormalizerInterface $normalizer, Store $store, Rest\RestConfiguration $config)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     /**
89 89
      * {@inheritDoc}
90 90
      */
91
-    public function findQuery($typeKey, array $criteria, array $fields = [], array $sort = [], array $inclusions =[], $offset = 0, $limit = 0)
91
+    public function findQuery($typeKey, array $criteria, array $fields = [], array $sort = [], array $inclusions = [], $offset = 0, $limit = 0)
92 92
     {
93 93
         $collection = $this->getStore()->findQuery($typeKey, $criteria, $fields, $sort, $offset, $limit);
94 94
         $payload = $this->serializeCollection($collection);
Please login to merge, or discard this patch.
src/Exception/AbstractHttpException.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
28 28
      * Constructor.
29 29
      * Overwritten to require a message and an HTTP code.
30 30
      *
31
-     * @param   string                          $message
32 31
      * @param   int                             $httpCode
33 32
      * @param   string                          $errorType
34 33
      * @param   int                             $code
35 34
      * @param   HttpExceptionInterface|null     $previous
35
+     * @param string $detail
36 36
      */
37 37
     public function __construct($detail, $httpCode, $errorType, $code = 0, HttpExceptionInterface $previous = null)
38 38
     {
Please login to merge, or discard this patch.
src/Metadata/Cache/ApcCache.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,7 @@
 block discarded – undo
29 29
     /**
30 30
      * Constructor.
31 31
      *
32
-     * @param   Redis   $redis
33 32
      * @param   int     $ttl
34
-     * @param   int     $serializer
35 33
      */
36 34
     public function __construct($ttl = 3600)
37 35
     {
Please login to merge, or discard this patch.
src/Metadata/Driver/AbstractFileDriver.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,6 @@
 block discarded – undo
50 50
      * Constructor.
51 51
      *
52 52
      * @param   FileLocatorInterface    $fileLocator
53
-     * @param   Validator               $validator
54 53
      * @param   StorageLayerManager     $storageManager
55 54
      */
56 55
     public function __construct(FileLocatorInterface $fileLocator, StorageLayerManager $storageManager)
Please login to merge, or discard this patch.
src/Metadata/MetadataFactory.php 2 patches
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     /**
80 80
      * Gets the cache instance.
81 81
      *
82
-     * @return  CacheInterface|null
82
+     * @return  CacheInterface
83 83
      */
84 84
     public function getCache()
85 85
     {
@@ -242,6 +242,9 @@  discard block
 block discarded – undo
242 242
         return $this->isDescendantOf($childMeta->getParentEntityType(), $parent);
243 243
     }
244 244
 
245
+    /**
246
+     * @param string $parentType
247
+     */
245 248
     public function validateResourceTypes($parentType, $childType)
246 249
     {
247 250
         $meta = $this->getMetadataForType($parentType);
@@ -323,6 +326,7 @@  discard block
 block discarded – undo
323 326
     /**
324 327
      * Gets a Metadata instance for a type from memory.
325 328
      *
329
+     * @param string $type
326 330
      * @return  EntityMetadata|null
327 331
      */
328 332
     private function getFromMemory($type)
@@ -348,6 +352,7 @@  discard block
 block discarded – undo
348 352
     /**
349 353
      * Retrieves a Metadata instance for a type from cache.
350 354
      *
355
+     * @param string $type
351 356
      * @return  EntityMetadata|null
352 357
      */
353 358
     private function getFromCache($type)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
      * @param   EntityMetadata  &$metadata
265 265
      * @param   EntityMetadata  $toAdd
266 266
      */
267
-    private function mergeMetadata(EntityMetadata &$metadata = null, EntityMetadata $toAdd)
267
+    private function mergeMetadata(EntityMetadata & $metadata = null, EntityMetadata $toAdd)
268 268
     {
269 269
         if (null === $metadata) {
270 270
             $metadata = clone $toAdd;
Please login to merge, or discard this patch.
src/Metadata/RelationshipMetadata.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     /**
136 136
      * Validates the relationship type.
137 137
      *
138
-     * @param   string  $type
138
+     * @param string $relType
139 139
      * @return  bool
140 140
      * @throws  MetadataException
141 141
      */
Please login to merge, or discard this patch.
src/Metadata/Driver/YamlFileDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -236,8 +236,8 @@
 block discarded – undo
236 236
             if (isset($mapping['calculated']) && is_array($mapping['calculated'])) {
237 237
                 $calculated = $mapping['calculated'];
238 238
                 if (isset($calculated['class']) && isset($calculated['method'])) {
239
-                    $attribute->calculated['class']  =  $calculated['class'];
240
-                    $attribute->calculated['method'] =  $calculated['method'];
239
+                    $attribute->calculated['class']  = $calculated['class'];
240
+                    $attribute->calculated['method'] = $calculated['method'];
241 241
                 }
242 242
             }
243 243
 
Please login to merge, or discard this patch.
src/Search/ClientInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,6 @@
 block discarded – undo
45 45
     /**
46 46
      * Returns a set of autocomplete results for a model type, attribute key, and search value.
47 47
      *
48
-     * @param   string  $typeKey
49 48
      * @param   string  $attributeKey
50 49
      * @param   string  $searchValue
51 50
      * @return  AutocompleteResult[]
Please login to merge, or discard this patch.
src/Api/AdapterInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      * @param   int         $limit      The number of Models to limit.
65 65
      * @return  Collection
66 66
      */
67
-    public function findQuery($typeKey, array $criteria, array $fields = [], array $sort = [], array $inclusions =[], $offset = 0, $limit = 0);
67
+    public function findQuery($typeKey, array $criteria, array $fields = [], array $sort = [], array $inclusions = [], $offset = 0, $limit = 0);
68 68
 
69 69
     /**
70 70
      * Creates a new model.
Please login to merge, or discard this patch.