Completed
Push — master ( 136153...d5a3eb )
by Nate
19:29 queued 17:38
created
src/services/resources/CompanyContacts.php 1 patch
Unused Use Statements   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,6 +8,14 @@  discard block
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources;
10 10
 
11
+use Flipbox\Relay\Builder\RelayBuilderInterface;
12
+use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Add;
13
+use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\All;
14
+use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Remove;
15
+use League\Pipeline\PipelineBuilderInterface;
16
+use Psr\Http\Message\ResponseInterface;
17
+use Psr\SimpleCache\CacheInterface;
18
+use flipbox\hubspot\HubSpot;
11 19
 use flipbox\hubspot\builders\CompanyContactsBuilder;
12 20
 use flipbox\hubspot\builders\CompanyContactsBuilderInterface;
13 21
 use flipbox\hubspot\connections\ConnectionInterface;
@@ -16,19 +24,11 @@  discard block
 block discarded – undo
16 24
 use flipbox\hubspot\helpers\CacheHelper;
17 25
 use flipbox\hubspot\helpers\ConnectionHelper;
18 26
 use flipbox\hubspot\helpers\TransformerHelper;
19
-use flipbox\hubspot\HubSpot;
20 27
 use flipbox\hubspot\pipeline\Resource;
21 28
 use flipbox\hubspot\services\resources\traits\ReadObjectTrait;
29
+use flipbox\hubspot\transformers\DynamicModelSuccess;
22 30
 use flipbox\hubspot\transformers\collections\DynamicTransformerCollection;
23 31
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
24
-use flipbox\hubspot\transformers\DynamicModelSuccess;
25
-use Flipbox\Relay\Builder\RelayBuilderInterface;
26
-use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Add;
27
-use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\All;
28
-use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Remove;
29
-use League\Pipeline\PipelineBuilderInterface;
30
-use Psr\Http\Message\ResponseInterface;
31
-use Psr\SimpleCache\CacheInterface;
32 32
 use yii\base\Component;
33 33
 
34 34
 /**
Please login to merge, or discard this patch.
src/services/resources/ContactListContacts.php 1 patch
Unused Use Statements   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,6 +8,14 @@  discard block
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources;
10 10
 
11
+use Flipbox\Relay\Builder\RelayBuilderInterface;
12
+use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Add;
13
+use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\All;
14
+use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Remove;
15
+use League\Pipeline\PipelineBuilderInterface;
16
+use Psr\Http\Message\ResponseInterface;
17
+use Psr\SimpleCache\CacheInterface;
18
+use flipbox\hubspot\HubSpot;
11 19
 use flipbox\hubspot\builders\ContactListContactsBuilder;
12 20
 use flipbox\hubspot\builders\ObjectBuilderInterface;
13 21
 use flipbox\hubspot\connections\ConnectionInterface;
@@ -16,19 +24,11 @@  discard block
 block discarded – undo
16 24
 use flipbox\hubspot\helpers\CacheHelper;
17 25
 use flipbox\hubspot\helpers\ConnectionHelper;
18 26
 use flipbox\hubspot\helpers\TransformerHelper;
19
-use flipbox\hubspot\HubSpot;
20 27
 use flipbox\hubspot\pipeline\Resource;
21 28
 use flipbox\hubspot\services\resources\traits\ReadObjectTrait;
29
+use flipbox\hubspot\transformers\DynamicModelSuccess;
22 30
 use flipbox\hubspot\transformers\collections\DynamicTransformerCollection;
23 31
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
24
-use flipbox\hubspot\transformers\DynamicModelSuccess;
25
-use Flipbox\Relay\Builder\RelayBuilderInterface;
26
-use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Add;
27
-use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\All;
28
-use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Remove;
29
-use League\Pipeline\PipelineBuilderInterface;
30
-use Psr\Http\Message\ResponseInterface;
31
-use Psr\SimpleCache\CacheInterface;
32 32
 use yii\base\Component;
33 33
 
34 34
 /**
Please login to merge, or discard this patch.
src/services/resources/Contacts.php 1 patch
Unused Use Statements   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,27 +8,27 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources;
10 10
 
11
+use Flipbox\Relay\HubSpot\Builder\Resources\Contact\Create;
12
+use Flipbox\Relay\HubSpot\Builder\Resources\Contact\Delete;
13
+use Flipbox\Relay\HubSpot\Builder\Resources\Contact\ReadById;
14
+use Flipbox\Relay\HubSpot\Builder\Resources\Contact\Update;
15
+use Psr\SimpleCache\CacheInterface;
11 16
 use craft\base\Element;
12 17
 use craft\base\ElementInterface;
13 18
 use craft\helpers\ArrayHelper;
14 19
 use craft\helpers\Json;
20
+use flipbox\hubspot\HubSpot;
15 21
 use flipbox\hubspot\builders\ContactBuilder;
16 22
 use flipbox\hubspot\builders\ObjectBuilderInterface;
17 23
 use flipbox\hubspot\connections\ConnectionInterface;
18 24
 use flipbox\hubspot\criteria\ContactCriteria;
19 25
 use flipbox\hubspot\criteria\ObjectCriteriaInterface;
20 26
 use flipbox\hubspot\fields\Objects;
21
-use flipbox\hubspot\HubSpot;
22 27
 use flipbox\hubspot\pipeline\Resource;
23 28
 use flipbox\hubspot\pipeline\stages\ElementAssociationStage;
29
+use flipbox\hubspot\transformers\DynamicModelSuccess;
24 30
 use flipbox\hubspot\transformers\collections\DynamicTransformerCollection;
25 31
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
26
-use flipbox\hubspot\transformers\DynamicModelSuccess;
27
-use Flipbox\Relay\HubSpot\Builder\Resources\Contact\Create;
28
-use Flipbox\Relay\HubSpot\Builder\Resources\Contact\Delete;
29
-use Flipbox\Relay\HubSpot\Builder\Resources\Contact\ReadById;
30
-use Flipbox\Relay\HubSpot\Builder\Resources\Contact\Update;
31
-use Psr\SimpleCache\CacheInterface;
32 32
 use yii\base\Component;
33 33
 
34 34
 /**
Please login to merge, or discard this patch.
src/services/resources/traits/SyncByElementTrait.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * @param string $id
35
-     * @param ConnectionInterface|string|null $connection
36
-     * @param CacheInterface|string|null $cache
35
+     * @param null|ConnectionInterface $connection
36
+     * @param null|CacheInterface $cache
37 37
      * @return callable
38 38
      */
39 39
     public abstract function rawHttpReadRelay(
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * @param array $payload
47 47
      * @param string|null $identifier
48
-     * @param ConnectionInterface|string|null $connection
49
-     * @param CacheInterface|string|null $cache
48
+     * @param null|ConnectionInterface $connection
49
+     * @param null|CacheInterface $cache
50 50
      * @return callable
51 51
      * @throws \yii\base\InvalidConfigException
52 52
      */
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,18 +8,18 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources\traits;
10 10
 
11
+use Psr\SimpleCache\CacheInterface;
11 12
 use craft\base\Element;
12 13
 use craft\base\ElementInterface;
14
+use flipbox\hubspot\HubSpot;
13 15
 use flipbox\hubspot\connections\ConnectionInterface;
14 16
 use flipbox\hubspot\fields\Objects;
15 17
 use flipbox\hubspot\helpers\ConnectionHelper;
16
-use flipbox\hubspot\HubSpot;
17 18
 use flipbox\hubspot\pipeline\Resource;
18 19
 use flipbox\hubspot\pipeline\stages\ElementAssociationStage;
19 20
 use flipbox\hubspot\pipeline\stages\ElementSaveStage;
20 21
 use flipbox\hubspot\traits\TransformElementIdTrait;
21 22
 use flipbox\hubspot\traits\TransformElementPayloadTrait;
22
-use Psr\SimpleCache\CacheInterface;
23 23
 
24 24
 /**
25 25
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.