Completed
Branch master (0de459)
by Tobias
03:47
created
event/listener.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -160,8 +160,7 @@  discard block
 block discarded – undo
160 160
 			$host = $this->request->server('HTTP_HOST');
161 161
 			$https = $this->request->server('HTTPS');
162 162
 			$url = ($https ? 'https://' : 'http://') . $host . '/' . $page;
163
-		}
164
-		else
163
+		} else
165 164
 		{
166 165
 			$url = generate_board_url() . '/viewtopic.php?f=' . $event['topic_data']['forum_id'] . '&t=' . $event['topic_data']['topic_id'];
167 166
 		}
@@ -304,8 +303,7 @@  discard block
 block discarded – undo
304 303
 			// Write data to cache
305 304
 			$this->cache->put($cache_file, $shares, $cachetime);
306 305
 			return $shares;
307
-		}
308
-		else
306
+		} else
309 307
 		{
310 308
 			// return data from cache
311 309
 			return $shares;
Please login to merge, or discard this patch.