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 2 patches
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.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @var string
26 26
      */
27
-     private $prefix = 'ModlrData';
27
+        private $prefix = 'ModlrData';
28 28
 
29 29
     /**
30 30
      * Constructor.
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/Events/EventDispatcher.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,12 +96,12 @@
 block discarded – undo
96 96
         return null;
97 97
     }
98 98
 
99
-     /**
100
-     * Determines if registered listeners exist for an event name.
101
-     *
102
-     * @param   string  $eventName
103
-     * @return  bool
104
-     */
99
+        /**
100
+         * Determines if registered listeners exist for an event name.
101
+         *
102
+         * @param   string  $eventName
103
+         * @return  bool
104
+         */
105 105
     public function hasListeners($eventName)
106 106
     {
107 107
         return null !== $this->getListeners($eventName);
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * Adds an event listener.
23 23
      *
24 24
      * @param   string|array    $eventNames The event name(s) to listen for.
25
-     * @param   object          $listener   The event listener object.
25
+     * @param   EventSubscriberInterface          $listener   The event listener object.
26 26
      * @return  self
27 27
      * @throws  \InvalidArgumentException   If the listener does not contain the event method.
28 28
      */
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * Removes an event listener, if registered.
112 112
      *
113 113
      * @param   string|array    $eventNames The event name(s) to listen for.
114
-     * @param   object          $listener   The event listener object.
114
+     * @param   EventSubscriberInterface          $listener   The event listener object.
115 115
      * @return  self
116 116
      */
117 117
     public function removeListener($eventNames, $listener)
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/Metadata/Cache/RedisCache.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @var string
26 26
      */
27
-     private $prefix = 'ModlrData';
27
+        private $prefix = 'ModlrData';
28 28
 
29 29
     /**
30 30
      * Constructor.
Please login to merge, or discard this patch.