Passed
Push — master ( 87ee4b...6bcd84 )
by Tobias
03:11
created
event/listener.php 1 patch
Spacing   +4 added lines, -4 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
 			));
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 					$ch = curl_init();
252 252
 					curl_setopt($ch, CURLOPT_URL, $query_url);
253 253
 					curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
254
-					curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,3);
254
+					curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
255 255
 					curl_setopt($ch, CURLOPT_TIMEOUT, 3);
256 256
 					curl_setopt($ch, CURLOPT_NOBODY, false);
257 257
 					curl_setopt($ch, CURLOPT_HEADER, false);
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 				{
275 275
 					$handle = curl_multi_info_read($mh);
276 276
 					$content[$platform] = curl_multi_getcontent($ch);
277
-					curl_multi_remove_handle($mh, $handle['handle'] );
277
+					curl_multi_remove_handle($mh, $handle['handle']);
278 278
 				}
279 279
 				curl_multi_close($mh);
280 280
 			}
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 			$shares['google'] = isset($matches[1]) ? $matches[1] : 0;
297 297
 
298 298
 			preg_match('#<span id="u_0_1">([0-9]+)</span>#s', $content['facebook'], $matches);
299
-			$shares['facebook'] = isset($matches[1]) ? $matches[1] : 0 ;
299
+			$shares['facebook'] = isset($matches[1]) ? $matches[1] : 0;
300 300
 
301 301
 			$pageinfo = json_decode($content['twitter'], true);
302 302
 			$shares['twitter'] = isset($pageinfo['count']) ? $pageinfo['count'] : 0;
Please login to merge, or discard this patch.