Completed
Push — master ( bec271...2dcce3 )
by AJ
01:51
created
config/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 		
33 33
         foreach ($subdomains AS $prefix) {
34 34
 			
35
-            Router::scope('/', ['prefix' => $prefix], function ($routes) {
35
+            Router::scope('/', ['prefix' => $prefix], function($routes) {
36 36
                 $routes->fallbacks(DashedRoute::class);
37 37
             });
38 38
 			
Please login to merge, or discard this patch.
config/subdomains.default.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
 return array(
26 26
     'Multidimensional/Subdomains' => 
27 27
         array('subdomains' =>
28
-			array('{SUBDOMAIN_1}', '{SUBDOMAIN_2}', /*...*/ '{SUBDOMAIN_N}')
29
-		)
30
-	);
31 28
\ No newline at end of file
29
+            array('{SUBDOMAIN_1}', '{SUBDOMAIN_2}', /*...*/ '{SUBDOMAIN_N}')
30
+        )
31
+    );
32 32
\ No newline at end of file
Please login to merge, or discard this patch.
src/Shell/SubdomainsInstallShell.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
     }
157 157
     
158 158
     /**
159
-    * @param integer $key
160
-    */
159
+     * @param integer $key
160
+     */
161 161
     private function _deleteSubdomain (&$subdomains, $key) {
162 162
         
163 163
         if (isset($subdomains[$key])) {
@@ -175,8 +175,8 @@  discard block
 block discarded – undo
175 175
     }
176 176
     
177 177
     /**
178
-    * @param string|null $subdomain
179
-    */    
178
+     * @param string|null $subdomain
179
+     */    
180 180
     private function _validateSubdomain ($subdomain) {
181 181
     
182 182
         if (is_null($subdomain) || empty($subdomain)) {
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
 class SubdomainsInstallShell extends Shell {
22 22
     
23
-    public function main () {
23
+    public function main() {
24 24
     
25 25
         $subdomains = array();    
26 26
     
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
     
120 120
     }
121 121
     
122
-    private function _modifyArray (array $array) {
122
+    private function _modifyArray(array $array) {
123 123
 
124 124
         return array_combine(range(1, count($array)), array_values($array)); ;    
125 125
         
126 126
     }
127 127
     
128 128
     
129
-    private function _currentSubdomains (array $subdomains) {
129
+    private function _currentSubdomains(array $subdomains) {
130 130
         
131 131
         if ($this->_countSubdomains($subdomains)) {
132 132
             
@@ -143,13 +143,13 @@  discard block
 block discarded – undo
143 143
         
144 144
     }
145 145
     
146
-    private function _askAddSubdomain () {
146
+    private function _askAddSubdomain() {
147 147
     
148 148
         return (strtolower($this->in('Add Subdomain?', ['y', 'n'])) === 'y');
149 149
         
150 150
     }
151 151
     
152
-    private function _askDeleteSubdomain () {
152
+    private function _askDeleteSubdomain() {
153 153
     
154 154
         return (strtolower($this->in('Delete Subdomain?', ['y', 'n'])) === 'y');
155 155
         
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     /**
159 159
     * @param integer $key
160 160
     */
161
-    private function _deleteSubdomain (&$subdomains, $key) {
161
+    private function _deleteSubdomain(&$subdomains, $key) {
162 162
         
163 163
         if (isset($subdomains[$key])) {
164 164
             
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
     * @param string|null $subdomain
179 179
     */    
180
-    private function _validateSubdomain ($subdomain) {
180
+    private function _validateSubdomain($subdomain) {
181 181
     
182 182
         if (is_null($subdomain) || empty($subdomain)) {
183 183
             return false;
@@ -187,13 +187,13 @@  discard block
 block discarded – undo
187 187
         
188 188
     }
189 189
     
190
-    private function _askStartOver () {
190
+    private function _askStartOver() {
191 191
         
192 192
         return (strtolower($this->in('Start Over?', ['y', 'n'])) === 'y');
193 193
         
194 194
     }
195 195
     
196
-    private function _countSubdomains ($subdomains) {
196
+    private function _countSubdomains($subdomains) {
197 197
         
198 198
         if (!is_array($subdomains) || is_null($subdomains)) {
199 199
             return false;                                
Please login to merge, or discard this patch.
src/Routing/SubdomainRouteTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 trait SubdomainRouteTrait {
23 23
 
24
-    private function _getSubdomains () {
24
+    private function _getSubdomains() {
25 25
         
26 26
         $validConfiguration = Configure::check('Multidimensional/Subdomains.subdomains');
27 27
         
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 		
40 40
     }
41 41
 
42
-    private function _getPrefixAndHost (array $context = []) {
42
+    private function _getPrefixAndHost(array $context = []) {
43 43
         
44 44
         if (empty($context['_host'])) {
45 45
             $request = Router::getRequest(true) ?: Request::createFromGlobals();
@@ -58,14 +58,14 @@  discard block
 block discarded – undo
58 58
 		
59 59
     }
60 60
 
61
-    private function _checkPrefix ($prefix) {
61
+    private function _checkPrefix($prefix) {
62 62
 
63 63
         $routePrefix = isset($this->defaults['prefix']) ? $this->defaults['prefix'] : false;
64 64
         return $prefix === $routePrefix;
65 65
 
66 66
     }
67 67
 
68
-    public function parse ($url, $method = '') {
68
+    public function parse($url, $method = '') {
69 69
 		
70 70
         debug("HELLO?");
71 71
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     }
81 81
 
82
-    public function match (array $url, array $context = []) {
82
+    public function match(array $url, array $context = []) {
83 83
 
84 84
         if (!isset($url['prefix'])) {
85 85
             $url['prefix'] = false;
Please login to merge, or discard this patch.
src/Shell/Helper/HeaderHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 class HeaderHelper extends Helper {
21 21
 	
22
-    public function output ($args = null) {
22
+    public function output($args = null) {
23 23
         $this->_io->out("\n\n");
24 24
         $this->_io->styles('header', ['text' => 'green']);
25 25
 
Please login to merge, or discard this patch.