Completed
Push — develop ( 3644a8...72e19e )
by Nate
06:59
created
src/services/ResourceAssociations.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
     }
186 186
 
187 187
     /**
188
-     * @param $source
188
+     * @param string $source
189 189
      * @param int $fieldId
190 190
      * @param int $siteId
191 191
      * @return array
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 use flipbox\craft\sortable\associations\services\SortableAssociations;
17 17
 use flipbox\ember\services\traits\records\Accessor;
18 18
 use flipbox\ember\validators\MinMaxValidator;
19
+use flipbox\hubspot\HubSpot;
19 20
 use flipbox\hubspot\db\ResourceAssociationQuery;
20 21
 use flipbox\hubspot\fields\Resources;
21
-use flipbox\hubspot\HubSpot;
22 22
 use flipbox\hubspot\records\ResourceAssociation;
23 23
 
24 24
 /**
Please login to merge, or discard this patch.
src/cp/actions/fields/CreateItem.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 use Craft;
12 12
 use craft\base\ElementInterface;
13 13
 use flipbox\ember\actions\traits\Manage;
14
-use flipbox\hubspot\fields\Resources;
15 14
 use flipbox\hubspot\HubSpot;
15
+use flipbox\hubspot\fields\Resources;
16 16
 use flipbox\hubspot\records\ResourceAssociation;
17 17
 use yii\base\Action;
18 18
 use yii\web\HttpException;
Please login to merge, or discard this patch.
src/helpers/TransformerHelper.php 1 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\hubspot\helpers;
10 10
 
11
-use flipbox\hubspot\HubSpot;
12
-use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
13 11
 use Flipbox\Skeleton\Helpers\ObjectHelper;
14 12
 use Flipbox\Transform\Transformers\TransformerInterface;
13
+use flipbox\hubspot\HubSpot;
14
+use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
15 15
 
16 16
 /**
17 17
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
src/services/resources/ContactListContacts.php 2 patches
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,6 +8,11 @@  discard block
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources;
10 10
 
11
+use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\AddContacts;
12
+use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\GetContacts;
13
+use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\RemoveContacts;
14
+use League\Pipeline\PipelineBuilderInterface;
15
+use Psr\SimpleCache\CacheInterface;
11 16
 use craft\base\Element;
12 17
 use craft\base\ElementInterface;
13 18
 use flipbox\hubspot\connections\ConnectionInterface;
@@ -17,11 +22,6 @@  discard block
 block discarded – undo
17 22
 use flipbox\hubspot\helpers\TransformerHelper;
18 23
 use flipbox\hubspot\pipeline\Resource;
19 24
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
20
-use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\AddContacts;
21
-use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\GetContacts;
22
-use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\RemoveContacts;
23
-use League\Pipeline\PipelineBuilderInterface;
24
-use Psr\SimpleCache\CacheInterface;
25 25
 use yii\base\Component;
26 26
 
27 27
 /**
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     /**
41 41
      * @inheritdoc
42
-     * @return ContactListContactsCriteria
42
+     * @return ContactListContactsCriteriaInterface
43 43
      */
44 44
     public function getCriteria(array $criteria = []): ContactListContactsCriteriaInterface
45 45
     {
Please login to merge, or discard this patch.
src/services/ResourcesField.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
 use flipbox\craft\sortable\associations\db\SortableAssociationQueryInterface;
17 17
 use flipbox\craft\sortable\associations\records\SortableAssociationInterface;
18 18
 use flipbox\craft\sortable\associations\services\SortableFields;
19
+use flipbox\hubspot\HubSpot;
19 20
 use flipbox\hubspot\db\ResourceAssociationQuery;
20 21
 use flipbox\hubspot\events\RegisterResourceFieldActionsEvent;
22
+use flipbox\hubspot\fields\Resources;
21 23
 use flipbox\hubspot\fields\actions\ResourceActionInterface;
22 24
 use flipbox\hubspot\fields\actions\ResourceItemActionInterface;
23
-use flipbox\hubspot\fields\Resources;
24
-use flipbox\hubspot\HubSpot;
25 25
 use flipbox\hubspot\records\ResourceAssociation;
26 26
 use flipbox\hubspot\web\assets\resources\Resources as ResourcesAsset;
27 27
 use yii\base\Exception;
Please login to merge, or discard this patch.
src/transformers/elements/HubSpotId.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\transformers\elements;
10 10
 
11
+use Flipbox\Transform\Transformers\AbstractSimpleTransformer;
11 12
 use craft\base\ElementInterface;
12 13
 use craft\helpers\Json;
13
-use flipbox\hubspot\fields\Resources;
14 14
 use flipbox\hubspot\HubSpot;
15
-use Flipbox\Transform\Transformers\AbstractSimpleTransformer;
15
+use flipbox\hubspot\fields\Resources;
16 16
 
17 17
 class HubSpotId extends AbstractSimpleTransformer
18 18
 {
Please login to merge, or discard this patch.
src/patron/connections/AccessTokenConnection.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,9 +8,8 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\patron\connections;
10 10
 
11
-use flipbox\hubspot\connections\ConnectionInterface;
12
-use flipbox\hubspot\connections\IntegrationConnectionInterface;
13 11
 use Flipbox\OAuth2\Client\Provider\HubSpotResourceOwner;
12
+use flipbox\hubspot\connections\IntegrationConnectionInterface;
14 13
 use yii\base\BaseObject;
15 14
 
16 15
 /**
Please login to merge, or discard this patch.
src/fields/Resources.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
 use craft\elements\db\ElementQueryInterface;
15 15
 use flipbox\ember\helpers\ModelHelper;
16 16
 use flipbox\ember\validators\MinMaxValidator;
17
+use flipbox\hubspot\HubSpot;
17 18
 use flipbox\hubspot\criteria\CompanyCriteria;
18 19
 use flipbox\hubspot\criteria\ContactCriteria;
19 20
 use flipbox\hubspot\criteria\ContactListCriteria;
20 21
 use flipbox\hubspot\criteria\ObjectCriteria;
21 22
 use flipbox\hubspot\criteria\ObjectCriteriaInterface;
22 23
 use flipbox\hubspot\db\ResourceAssociationQuery;
23
-use flipbox\hubspot\HubSpot;
24 24
 use flipbox\hubspot\records\ResourceAssociation;
25 25
 use flipbox\hubspot\services\resources\Companies;
26 26
 use flipbox\hubspot\services\resources\ContactLists;
Please login to merge, or discard this patch.
src/queue/jobs/AbstractSyncElementJob.php 1 patch
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,11 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use Craft;
6 6
 use craft\base\ElementInterface;
7
-use craft\db\Query;
8
-use craft\elements\db\ElementQuery;
9 7
 use craft\queue\BaseJob;
10
-use flipbox\hubspot\fields\Resources;
11 8
 use flipbox\hubspot\HubSpot;
9
+use flipbox\hubspot\fields\Resources;
12 10
 use yii\base\Component;
13 11
 use yii\base\InvalidConfigException;
14 12
 
Please login to merge, or discard this patch.