Completed
Push — develop ( ad5b3d...fe99e6 )
by Nate
20:43 queued 07:12
created
src/pipeline/Resource.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\pipeline;
10 10
 
11
-use flipbox\hubspot\HubSpot;
12
-use flipbox\hubspot\pipeline\pipelines\HttpPipeline;
13
-use flipbox\hubspot\pipeline\stages\TransformerCollectionStage;
14
-use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
15 11
 use Flipbox\Pipeline\Builders\BuilderTrait;
16 12
 use Flipbox\Skeleton\Object\AbstractObject;
17 13
 use League\Pipeline\PipelineBuilderInterface;
18 14
 use Psr\Log\LoggerInterface;
15
+use flipbox\hubspot\HubSpot;
16
+use flipbox\hubspot\pipeline\pipelines\HttpPipeline;
17
+use flipbox\hubspot\pipeline\stages\TransformerCollectionStage;
18
+use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
19 19
 
20 20
 /**
21 21
  * A Relay pipeline builder intended to make building the Relay and Pipeline easier.
Please login to merge, or discard this patch.
src/services/resources/CompanyContacts.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * @param CompanyContactsBuilderInterface $builder
187 187
      * @param ConnectionInterface|null $connection
188 188
      * @param CacheInterface|null $cache
189
-     * @return callable
189
+     * @return \Flipbox\Relay\Runner\Runner
190 190
      * @throws \yii\base\InvalidConfigException
191 191
      */
192 192
     public function httpAddRelay(
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      * @param string $contactId
208 208
      * @param ConnectionInterface|null $connection
209 209
      * @param CacheInterface|null $cache
210
-     * @return callable
210
+     * @return \Flipbox\Relay\Runner\Runner
211 211
      * @throws \yii\base\InvalidConfigException
212 212
      */
213 213
     public function rawHttpAddRelay(
@@ -248,8 +248,8 @@  discard block
 block discarded – undo
248 248
     /**
249 249
      * @param string $companyId
250 250
      * @param string $contactId
251
-     * @param ConnectionInterface|null $connection
252
-     * @param CacheInterface|null $cache
251
+     * @param ConnectionInterface $connection
252
+     * @param CacheInterface $cache
253 253
      * @return ResponseInterface
254 254
      * @throws \yii\base\InvalidConfigException
255 255
      */
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
      * @param CompanyContactsBuilderInterface $builder
385 385
      * @param ConnectionInterface|null $connection
386 386
      * @param CacheInterface|null $cache
387
-     * @return callable
387
+     * @return \Flipbox\Relay\Runner\Runner
388 388
      * @throws \yii\base\InvalidConfigException
389 389
      */
390 390
     public function httpRemoveRelay(
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
      * @param string $contactId
406 406
      * @param ConnectionInterface|null $connection
407 407
      * @param CacheInterface|null $cache
408
-     * @return callable
408
+     * @return \Flipbox\Relay\Runner\Runner
409 409
      * @throws \yii\base\InvalidConfigException
410 410
      */
411 411
     public function rawHttpRemoveRelay(
@@ -446,8 +446,8 @@  discard block
 block discarded – undo
446 446
     /**
447 447
      * @param string $companyId
448 448
      * @param string $contactId
449
-     * @param ConnectionInterface|null $connection
450
-     * @param CacheInterface|null $cache
449
+     * @param ConnectionInterface $connection
450
+     * @param CacheInterface $cache
451 451
      * @return ResponseInterface
452 452
      * @throws \yii\base\InvalidConfigException
453 453
      */
Please login to merge, or discard this patch.
Unused Use Statements   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,6 +8,13 @@  discard block
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources;
10 10
 
11
+use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Add;
12
+use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\All;
13
+use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Remove;
14
+use League\Pipeline\PipelineBuilderInterface;
15
+use Psr\Http\Message\ResponseInterface;
16
+use Psr\SimpleCache\CacheInterface;
17
+use flipbox\hubspot\HubSpot;
11 18
 use flipbox\hubspot\builders\CompanyContactsBuilder;
12 19
 use flipbox\hubspot\builders\CompanyContactsBuilderInterface;
13 20
 use flipbox\hubspot\connections\ConnectionInterface;
@@ -16,16 +23,9 @@  discard block
 block discarded – undo
16 23
 use flipbox\hubspot\helpers\CacheHelper;
17 24
 use flipbox\hubspot\helpers\ConnectionHelper;
18 25
 use flipbox\hubspot\helpers\TransformerHelper;
19
-use flipbox\hubspot\HubSpot;
20 26
 use flipbox\hubspot\pipeline\Resource;
21 27
 use flipbox\hubspot\services\resources\traits\ReadObjectTrait;
22 28
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
23
-use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Add;
24
-use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\All;
25
-use Flipbox\Relay\HubSpot\Builder\Resources\Company\Contacts\Remove;
26
-use League\Pipeline\PipelineBuilderInterface;
27
-use Psr\Http\Message\ResponseInterface;
28
-use Psr\SimpleCache\CacheInterface;
29 29
 use yii\base\Component;
30 30
 
31 31
 /**
Please login to merge, or discard this patch.
src/services/resources/ContactListContacts.php 1 patch
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,6 +8,12 @@  discard block
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources;
10 10
 
11
+use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Add;
12
+use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\All;
13
+use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Remove;
14
+use League\Pipeline\PipelineBuilderInterface;
15
+use Psr\SimpleCache\CacheInterface;
16
+use flipbox\hubspot\HubSpot;
11 17
 use flipbox\hubspot\builders\ContactListContactsBuilder;
12 18
 use flipbox\hubspot\builders\ObjectBuilderInterface;
13 19
 use flipbox\hubspot\connections\ConnectionInterface;
@@ -16,17 +22,11 @@  discard block
 block discarded – undo
16 22
 use flipbox\hubspot\helpers\CacheHelper;
17 23
 use flipbox\hubspot\helpers\ConnectionHelper;
18 24
 use flipbox\hubspot\helpers\TransformerHelper;
19
-use flipbox\hubspot\HubSpot;
20 25
 use flipbox\hubspot\pipeline\Resource;
21 26
 use flipbox\hubspot\services\resources\traits\AddObjectTrait;
22 27
 use flipbox\hubspot\services\resources\traits\ReadObjectTrait;
23 28
 use flipbox\hubspot\services\resources\traits\RemoveObjectTrait;
24 29
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
25
-use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Add;
26
-use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\All;
27
-use Flipbox\Relay\HubSpot\Builder\Resources\ContactList\Contacts\Remove;
28
-use League\Pipeline\PipelineBuilderInterface;
29
-use Psr\SimpleCache\CacheInterface;
30 30
 use yii\base\Component;
31 31
 
32 32
 /**
Please login to merge, or discard this patch.
src/services/resources/traits/CreateObjectTrait.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,16 +8,16 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources\traits;
10 10
 
11
+use Flipbox\Relay\Builder\RelayBuilderInterface;
12
+use League\Pipeline\PipelineBuilderInterface;
13
+use Psr\Http\Message\ResponseInterface;
14
+use flipbox\hubspot\HubSpot;
11 15
 use flipbox\hubspot\builders\ObjectBuilderInterface;
12 16
 use flipbox\hubspot\connections\ConnectionInterface;
13 17
 use flipbox\hubspot\helpers\ConnectionHelper;
14 18
 use flipbox\hubspot\helpers\TransformerHelper;
15
-use flipbox\hubspot\HubSpot;
16 19
 use flipbox\hubspot\pipeline\Resource;
17 20
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
18
-use Flipbox\Relay\Builder\RelayBuilderInterface;
19
-use League\Pipeline\PipelineBuilderInterface;
20
-use Psr\Http\Message\ResponseInterface;
21 21
 
22 22
 /**
23 23
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
src/services/resources/traits/ReadObjectTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     }
165 165
 
166 166
     /**
167
-     * @param $id
167
+     * @param string|null $id
168 168
      * @param ConnectionInterface|null $connection
169 169
      * @param CacheInterface|null $cache
170 170
      * @return ResponseInterface
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 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 Flipbox\Relay\Builder\RelayBuilderInterface;
12
+use League\Pipeline\PipelineBuilderInterface;
13
+use Psr\Http\Message\ResponseInterface;
14
+use Psr\SimpleCache\CacheInterface;
15
+use flipbox\hubspot\HubSpot;
11 16
 use flipbox\hubspot\connections\ConnectionInterface;
12 17
 use flipbox\hubspot\criteria\ObjectCriteriaInterface;
13 18
 use flipbox\hubspot\helpers\CacheHelper;
14 19
 use flipbox\hubspot\helpers\ConnectionHelper;
15 20
 use flipbox\hubspot\helpers\TransformerHelper;
16
-use flipbox\hubspot\HubSpot;
17 21
 use flipbox\hubspot\pipeline\Resource;
18 22
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
19
-use Flipbox\Relay\Builder\RelayBuilderInterface;
20
-use League\Pipeline\PipelineBuilderInterface;
21
-use Psr\Http\Message\ResponseInterface;
22
-use Psr\SimpleCache\CacheInterface;
23 23
 
24 24
 /**
25 25
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
src/services/resources/traits/RemoveObjectTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,8 +172,8 @@
 block discarded – undo
172 172
     /**
173 173
      * @param string $id
174 174
      * @param array $payload
175
-     * @param ConnectionInterface|null $connection
176
-     * @param CacheInterface|null $cache
175
+     * @param ConnectionInterface $connection
176
+     * @param CacheInterface $cache
177 177
      * @return ResponseInterface
178 178
      * @throws \yii\base\InvalidConfigException
179 179
      */
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources\traits;
10 10
 
11
-use flipbox\hubspot\builders\ObjectBuilderInterface;
12
-use flipbox\hubspot\connections\ConnectionInterface;
13
-use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
14 11
 use League\Pipeline\PipelineBuilderInterface;
15 12
 use Psr\Http\Message\ResponseInterface;
16 13
 use Psr\SimpleCache\CacheInterface;
14
+use flipbox\hubspot\builders\ObjectBuilderInterface;
15
+use flipbox\hubspot\connections\ConnectionInterface;
16
+use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
17 17
 
18 18
 /**
19 19
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
src/services/resources/traits/UpdateObjectTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,8 +172,8 @@
 block discarded – undo
172 172
     /**
173 173
      * @param string $id
174 174
      * @param array $payload
175
-     * @param ConnectionInterface|null $connection
176
-     * @param CacheInterface|null $cache
175
+     * @param ConnectionInterface $connection
176
+     * @param CacheInterface $cache
177 177
      * @return ResponseInterface
178 178
      * @throws \yii\base\InvalidConfigException
179 179
      */
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 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 Flipbox\Relay\Builder\RelayBuilderInterface;
12
+use League\Pipeline\PipelineBuilderInterface;
13
+use Psr\Http\Message\ResponseInterface;
14
+use Psr\SimpleCache\CacheInterface;
15
+use flipbox\hubspot\HubSpot;
11 16
 use flipbox\hubspot\builders\ObjectBuilderInterface;
12 17
 use flipbox\hubspot\connections\ConnectionInterface;
13 18
 use flipbox\hubspot\helpers\CacheHelper;
14 19
 use flipbox\hubspot\helpers\ConnectionHelper;
15 20
 use flipbox\hubspot\helpers\TransformerHelper;
16
-use flipbox\hubspot\HubSpot;
17 21
 use flipbox\hubspot\pipeline\Resource;
18 22
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
19
-use Flipbox\Relay\Builder\RelayBuilderInterface;
20
-use League\Pipeline\PipelineBuilderInterface;
21
-use Psr\Http\Message\ResponseInterface;
22
-use Psr\SimpleCache\CacheInterface;
23 23
 
24 24
 /**
25 25
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
src/services/resources/traits/UpsertObjectTrait.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources\traits;
10 10
 
11
-use flipbox\hubspot\builders\ObjectBuilderInterface;
12
-use flipbox\hubspot\connections\ConnectionInterface;
13
-use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
14 11
 use League\Pipeline\PipelineBuilderInterface;
15 12
 use Psr\Http\Message\ResponseInterface;
16 13
 use Psr\SimpleCache\CacheInterface;
14
+use flipbox\hubspot\builders\ObjectBuilderInterface;
15
+use flipbox\hubspot\connections\ConnectionInterface;
16
+use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
17 17
 
18 18
 /**
19 19
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.