Completed
Push — develop ( 662221...63bbd7 )
by Nate
07:21 queued 03:08
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/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/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.
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.