Completed
Push — master ( a7941f...9cc640 )
by Damian
11s
created
code/MultiDomainDomain.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -161,7 +161,9 @@  discard block
 block discarded – undo
161 161
 	 * @return boolean
162 162
 	 */
163 163
 	public function hasURL($url) {
164
-		if($this->isForcedPath($url)) return true;
164
+		if($this->isForcedPath($url)) {
165
+			return true;
166
+		}
165 167
 		$domainBaseURL = trim($this->getURL(),'/');
166 168
 		if(preg_match('/^'.$domainBaseURL.'/', $url)) {
167 169
 			return true;
@@ -249,13 +251,19 @@  discard block
 block discarded – undo
249 251
 	 * @return boolean
250 252
 	 */
251 253
 	protected static function match_url($url, $patterns) {
252
-		if(!is_array($patterns)) return false;
254
+		if(!is_array($patterns)) {
255
+			return false;
256
+		}
253 257
 
254 258
 		$url = ltrim($url, '/');
255
-		if(substr($url, -1) !== '/') $url .= '/';
259
+		if(substr($url, -1) !== '/') {
260
+			$url .= '/';
261
+		}
256 262
 
257 263
 		foreach($patterns as $pattern) {
258
-			if(fnmatch($pattern, $url)) return true;
264
+			if(fnmatch($pattern, $url)) {
265
+				return true;
266
+			}
259 267
 		}
260 268
 
261 269
 		return false;
Please login to merge, or discard this patch.