Completed
Push — develop ( 323169...d03a0f )
by Nate
02:15
created
src/actions/users/AbstractUserAssociation.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
 
27 27
     /**
28 28
      * @inheritdoc
29
-     * @param UserAssociation $record
30 29
      * @return bool
31 30
      */
32 31
     abstract protected function performAction(User $user, Organization $organization, int $sortOrder = null): bool;
@@ -62,7 +61,7 @@  discard block
 block discarded – undo
62 61
     }
63 62
 
64 63
     /**
65
-     * @param string|int $identifier
64
+     * @param string $identifier
66 65
      * @return User|null
67 66
      */
68 67
     protected function findUser($identifier)
Please login to merge, or discard this patch.
src/behaviors/OrganizationsAssociatedToUserBehavior.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     }
89 89
 
90 90
     /**
91
-     * @param User|self $user
91
+     * @param User $user
92 92
      * @throws Exception
93 93
      * @throws \Exception
94 94
      * @throws \Throwable
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     }
119 119
 
120 120
     /**
121
-     * @param User|self $user
121
+     * @param User $user
122 122
      * @return void
123 123
      */
124 124
     private function onAfterValidate(User $user)
Please login to merge, or discard this patch.
src/objects/DateJoinedMutatorTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @noinspection PhpDocMissingThrowsInspection
24 24
      *
25
-     * @param $value
25
+     * @param DateTime $value
26 26
      * @return $this
27 27
      */
28 28
     public function setDateJoined($value)
Please login to merge, or discard this patch.
src/validators/OrganizationsValidator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     /**
39 39
      * Validates a single attribute.
40 40
      * Child classes must implement this method to provide the actual validation logic.
41
-     * @param Model|OrganizationsAssociatedToUserBehavior $model the data model to be validated
41
+     * @param \craft\elements\User $model the data model to be validated
42 42
      * @param string $attribute the name of the attribute to be validated.
43 43
      */
44 44
     public function validateAttribute($model, $attribute)
Please login to merge, or discard this patch.
src/relationships/OrganizationRelationship.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -227,8 +227,8 @@
 block discarded – undo
227 227
      *******************************************/
228 228
 
229 229
     /**
230
-     * @param UserAssociation|Organization|int|array|null $object
231
-     * @return int|null
230
+     * @param UserAssociation $object
231
+     * @return string
232 232
      */
233 233
     protected function findKey($object = null)
234 234
     {
Please login to merge, or discard this patch.
src/relationships/UserRelationship.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -219,8 +219,8 @@
 block discarded – undo
219 219
      *******************************************/
220 220
 
221 221
     /**
222
-     * @param UserAssociation|User|int|array|null $object
223
-     * @return int|null
222
+     * @param UserAssociation $object
223
+     * @return string
224 224
      */
225 225
     protected function findKey($object = null)
226 226
     {
Please login to merge, or discard this patch.
src/relationships/RelationshipTrait.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @param $objects
139 139
      * @param array $attributes
140
-     * @return RelationshipInterface
140
+     * @return RelationshipTrait
141 141
      */
142 142
     public function add($objects, array $attributes = []): RelationshipInterface
143 143
     {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * @param $object
153 153
      * @param array $attributes
154
-     * @return RelationshipInterface
154
+     * @return RelationshipTrait
155 155
      */
156 156
     private function addOne($object, array $attributes = []): RelationshipInterface
157 157
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
     /**
189 189
      * @param $objects
190
-     * @return RelationshipInterface
190
+     * @return RelationshipTrait
191 191
      */
192 192
     public function remove($objects): RelationshipInterface
193 193
     {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
     /**
245 245
      * Reset associations
246
-     * @return RelationshipInterface
246
+     * @return RelationshipTrait
247 247
      */
248 248
     public function reset(): RelationshipInterface
249 249
     {
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
     /**
256 256
      * Reset associations
257
-     * @return RelationshipInterface
257
+     * @return RelationshipTrait
258 258
      */
259 259
     public function clear(): RelationshipInterface
260 260
     {
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
      * Update a relation that's already association.
336 336
      *
337 337
      * @param Collection $collection
338
-     * @param $association
338
+     * @param ActiveRecord $association
339 339
      */
340 340
     protected function updateCollection(Collection $collection, $association)
341 341
     {
Please login to merge, or discard this patch.
src/relationships/OrganizationTypeRelationship.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,8 +210,8 @@
 block discarded – undo
210 210
      *******************************************/
211 211
 
212 212
     /**
213
-     * @param OrganizationTypeAssociation|OrganizationType|int|array|null $object
214
-     * @return int|null
213
+     * @param OrganizationTypeAssociation $object
214
+     * @return string
215 215
      */
216 216
     protected function findKey($object = null)
217 217
     {
Please login to merge, or discard this patch.
src/relationships/UserTypeRelationship.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -281,8 +281,8 @@
 block discarded – undo
281 281
     }
282 282
 
283 283
     /**
284
-     * @param UserTypeAssociation|UserType|int|array|null $object
285
-     * @return int|null
284
+     * @param UserAssociation $object
285
+     * @return string
286 286
      */
287 287
     protected function findKey($object = null)
288 288
     {
Please login to merge, or discard this patch.