Completed
Pull Request — master (#11)
by Hector
03:05
created
src/TwitterAds.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -385,7 +385,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/TwitterAds/Batch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/TwitterAds/TailoredAudience/TailoredAudienceMemberships.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/TwitterAds/TailoredAudience/TailoredAudience.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/TwitterAds/TailoredAudience/TailoredAudienceMember.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
examples/tailored_audience_memberships.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.