@@ -143,7 +143,7 @@ |
||
143 | 143 | /** |
144 | 144 | * Logs a warning message. |
145 | 145 | * |
146 | - * @param $message |
|
146 | + * @param string $message |
|
147 | 147 | * @param string $category |
148 | 148 | */ |
149 | 149 | public static function warning($message, $category = 'hubspot') |
@@ -7,11 +7,10 @@ |
||
7 | 7 | use craft\helpers\UrlHelper; |
8 | 8 | use craft\web\Request; |
9 | 9 | use flipbox\craft\psr6\Cache; |
10 | -use flipbox\craft\psr6\events\RegisterCachePools; |
|
11 | 10 | use flipbox\hubspot\models\Settings as SettingsModel; |
12 | 11 | use flipbox\hubspot\patron\provider\HubSpot as HubSpotProvider; |
13 | -use flipbox\patron\modules\configuration\events\RegisterProviders; |
|
14 | 12 | use flipbox\patron\modules\configuration\Module as PatronConfiguration; |
13 | +use flipbox\patron\modules\configuration\events\RegisterProviders; |
|
15 | 14 | use yii\base\Event; |
16 | 15 | |
17 | 16 | /** |
@@ -3,18 +3,18 @@ |
||
3 | 3 | namespace flipbox\hubspot\modules\http\services; |
4 | 4 | |
5 | 5 | use Craft; |
6 | -use craft\helpers\Json; |
|
7 | -use flipbox\hubspot\authentication\AuthenticationStrategyInterface; |
|
8 | -use flipbox\hubspot\cache\CacheStrategyInterface; |
|
9 | -use flipbox\hubspot\HubSpot; |
|
10 | 6 | use Flipbox\Relay\HubSpot\Segment\Companies\AddContact; |
11 | 7 | use Flipbox\Relay\HubSpot\Segment\Companies\Create; |
12 | 8 | use Flipbox\Relay\HubSpot\Segment\Companies\GetByDomain; |
13 | 9 | use Flipbox\Relay\HubSpot\Segment\Companies\GetById; |
14 | 10 | use Flipbox\Relay\HubSpot\Segment\Companies\RemoveContact; |
15 | -use Flipbox\Relay\HubSpot\Segment\Companies\UpdateById; |
|
16 | 11 | use Flipbox\Relay\HubSpot\Segment\Companies\UpdateByDomain; |
12 | +use Flipbox\Relay\HubSpot\Segment\Companies\UpdateById; |
|
17 | 13 | use Psr\Http\Message\ResponseInterface; |
14 | +use craft\helpers\Json; |
|
15 | +use flipbox\hubspot\HubSpot; |
|
16 | +use flipbox\hubspot\authentication\AuthenticationStrategyInterface; |
|
17 | +use flipbox\hubspot\cache\CacheStrategyInterface; |
|
18 | 18 | |
19 | 19 | class Companies extends AbstractResource |
20 | 20 | { |
@@ -136,7 +136,6 @@ |
||
136 | 136 | } |
137 | 137 | |
138 | 138 | /** |
139 | - * @param int $id |
|
140 | 139 | * @param $data |
141 | 140 | * @param callable|TransformerInterface $transformer |
142 | 141 | * @param AuthenticationStrategyInterface|null $authenticationStrategy |
@@ -2,15 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace flipbox\hubspot\modules\resources\services; |
4 | 4 | |
5 | -use craft\elements\User; |
|
5 | +use Flipbox\Transform\Factory; |
|
6 | +use Flipbox\Transform\Transformers\TransformerInterface; |
|
6 | 7 | use craft\helpers\Json; |
8 | +use flipbox\hubspot\HubSpot; |
|
7 | 9 | use flipbox\hubspot\authentication\AuthenticationStrategyInterface; |
8 | 10 | use flipbox\hubspot\cache\CacheStrategyInterface; |
9 | -use flipbox\hubspot\HubSpot; |
|
10 | -use Flipbox\Transform\Factory; |
|
11 | -use Flipbox\Transform\Transformers\TransformerInterface; |
|
12 | -use flipbox\transformer\Transformer; |
|
13 | -use yii\base\Component; |
|
14 | 11 | |
15 | 12 | class Contacts extends AbstractResource |
16 | 13 | { |