| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | protected function processShareData() |
||
| 31 | { |
||
| 32 | $this->url = static::encodeData($this->url); |
||
| 33 | $this->description = static::encodeData($this->description); |
||
| 34 | |||
| 35 | if (is_string($this->account)) { |
||
| 36 | $this->appendToData('account', $this->account); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritdoc |
||
| 42 | */ |
||
| 43 | protected function buildLink() |
||
| 44 | { |
||
| 45 | $link = 'http://twitter.com/share?url={url}&text={description}'; |
||
| 46 | |||
| 47 | if ($this->account) { |
||
| 48 | $this->addUrlParam($link, 'via', '{account}'); |
||
| 49 | } |
||
| 67 |