Completed
Push — master ( 35509a...a7941f )
by Daniel
05:08 queued 03:12
created
code/MultiDomainDomain.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -142,7 +142,9 @@  discard block
 block discarded – undo
142 142
 	 * @return boolean
143 143
 	 */
144 144
 	public function hasURL($url) {
145
-		if($this->isForcedPath($url)) return true;
145
+		if($this->isForcedPath($url)) {
146
+			return true;
147
+		}
146 148
 		$domainBaseURL = trim($this->getURL(),'/');
147 149
 		if(preg_match('/^'.$domainBaseURL.'/', $url)) {
148 150
 			return true;
@@ -176,13 +178,19 @@  discard block
 block discarded – undo
176 178
 	 * @return boolean           
177 179
 	 */
178 180
 	protected static function match_url($url, $patterns) {
179
-		if(!is_array($patterns)) return false;
181
+		if(!is_array($patterns)) {
182
+			return false;
183
+		}
180 184
 
181 185
 		$url = ltrim($url, '/');
182
-		if(substr($url, -1) !== '/') $url .= '/';
186
+		if(substr($url, -1) !== '/') {
187
+			$url .= '/';
188
+		}
183 189
 
184 190
 		foreach($patterns as $pattern) {
185
-			if(fnmatch($pattern, $url)) return true;
191
+			if(fnmatch($pattern, $url)) {
192
+				return true;
193
+			}
186 194
 		}
187 195
 
188 196
 		return false;		
Please login to merge, or discard this patch.
code/MultiDomainRequestFilter.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,9 @@
 block discarded – undo
28 28
 		}
29 29
 					
30 30
 		foreach(MultiDomain::get_all_domains() as $domain) {			
31
-			if(!$domain->isActive()) continue;
31
+			if(!$domain->isActive()) {
32
+				continue;
33
+			}
32 34
 			
33 35
 			$url = $this->createNativeURLForDomain($domain);
34 36
 			$parts = explode('?', $url);					
Please login to merge, or discard this patch.
code/MultiDomain.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,9 @@
 block discarded – undo
46 46
 		$domains = array ();
47 47
 		
48 48
 		foreach(self::config()->domains as $key => $config) {
49
-			if(!$includePrimary && $key === self::KEY_PRIMARY) continue;
49
+			if(!$includePrimary && $key === self::KEY_PRIMARY) {
50
+				continue;
51
+			}
50 52
 			$domains[] = MultiDomainDomain::create($key, $config);
51 53
 		}
52 54
 
Please login to merge, or discard this patch.