Completed
Branch new-instance (cdb4e5)
by Hector
02:51
created
examples/analytics.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 use Hborras\TwitterAdsSDK\TwitterAds;
4 4
 use Hborras\TwitterAdsSDK\TwitterAds\Account;
5
-use Hborras\TwitterAdsSDK\TwitterAds\Analytics;
6 5
 use Hborras\TwitterAdsSDK\TwitterAds\Campaign\Campaign;
7 6
 use Hborras\TwitterAdsSDK\TwitterAds\Campaign\LineItem;
8 7
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
 $account->read();
25 25
 
26
-$campaigns = $account->getCampaigns('',['count'=> 2, 'sort_by'=> 'created_at-desc']);
26
+$campaigns = $account->getCampaigns('', ['count'=> 2, 'sort_by'=> 'created_at-desc']);
27 27
 
28 28
 $campaignIds = [];
29 29
 /** @var Campaign $campaign */
Please login to merge, or discard this patch.
src/TwitterAds/Account.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
     /**
44 44
      * @param array $params
45
-     * @return Resource
45
+     * @return Account
46 46
      */
47 47
     public function read($params = [])
48 48
     {
Please login to merge, or discard this patch.
src/TwitterAds/Resource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @param null $id
37 37
      * @param TwitterAds $twitterAds
38 38
      */
39
-    public function __construct($id = null,  TwitterAds $twitterAds = null)
39
+    public function __construct($id = null, TwitterAds $twitterAds = null)
40 40
     {
41 41
         $this->id = $id;
42 42
         $this->twitterAds = static::assureApi($twitterAds);
Please login to merge, or discard this patch.