@@ -385,7 +385,7 @@ |
||
385 | 385 | * @throws ServerError |
386 | 386 | * @throws ServiceUnavailable |
387 | 387 | */ |
388 | - public function manageErrors($response){ |
|
388 | + public function manageErrors($response) { |
|
389 | 389 | switch ($this->getLastHttpCode()) { |
390 | 390 | case 400: |
391 | 391 | throw new BadRequest(TwitterAdsException::BAD_REQUEST, 400, null, $response->errors); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | private $batchSize; |
14 | 14 | private $account; |
15 | 15 | |
16 | - public function __construct(Account $account=null, $batchSize=10, $batch=[]) |
|
16 | + public function __construct(Account $account = null, $batchSize = 10, $batch = []) |
|
17 | 17 | { |
18 | 18 | parent::__construct($account); |
19 | 19 | $this->account = $account; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * @throws BatchLimitExceeded when the batch is full |
70 | 70 | * @return $batch|$this->batch |
71 | 71 | */ |
72 | - public function assureBatchSize($batch=null) |
|
72 | + public function assureBatchSize($batch = null) |
|
73 | 73 | { |
74 | 74 | if (count($batch ?: $this->batch) < $this->batchSize) { |
75 | 75 | return $batch ?: $this->batch; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | const RESOURCE = 'tailored_audience_memberships'; |
19 | 19 | const OPERATION = 'Update'; |
20 | 20 | |
21 | - public function __construct(Account $account=null, $members=[]) |
|
21 | + public function __construct(Account $account = null, $members = []) |
|
22 | 22 | { |
23 | 23 | parent::__construct($account, self::MAX_BATCH_SIZE, $members); |
24 | 24 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | protected $targetable_types; |
40 | 40 | protected $partner_source; |
41 | 41 | |
42 | - public function __construct(Account $account=null, $id=null) |
|
42 | + public function __construct(Account $account = null, $id = null) |
|
43 | 43 | { |
44 | 44 | parent::__construct($account); |
45 | 45 | $this->id = $id; |
@@ -87,7 +87,7 @@ |
||
87 | 87 | |
88 | 88 | public function setAudienceNames(array $names) |
89 | 89 | { |
90 | - $this->audience_names = explode(', ', $names); |
|
90 | + $this->audience_names = explode(', ', $names); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | public function getEffectiveAt() |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use Hborras\TwitterAdsSDK\TwitterAds; |
4 | 4 | use Hborras\TwitterAdsSDK\TwitterAds\TailoredAudience\TailoredAudienceMemberships; |
5 | -use Hborras\TwitterAdsSDK\TwitterAds\TailoredAudience\TailoredAudienceMember;; |
|
5 | +use Hborras\TwitterAdsSDK\TwitterAds\TailoredAudience\TailoredAudienceMember; ; |
|
6 | 6 | |
7 | 7 | require '../autoload.php'; |
8 | 8 |