Completed
Push — master ( f4e46e...01741b )
by AJ
01:55
created
src/Shell/SubdomainsInstallShell.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -103,23 +103,23 @@
 block discarded – undo
103 103
     
104 104
     }
105 105
     
106
-	private function _getSubdomains() {
106
+    private function _getSubdomains() {
107 107
 	
108
-	    $check = Configure::check('Multidimensional/Subdomains.subdomains');
108
+        $check = Configure::check('Multidimensional/Subdomains.subdomains');
109 109
 		
110
-		if (!$check) {
111
-			return false;	
112
-		}
110
+        if (!$check) {
111
+            return false;	
112
+        }
113 113
 		
114
-		$subdomains = Configure::consume('Multidimensional/Subdomains.subdomains');
114
+        $subdomains = Configure::consume('Multidimensional/Subdomains.subdomains');
115 115
 		
116
-		if ($this->_countSubdomains($subdomains)) { 
117
-			return $subdomains;
118
-		}
116
+        if ($this->_countSubdomains($subdomains)) { 
117
+            return $subdomains;
118
+        }
119 119
 		
120 120
         return false;
121 121
 		
122
-	}
122
+    }
123 123
 	
124 124
     private function _modifyArray(array $array) {
125 125
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 		
114 114
 		$subdomains = Configure::consume('Multidimensional/Subdomains.subdomains');
115 115
 		
116
-		if ($this->_countSubdomains($subdomains)) { 
116
+		if ($this->_countSubdomains($subdomains)) {
117 117
 			return $subdomains;
118 118
 		}
119 119
 		
Please login to merge, or discard this patch.
src/Routing/SubdomainRouteTrait.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,15 +48,15 @@
 block discarded – undo
48 48
             $host = $context['_host'];
49 49
         }
50 50
 
51
-		if (preg_match('/(.*?)\.([^\/]*\..{2,5})/i', $host, $parts)) {
51
+        if (preg_match('/(.*?)\.([^\/]*\..{2,5})/i', $host, $parts)) {
52 52
 						
53
-			if (in_array($parts[1], $this->_getSubdomains())) {
54
-				return [$parts[1], $parts[2]];
55
-			} else {
56
-				return [false, $parts[2]];
57
-			}
53
+            if (in_array($parts[1], $this->_getSubdomains())) {
54
+                return [$parts[1], $parts[2]];
55
+            } else {
56
+                return [false, $parts[2]];
57
+            }
58 58
 			
59
-		} else {
59
+        } else {
60 60
             return [false, $host];
61 61
         }
62 62
 		
Please login to merge, or discard this patch.