Completed
Push — develop ( 323169...d03a0f )
by Nate
02:15
created
src/actions/organizations/DeleteOrganization.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 namespace flipbox\organizations\actions\organizations;
10 10
 
11 11
 use flipbox\craft\ember\actions\elements\DeleteElement;
12
-use flipbox\organizations\elements\Organization;
13 12
 use flipbox\organizations\elements\Organization as OrganizationElement;
14 13
 
15 14
 /**
Please login to merge, or discard this patch.
src/actions/organizations/ViewOrganization.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 namespace flipbox\organizations\actions\organizations;
10 10
 
11 11
 use flipbox\craft\ember\actions\elements\ViewElement;
12
-use flipbox\organizations\elements\Organization;
13 12
 use flipbox\organizations\elements\Organization as OrganizationElement;
14 13
 
15 14
 /**
Please login to merge, or discard this patch.
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/cp/actions/general/Update.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
 
11 11
 use Craft;
12 12
 use flipbox\craft\ember\actions\models\CreateModel;
13
+use flipbox\organizations\Organizations;
13 14
 use flipbox\organizations\cp\actions\general\traits\SiteSettingAttributesTrait;
14 15
 use flipbox\organizations\models\Settings;
15 16
 use flipbox\organizations\models\SiteSettings;
16
-use flipbox\organizations\Organizations;
17 17
 use yii\base\Model;
18 18
 use yii\web\HttpException;
19 19
 
Please login to merge, or discard this patch.
src/cp/actions/organization/SwitchType.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,8 @@
 block discarded – undo
13 13
 use flipbox\craft\ember\actions\LookupTrait;
14 14
 use flipbox\craft\ember\actions\PopulateTrait;
15 15
 use flipbox\organizations\actions\organizations\PopulateOrganizationTrait;
16
-use flipbox\organizations\cp\controllers\OrganizationTabsTrait;
17 16
 use flipbox\organizations\cp\controllers\OrganizationSitesTrait;
18
-use flipbox\organizations\elements\Organization;
17
+use flipbox\organizations\cp\controllers\OrganizationTabsTrait;
19 18
 use flipbox\organizations\elements\Organization as OrganizationElement;
20 19
 use yii\base\Action;
21 20
 
Please login to merge, or discard this patch.
src/elements/Organization.php 1 patch
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,21 +10,20 @@
 block discarded – undo
10 10
 
11 11
 use Craft;
12 12
 use craft\base\Element;
13
+use craft\elements\User;
13 14
 use craft\elements\actions\Edit as EditAction;
14 15
 use craft\elements\actions\SetStatus;
15 16
 use craft\elements\db\ElementQueryInterface;
16
-use craft\elements\User;
17 17
 use craft\helpers\DateTimeHelper;
18 18
 use craft\helpers\Json;
19 19
 use craft\helpers\StringHelper;
20 20
 use craft\helpers\UrlHelper as UrlHelper;
21 21
 use flipbox\craft\ember\elements\ExplicitElementTrait;
22 22
 use flipbox\craft\ember\helpers\ModelHelper;
23
-use flipbox\organizations\models\DateJoinedAttributeTrait;
24 23
 use flipbox\organizations\Organizations as OrganizationPlugin;
24
+use flipbox\organizations\models\DateJoinedAttributeTrait;
25 25
 use flipbox\organizations\queries\OrganizationQuery;
26 26
 use flipbox\organizations\records\Organization as OrganizationRecord;
27
-use flipbox\organizations\records\OrganizationType;
28 27
 use flipbox\organizations\records\OrganizationType as TypeModel;
29 28
 use yii\base\ErrorException as Exception;
30 29
 
Please login to merge, or discard this patch.
src/objects/DateJoinedMutatorTrait.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\organizations\objects;
10 10
 
11
-use craft\helpers\DateTimeHelper;
12 11
 use DateTime;
12
+use craft\helpers\DateTimeHelper;
13 13
 
14 14
 /**
15 15
  * @property DateTime|null $dateJoined
Please login to merge, or discard this 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/behaviors/OrganizationsAssociatedToUserBehavior.php 2 patches
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.
Unused Use Statements   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,14 +5,11 @@
 block discarded – undo
5 5
 use Craft;
6 6
 use craft\elements\User;
7 7
 use craft\events\ModelEvent;
8
-use flipbox\craft\ember\helpers\QueryHelper;
8
+use flipbox\organizations\Organizations as OrganizationPlugin;
9 9
 use flipbox\organizations\elements\Organization;
10
-use flipbox\organizations\relationships\RelationshipInterface;
11 10
 use flipbox\organizations\relationships\OrganizationRelationship;
12
-use flipbox\organizations\Organizations as OrganizationPlugin;
13
-use flipbox\organizations\queries\OrganizationQuery;
11
+use flipbox\organizations\relationships\RelationshipInterface;
14 12
 use flipbox\organizations\validators\OrganizationsValidator;
15
-use Tightenco\Collect\Support\Collection;
16 13
 use yii\base\Behavior;
17 14
 use yii\base\Event;
18 15
 use yii\base\Exception;
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.