Completed
Pull Request — master (#22)
by
unknown
03:11
created
event/listener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.