Completed
Branch 5.6 (cd95fb)
by Rémi
10:17
created
src/AnalogueServiceProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     /**
57 57
      * Get the services provided by the provider.
58 58
      *
59
-     * @return array
59
+     * @return string[]
60 60
      */
61 61
     public function provides()
62 62
     {
Please login to merge, or discard this patch.
src/ValueMap.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     }
72 72
 
73 73
     /**
74
-     * @param $class
74
+     * @param string $class
75 75
      */
76 76
     public function setClass($class)
77 77
     {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     }
80 80
 
81 81
     /**
82
-     * @return mixed
82
+     * @return string
83 83
      */
84 84
     public function getClass()
85 85
     {
Please login to merge, or discard this patch.
src/System/Manager.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      * Create a mapper for a given entity.
144 144
      *
145 145
      * @param \Analogue\ORM\Mappable|string|array|\Traversable $entity
146
-     * @param mixed                                            $entityMap
146
+     * @param null|EntityMap                                            $entityMap
147 147
      *
148 148
      * @throws MappingException
149 149
      * @throws \InvalidArgumentException
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     /**
252 252
      * Check if the entity is already registered.
253 253
      *
254
-     * @param string|Entity $entity
254
+     * @param string $entity
255 255
      *
256 256
      * @return bool
257 257
      */
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     /**
334 334
      * Register an entity.
335 335
      *
336
-     * @param string|\Analogue\ORM\Mappable $entity    entity's class name
336
+     * @param string $entity    entity's class name
337 337
      * @param string|EntityMap              $entityMap map's class name
338 338
      *
339 339
      * @throws MappingException
Please login to merge, or discard this patch.
src/Relationships/BelongsToMany.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -369,6 +369,7 @@
 block discarded – undo
369 369
      * Set the join clause for the relation query.
370 370
      *
371 371
      * @param  \Analogue\ORM\Query|null
372
+     * @param Query $query
372 373
      *
373 374
      * @return $this
374 375
      */
Please login to merge, or discard this patch.
src/System/SingleTableInheritanceScope.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /**
34 34
      * Remove the scope from the given Analogue query builder.
35 35
      *
36
-     * @param mixed $query
36
+     * @param Query $query
37 37
      *
38 38
      * @return void
39 39
      */
Please login to merge, or discard this patch.
src/Commands/Store.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,6 @@
 block discarded – undo
197 197
     /**
198 198
      * Update attributes on actual entity.
199 199
      *
200
-     * @param array $attributes
201 200
      *
202 201
      * @return void
203 202
      */
Please login to merge, or discard this patch.
src/EntityMap.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -621,7 +621,7 @@
 block discarded – undo
621 621
      *
622 622
      * @throws MappingException
623 623
      *
624
-     * @return mixed
624
+     * @return null|Collection
625 625
      */
626 626
     public function getEmptyValueForRelationship(string $relation)
627 627
     {
Please login to merge, or discard this patch.
src/System/Mapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
     /**
123 123
      * Map results to a Collection.
124 124
      *
125
-     * @param array|Collection $results
125
+     * @param Collection $results
126 126
      * @param array            $eagerLoads
127 127
      *
128 128
      * @return Collection
Please login to merge, or discard this patch.
src/System/Query.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      *
177 177
      * @throws \Analogue\ORM\Exceptions\EntityNotFoundException
178 178
      *
179
-     * @return mixed|self
179
+     * @return \Analogue\ORM\Mappable
180 180
      */
181 181
     public function findOrFail($id, $columns = ['*'])
182 182
     {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      * @param string $column
248 248
      * @param string $key
249 249
      *
250
-     * @return array
250
+     * @return Collection
251 251
      */
252 252
     public function lists($column, $key = null)
253 253
     {
Please login to merge, or discard this patch.