@@ -28,7 +28,7 @@ |
||
| 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) |
@@ -42,7 +42,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -57,7 +57,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -26,4 +26,4 @@ |
||
| 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 |