@@ -206,9 +206,6 @@ |
||
| 206 | 206 | * Get the number of shares |
| 207 | 207 | * |
| 208 | 208 | * @param string $url The URL to get the shares for |
| 209 | - * @param string $token Unique string to identify the page |
|
| 210 | - * @return array |
|
| 211 | - * @access private |
|
| 212 | 209 | */ |
| 213 | 210 | private function get_share_count($url) |
| 214 | 211 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | { |
| 86 | 86 | $desctiption = strip_tags($event['post_row']['MESSAGE']); |
| 87 | 87 | //Facebook only displays the first 300 characters of a description, so we can cut the post text after 300 characters |
| 88 | - $this->description = (strlen($desctiption) > 300) ? preg_replace("/[^ ]*$/", '', substr($desctiption, 0, 300)) . '...' : $desctiption; |
|
| 88 | + $this->description = (strlen($desctiption) > 300) ? preg_replace("/[^ ]*$/", '', substr($desctiption, 0, 300)) . '...' : $desctiption; |
|
| 89 | 89 | $this->template->assign_vars(array( |
| 90 | 90 | 'OG_DESCRIPTION' => $this->description, |
| 91 | 91 | )); |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | { |
| 272 | 272 | $handle = curl_multi_info_read($mh); |
| 273 | 273 | $content[$platform] = curl_multi_getcontent($ch); |
| 274 | - curl_multi_remove_handle($mh, $handle['handle'] ); |
|
| 274 | + curl_multi_remove_handle($mh, $handle['handle']); |
|
| 275 | 275 | } |
| 276 | 276 | curl_multi_close($mh); |
| 277 | 277 | } |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | $shares['google'] = isset($matches[1]) ? $matches[1] : 0; |
| 294 | 294 | |
| 295 | 295 | preg_match('#<span class="pluginCountTextDisconnected">([0-9]+)</span>#s', $content['facebook'], $matches); |
| 296 | - $shares['facebook'] = isset($matches[1]) ? $matches[1] : 0 ; |
|
| 296 | + $shares['facebook'] = isset($matches[1]) ? $matches[1] : 0; |
|
| 297 | 297 | |
| 298 | 298 | $pageinfo = json_decode($content['twitter'], true); |
| 299 | 299 | $shares['twitter'] = isset($pageinfo['count']) ? $pageinfo['count'] : 0; |