Completed
Push — master ( c85a41...100f81 )
by Hector
01:43
created
src/TwitterAds/Resource.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * Automatically set the account if this class is not an account
30 30
      * Resource constructor.
31
-     * @param null $id
31
+     * @param string $id
32 32
      * @param TwitterAds $twitterAds
33 33
      */
34 34
     public function __construct($id = null, TwitterAds $twitterAds = null)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $instance = $instance ?: TwitterAds::instance();
43 43
         if (!$instance) {
44 44
             throw new \InvalidArgumentException(
45
-                'An Api instance must be provided as argument or ' .
45
+                'An Api instance must be provided as argument or '.
46 46
                 'set as instance in the \TwitterAds\Api'
47 47
             );
48 48
         }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                 $params[$property] = implode(',', $this->$property);
155 155
             } elseif (is_bool($this->$property)) {
156 156
                 $params[$property] = $this->$property ? 'true' : 'false';
157
-            } elseif (isset($this->$property->id)){
157
+            } elseif (isset($this->$property->id)) {
158 158
                 $params[$property] = strval($this->$property->id);
159 159
             } else {
160 160
                 $params[$property] = strval($this->$property);
Please login to merge, or discard this patch.
examples/promoted_tweet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
 // create request for a simple nullcasted tweet
59 59
 $media = $api->upload(['media' => 'kitten.jpg']);
60
-$tweet1 = Tweet::create($account, 'Tweet number 1 ...' . rand() . ' http://twitter.com', ['media_ids' => $media->media_id]);
60
+$tweet1 = Tweet::create($account, 'Tweet number 1 ...'.rand().' http://twitter.com', ['media_ids' => $media->media_id]);
61 61
 
62 62
 // promote the tweet using our line item
63 63
 $promotedTweet = new PromotedTweet();
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 // create request for a nullcasted tweet with a website card
69 69
 $websiteCard = new WebsiteCard();
70 70
 $websiteCard = $websiteCard->all()->getCollection()[0];
71
-$status = 'Tweet number 2 ...' . rand();
71
+$status = 'Tweet number 2 ...'.rand();
72 72
 
73 73
 $tweet2 = Tweet::create($account, $status, [TweetFields::CARD_URI => $websiteCard->getCardUri()]);
74 74
 
Please login to merge, or discard this patch.
examples/chunked_upload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,4 +26,4 @@
 block discarded – undo
26 26
 
27 27
 // create request for a simple nullcasted tweet
28 28
 $media = $api->upload(['media' => 'kitten.jpg', 'media_type' => 'image/jpg'], true);
29
-$tweet = Tweet::create($account, 'Tweet with chunked upload GIF...' . rand() . ' http://twitter.com', ['media_ids' => $media->media_id]);
30 29
\ No newline at end of file
30
+$tweet = Tweet::create($account, 'Tweet with chunked upload GIF...'.rand().' http://twitter.com', ['media_ids' => $media->media_id]);
31 31
\ No newline at end of file
Please login to merge, or discard this patch.