Completed
Push — develop ( e5b284...0f5a88 )
by Nate
05:39
created
src/objects/OrganizationTypeMutatorTrait.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     }
51 51
 
52 52
     /**
53
-     * @param $type
53
+     * @param \flipbox\craft\ember\records\ActiveRecord $type
54 54
      * @return static
55 55
      */
56 56
     public function setType($type = null)
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-     * @return OrganizationType|null
93
+     * @return \flipbox\craft\ember\records\ActiveRecord|null
94 94
      */
95 95
     protected function resolveType()
96 96
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
-     * @return OrganizationType|null
105
+     * @return null|\flipbox\craft\ember\records\ActiveRecord
106 106
      */
107 107
     private function resolveTypeFromId()
108 108
     {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
     /**
117 117
      * @param $type
118
-     * @return OrganizationType|null
118
+     * @return null|\flipbox\craft\ember\records\ActiveRecord
119 119
      */
120 120
     protected function internalResolveType($type = null)
121 121
     {
Please login to merge, or discard this patch.
src/validators/OrganizationsValidator.php 2 patches
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.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\organizations\validators;
10 10
 
11
+use Tightenco\Collect\Support\Collection;
11 12
 use craft\helpers\Json;
12
-use flipbox\organizations\behaviors\OrganizationsAssociatedToUserBehavior;
13 13
 use flipbox\organizations\Organizations as OrganizationPlugin;
14
-use Tightenco\Collect\Support\Collection;
14
+use flipbox\organizations\behaviors\OrganizationsAssociatedToUserBehavior;
15 15
 use yii\base\Model;
16 16
 use yii\validators\Validator;
17 17
 
Please login to merge, or discard this patch.
src/queries/OrganizationTypeQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     public $id;
62 62
 
63 63
     /**
64
-     * @param $value
64
+     * @param \Tightenco\Collect\Support\Collection $value
65 65
      * @return $this
66 66
      */
67 67
     public function id($value)
Please login to merge, or discard this patch.
src/behaviors/UserTypesAssociatedToUserBehavior.php 1 patch
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,11 +5,9 @@
 block discarded – undo
5 5
 use craft\elements\User;
6 6
 use flipbox\craft\ember\helpers\QueryHelper;
7 7
 use flipbox\organizations\elements\Organization;
8
-use flipbox\organizations\relationships\RelationshipInterface;
9
-use flipbox\organizations\relationships\UserTypeRelationship;
10 8
 use flipbox\organizations\queries\UserTypeQuery;
11 9
 use flipbox\organizations\records\UserType;
12
-use Tightenco\Collect\Support\Collection;
10
+use flipbox\organizations\relationships\RelationshipInterface;
13 11
 use yii\base\Behavior;
14 12
 use yii\base\Exception;
15 13
 
Please login to merge, or discard this patch.
src/events/handlers/SetOrganizationUserElementTableAttributeHtml.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 use craft\elements\User;
13 13
 use craft\events\SetElementTableAttributeHtmlEvent;
14 14
 use craft\helpers\Html;
15
-use flipbox\organizations\behaviors\OrganizationsAssociatedToUserBehavior;
16 15
 use flipbox\organizations\Organizations;
16
+use flipbox\organizations\behaviors\OrganizationsAssociatedToUserBehavior;
17 17
 use flipbox\organizations\records\UserAssociation;
18 18
 use flipbox\organizations\records\UserType;
19 19
 
Please login to merge, or discard this patch.
src/relationships/OrganizationTypeRelationship.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 
163 163
     /**
164 164
      * @param OrganizationTypeAssociation|OrganizationType|int|array|null $type
165
-     * @return OrganizationType|null
165
+     * @return null|\flipbox\craft\ember\records\ActiveRecord
166 166
      */
167 167
     protected function resolveType($type = null)
168 168
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,15 +8,15 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\organizations\relationships;
10 10
 
11
+use Tightenco\Collect\Support\Collection;
11 12
 use craft\helpers\ArrayHelper;
12 13
 use craft\helpers\Json;
13 14
 use flipbox\craft\ember\helpers\QueryHelper;
14
-use flipbox\organizations\elements\Organization;
15 15
 use flipbox\organizations\Organizations;
16
+use flipbox\organizations\elements\Organization;
16 17
 use flipbox\organizations\queries\OrganizationTypeAssociationQuery;
17 18
 use flipbox\organizations\records\OrganizationType;
18 19
 use flipbox\organizations\records\OrganizationTypeAssociation;
19
-use Tightenco\Collect\Support\Collection;
20 20
 
21 21
 /**
22 22
  * Manages Organization Types associated to Organizations
Please login to merge, or discard this patch.
src/relationships/RelationshipTrait.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 namespace flipbox\organizations\relationships;
10 10
 
11 11
 use Craft;
12
+use Tightenco\Collect\Support\Collection;
12 13
 use craft\base\ElementInterface;
13 14
 use craft\helpers\ArrayHelper;
14 15
 use flipbox\organizations\records\UserAssociation;
15
-use Tightenco\Collect\Support\Collection;
16 16
 use yii\base\Exception;
17 17
 use yii\db\ActiveRecord;
18 18
 use yii\db\QueryInterface;
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      *
139 139
      * @param $objects
140 140
      * @param array $attributes
141
-     * @return RelationshipInterface
141
+     * @return RelationshipTrait
142 142
      */
143 143
     public function add($objects, array $attributes = []): RelationshipInterface
144 144
     {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
     /**
165 165
      * @param $objects
166
-     * @return RelationshipInterface
166
+     * @return RelationshipTrait
167 167
      */
168 168
     public function remove($objects): RelationshipInterface
169 169
     {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
     /**
185 185
      * Reset associations
186
-     * @return RelationshipInterface
186
+     * @return RelationshipTrait
187 187
      */
188 188
     public function reset(): RelationshipInterface
189 189
     {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
     /**
196 196
      * Reset associations
197
-     * @return RelationshipInterface
197
+     * @return RelationshipTrait
198 198
      */
199 199
     public function clear(): RelationshipInterface
200 200
     {
Please login to merge, or discard this patch.
src/relationships/OrganizationRelationship.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,15 +8,15 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\organizations\relationships;
10 10
 
11
+use Tightenco\Collect\Support\Collection;
11 12
 use craft\elements\User;
12 13
 use craft\helpers\ArrayHelper;
13 14
 use craft\helpers\Json;
14 15
 use flipbox\craft\ember\helpers\QueryHelper;
15
-use flipbox\organizations\elements\Organization;
16 16
 use flipbox\organizations\Organizations;
17
+use flipbox\organizations\elements\Organization;
17 18
 use flipbox\organizations\queries\UserAssociationQuery;
18 19
 use flipbox\organizations\records\UserAssociation;
19
-use Tightenco\Collect\Support\Collection;
20 20
 
21 21
 /**
22 22
  * Manages Organizations associated to Users
Please login to merge, or discard this patch.
src/relationships/UserRelationship.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,16 +8,16 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\organizations\relationships;
10 10
 
11
-use craft\elements\db\UserQuery;
11
+use Tightenco\Collect\Support\Collection;
12 12
 use craft\elements\User;
13
+use craft\elements\db\UserQuery;
13 14
 use craft\helpers\ArrayHelper;
14 15
 use craft\helpers\Json;
15 16
 use flipbox\craft\ember\helpers\QueryHelper;
16
-use flipbox\organizations\elements\Organization;
17 17
 use flipbox\organizations\Organizations;
18
+use flipbox\organizations\elements\Organization;
18 19
 use flipbox\organizations\queries\UserAssociationQuery;
19 20
 use flipbox\organizations\records\UserAssociation;
20
-use Tightenco\Collect\Support\Collection;
21 21
 
22 22
 /**
23 23
  * Manages Users associated to Organizations
Please login to merge, or discard this patch.