Completed
Push — master ( 53e590...136153 )
by Nate
16:58 queued 14:19
created
src/queue/jobs/AbstractSyncElementJob.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use Craft;
6 6
 use craft\base\ElementInterface;
7 7
 use craft\queue\BaseJob;
8
-use flipbox\hubspot\fields\Objects;
9 8
 use flipbox\hubspot\HubSpot;
9
+use flipbox\hubspot\fields\Objects;
10 10
 use yii\base\Component;
11 11
 use yii\base\InvalidConfigException;
12 12
 
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
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 use craft\base\ElementInterface;
13 13
 use flipbox\ember\actions\traits\Manage;
14 14
 use flipbox\ember\helpers\SiteHelper;
15
-use flipbox\hubspot\fields\Objects;
16 15
 use flipbox\hubspot\HubSpot;
16
+use flipbox\hubspot\fields\Objects;
17 17
 use flipbox\hubspot\records\ObjectAssociation;
18 18
 use yii\base\Action;
19 19
 use yii\web\HttpException;
Please login to merge, or discard this patch.
src/transformers/elements/ObjectId.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@
 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\Element;
12 13
 use craft\base\ElementInterface;
13 14
 use craft\helpers\Json;
14 15
 use flipbox\ember\helpers\SiteHelper;
15
-use flipbox\hubspot\fields\Objects;
16 16
 use flipbox\hubspot\HubSpot;
17
-use Flipbox\Transform\Transformers\AbstractSimpleTransformer;
17
+use flipbox\hubspot\fields\Objects;
18 18
 
19 19
 /**
20 20
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
src/services/resources/traits/SyncByElementTrait.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,8 @@  discard block
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\services\resources\traits;
10 10
 
11
+use League\Pipeline\PipelineBuilderInterface;
12
+use Psr\SimpleCache\CacheInterface;
11 13
 use craft\base\Element;
12 14
 use craft\base\ElementInterface;
13 15
 use flipbox\hubspot\connections\ConnectionInterface;
@@ -17,8 +19,6 @@  discard block
 block discarded – undo
17 19
 use flipbox\hubspot\traits\TransformElementIdTrait;
18 20
 use flipbox\hubspot\traits\TransformElementPayloadTrait;
19 21
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
20
-use League\Pipeline\PipelineBuilderInterface;
21
-use Psr\SimpleCache\CacheInterface;
22 22
 
23 23
 /**
24 24
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
     /**
33 33
      * @param string $id
34
-     * @param ConnectionInterface|string|null $connection
35
-     * @param CacheInterface|string|null $cache
36
-     * @param TransformerCollectionInterface|array|null $transformer
34
+     * @param null|ConnectionInterface $connection
35
+     * @param null|CacheInterface $cache
36
+     * @param null|TransformerCollectionInterface $transformer
37 37
      * @return PipelineBuilderInterface
38 38
      */
39 39
     public abstract function rawReadPipeline(
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * @param array $payload
48 48
      * @param string|null $identifier
49
-     * @param ConnectionInterface|string|null $connection
50
-     * @param CacheInterface|string|null $cache
51
-     * @param TransformerCollectionInterface|array|null $transformer
49
+     * @param null|ConnectionInterface $connection
50
+     * @param null|CacheInterface $cache
51
+     * @param null|TransformerCollectionInterface $transformer
52 52
      * @return PipelineBuilderInterface
53 53
      */
54 54
     public abstract function rawUpsertPipeline(
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * @param ElementInterface $element
64 64
      * @param Objects $field
65
-     * @param ConnectionInterface|string|null $connection
66
-     * @param CacheInterface|string|null $cache
67
-     * @param TransformerCollectionInterface|array|null $transformer
65
+     * @param null|ConnectionInterface $connection
66
+     * @param null|CacheInterface $cache
67
+     * @param null|TransformerCollectionInterface $transformer
68 68
      * @return bool
69 69
      */
70 70
     public function syncDown(
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * @param ElementInterface $element
99 99
      * @param Objects $field
100
-     * @param ConnectionInterface|string|null $connection
101
-     * @param CacheInterface|string|null $cache
102
-     * @param TransformerCollectionInterface|array|null $transformer
103
-     * @return false|string
100
+     * @param null|ConnectionInterface $connection
101
+     * @param null|CacheInterface $cache
102
+     * @param null|TransformerCollectionInterface $transformer
103
+     * @return boolean
104 104
      */
105 105
     public function syncUp(
106 106
         ElementInterface $element,
Please login to merge, or discard this patch.
src/criteria/traits/TransformerCollectionTrait.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\hubspot\criteria\traits;
10 10
 
11 11
 use flipbox\hubspot\helpers\TransformerHelper;
12
-use flipbox\hubspot\traits\TransformerResolverTrait;
13 12
 use flipbox\hubspot\transformers\collections\DynamicTransformerCollection;
14 13
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
15 14
 
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,11 +8,11 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\hubspot\helpers;
10 10
 
11
+use Flipbox\Skeleton\Helpers\ObjectHelper;
12
+use Flipbox\Transform\Transformers\TransformerInterface;
11 13
 use flipbox\hubspot\HubSpot;
12 14
 use flipbox\hubspot\transformers\collections\TransformerCollection;
13 15
 use flipbox\hubspot\transformers\collections\TransformerCollectionInterface;
14
-use Flipbox\Skeleton\Helpers\ObjectHelper;
15
-use Flipbox\Transform\Transformers\TransformerInterface;
16 16
 
17 17
 /**
18 18
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
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/traits/CreateObjectTrait.php 2 patches
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.
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * @param ObjectBuilderInterface $builder
35
-     * @param ConnectionInterface|string|null $connection
36
-     * @param TransformerCollectionInterface|array|null $transformer
35
+     * @param null|ConnectionInterface $connection
36
+     * @param null|TransformerCollectionInterface $transformer
37 37
      * @param null $source
38 38
      * @return mixed
39 39
      * @throws \yii\base\InvalidConfigException
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 
55 55
     /**
56 56
      * @param array $payload
57
-     * @param ConnectionInterface|string|null $connection
58
-     * @param TransformerCollectionInterface|array|null $transformer
57
+     * @param null|ConnectionInterface $connection
58
+     * @param null|TransformerCollectionInterface $transformer
59 59
      * @param null $source
60 60
      * @return mixed
61 61
      * @throws \yii\base\InvalidConfigException
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
 
76 76
     /**
77 77
      * @param ObjectBuilderInterface $builder
78
-     * @param ConnectionInterface|string|null $connection
79
-     * @param TransformerCollectionInterface|array|null $transformer
78
+     * @param null|ConnectionInterface $connection
79
+     * @param null|TransformerCollectionInterface $transformer
80 80
      * @return PipelineBuilderInterface
81 81
      * @throws \yii\base\InvalidConfigException
82 82
      */
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * @param array $payload
97
-     * @param ConnectionInterface|string|null $connection
98
-     * @param TransformerCollectionInterface|array|null $transformer
97
+     * @param null|ConnectionInterface $connection
98
+     * @param null|TransformerCollectionInterface $transformer
99 99
      * @return PipelineBuilderInterface
100 100
      * @throws \yii\base\InvalidConfigException
101 101
      */
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
     /**
125 125
      * @param ObjectBuilderInterface $builder
126
-     * @param ConnectionInterface|string|null $connection
126
+     * @param null|ConnectionInterface $connection
127 127
      * @return callable
128 128
      * @throws \yii\base\InvalidConfigException
129 129
      */
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     /**
141 141
      * @param array $payload
142
-     * @param ConnectionInterface|string|null $connection
142
+     * @param null|ConnectionInterface $connection
143 143
      * @return callable
144 144
      * @throws \yii\base\InvalidConfigException
145 145
      */
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 
162 162
     /**
163 163
      * @param ObjectBuilderInterface $builder
164
-     * @param ConnectionInterface|string|null $connection
164
+     * @param null|ConnectionInterface $connection
165 165
      * @return ResponseInterface
166 166
      * @throws \yii\base\InvalidConfigException
167 167
      */
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
     /**
179 179
      * @param array $payload
180
-     * @param ConnectionInterface|string|null $connection
180
+     * @param null|ConnectionInterface $connection
181 181
      * @return ResponseInterface
182 182
      * @throws \yii\base\InvalidConfigException
183 183
      */
Please login to merge, or discard this patch.
src/services/resources/traits/DeleteObjectTrait.php 2 patches
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.
Doc Comments   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * @param ObjectBuilderInterface $builder
37
-     * @param ConnectionInterface|string|null $connection
38
-     * @param CacheInterface|string|null $cache
39
-     * @param TransformerCollectionInterface|array|null $transformer
37
+     * @param null|ConnectionInterface $connection
38
+     * @param null|CacheInterface $cache
39
+     * @param null|TransformerCollectionInterface $transformer
40 40
      * @param null $source
41 41
      * @return mixed
42 42
      * @throws \yii\base\InvalidConfigException
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
 
60 60
     /**
61 61
      * @param string $id
62
-     * @param ConnectionInterface|string|null $connection
63
-     * @param CacheInterface|string|null $cache
64
-     * @param TransformerCollectionInterface|array|null $transformer
62
+     * @param null|ConnectionInterface $connection
63
+     * @param null|CacheInterface $cache
64
+     * @param null|TransformerCollectionInterface $transformer
65 65
      * @param null $source
66 66
      * @return mixed
67 67
      * @throws \yii\base\InvalidConfigException
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
 
84 84
     /**
85 85
      * @param ObjectBuilderInterface $builder
86
-     * @param ConnectionInterface|string|null $connection
87
-     * @param CacheInterface|string|null $cache
88
-     * @param TransformerCollectionInterface|array|null $transformer
86
+     * @param null|ConnectionInterface $connection
87
+     * @param null|CacheInterface $cache
88
+     * @param null|TransformerCollectionInterface $transformer
89 89
      * @return PipelineBuilderInterface
90 90
      * @throws \yii\base\InvalidConfigException
91 91
      */
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
 
106 106
     /**
107 107
      * @param string $id
108
-     * @param ConnectionInterface|string|null $connection
109
-     * @param CacheInterface|string|null $cache
110
-     * @param TransformerCollectionInterface|array|null $transformer
108
+     * @param null|ConnectionInterface $connection
109
+     * @param null|CacheInterface $cache
110
+     * @param null|TransformerCollectionInterface $transformer
111 111
      * @return PipelineBuilderInterface
112 112
      * @throws \yii\base\InvalidConfigException
113 113
      */
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
 
138 138
     /**
139 139
      * @param ObjectBuilderInterface $builder
140
-     * @param ConnectionInterface|string|null $connection
141
-     * @param CacheInterface|string|null $cache
140
+     * @param null|ConnectionInterface $connection
141
+     * @param null|CacheInterface $cache
142 142
      * @return callable
143 143
      * @throws \yii\base\InvalidConfigException
144 144
      */
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
 
157 157
     /**
158 158
      * @param string $id
159
-     * @param ConnectionInterface|string|null $connection
160
-     * @param CacheInterface|string|null $cache
159
+     * @param null|ConnectionInterface $connection
160
+     * @param null|CacheInterface $cache
161 161
      * @return callable
162 162
      * @throws \yii\base\InvalidConfigException
163 163
      */
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
 
182 182
     /**
183 183
      * @param ObjectBuilderInterface $builder
184
-     * @param ConnectionInterface|string|null $connection
185
-     * @param CacheInterface|string|null $cache
184
+     * @param null|ConnectionInterface $connection
185
+     * @param null|CacheInterface $cache
186 186
      * @return ResponseInterface
187 187
      * @throws \yii\base\InvalidConfigException
188 188
      */
@@ -200,8 +200,8 @@  discard block
 block discarded – undo
200 200
 
201 201
     /**
202 202
      * @param string $id
203
-     * @param ConnectionInterface|string|null $connection
204
-     * @param CacheInterface|string|null $cache
203
+     * @param null|ConnectionInterface $connection
204
+     * @param null|CacheInterface $cache
205 205
      * @return ResponseInterface
206 206
      * @throws \yii\base\InvalidConfigException
207 207
      */
Please login to merge, or discard this patch.