Completed
Push — master ( 3108c8...abd0b4 )
by AJ
8s
created
config/routes.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
 $subdomains = $subdomainsObject->getSubdomains();
25 25
 
26 26
 if (is_array($subdomains)) {   
27
-	foreach ($subdomains AS $prefix) {
28
-		Router::scope('/', ['prefix' => $prefix], function($routes) {
29
-			$routes->fallbacks('Multidimensional/Subdomains.SubdomainRoute');
30
-		});
31
-	}
27
+    foreach ($subdomains AS $prefix) {
28
+        Router::scope('/', ['prefix' => $prefix], function($routes) {
29
+            $routes->fallbacks('Multidimensional/Subdomains.SubdomainRoute');
30
+        });
31
+    }
32 32
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 $subdomainsObject = new SubdomainMiddleware();
24 24
 $subdomains = $subdomainsObject->getSubdomains();
25 25
 
26
-if (is_array($subdomains)) {   
26
+if (is_array($subdomains)) {
27 27
 	foreach ($subdomains AS $prefix) {
28 28
 		Router::scope('/', ['prefix' => $prefix], function($routes) {
29 29
 			$routes->fallbacks('Multidimensional/Subdomains.SubdomainRoute');
Please login to merge, or discard this patch.
src/Routing/Route/SubdomainRoute.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             $host = $context['_host'];
67 67
         }
68 68
 
69
-		return $this->_subdomainCheck($host);
69
+        return $this->_subdomainCheck($host);
70 70
         
71 71
     }
72 72
 
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
         
86 86
     }
87 87
 	
88
-	private function _subdomainCheck($host) {
88
+    private function _subdomainCheck($host) {
89 89
 		
90
-		if (preg_match('/(.*?)\.([^\/]*\..{2,5})/i', $host, $parts)) {
90
+        if (preg_match('/(.*?)\.([^\/]*\..{2,5})/i', $host, $parts)) {
91 91
                         
92 92
             if (in_array($parts[1], $this->_getSubdomains())) {
93 93
                 return [$parts[1], $parts[2]];
@@ -99,6 +99,6 @@  discard block
 block discarded – undo
99 99
             return [false, $host];
100 100
         }		
101 101
 		
102
-	}
102
+    }
103 103
 
104 104
 }
105 105
\ No newline at end of file
Please login to merge, or discard this patch.