@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | // Admin account |
28 | 28 | |
29 | 29 | |
30 | - if(!Configure::read('Security.salt')) |
|
30 | + if (!Configure::read('Security.salt')) |
|
31 | 31 | { |
32 | 32 | $salt = $this->in('Salt:'); |
33 | 33 | } |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | Configure::write('Datasources.default.quoteIdentifiers', false); |
49 | 49 | Configure::write('Datasources.default.url', env('DATABASE_URL', null)); |
50 | 50 | $file = new File('config/app_local.php', false); |
51 | - if(!$file->exists()) { |
|
52 | - if($ris = Configure::dump('app_local', 'default')) { |
|
51 | + if (!$file->exists()) { |
|
52 | + if ($ris = Configure::dump('app_local', 'default')) { |
|
53 | 53 | $this->out("Wrote config file app_local.php"); |
54 | 54 | } |
55 | 55 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | { |
118 | 118 | // ask if the permissions should be changed |
119 | 119 | if ($io->isInteractive()) { |
120 | - $validator = function ($arg) { |
|
120 | + $validator = function($arg) { |
|
121 | 121 | if (in_array($arg, ['Y', 'y', 'N', 'n'])) { |
122 | 122 | return $arg; |
123 | 123 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | } |
137 | 137 | |
138 | 138 | // Change the permissions on a path and output the results. |
139 | - $changePerms = function ($path) use ($io) { |
|
139 | + $changePerms = function($path) use ($io) { |
|
140 | 140 | $currentPerms = fileperms($path) & 0777; |
141 | 141 | $worldWritable = $currentPerms | 0007; |
142 | 142 | if ($worldWritable == $currentPerms) { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | }; |
153 | 153 | |
154 | - $walker = function ($dir) use (&$walker, $changePerms) { |
|
154 | + $walker = function($dir) use (&$walker, $changePerms) { |
|
155 | 155 | $files = array_diff(scandir($dir), ['.', '..']); |
156 | 156 | foreach ($files as $file) { |
157 | 157 | $path = $dir . '/' . $file; |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | $routes->setRouteClass(DashedRoute::class); |
46 | 46 | |
47 | -$routes->scope('/', function (RouteBuilder $builder) { |
|
47 | +$routes->scope('/', function(RouteBuilder $builder) { |
|
48 | 48 | |
49 | 49 | $builder->prefix('admin', function($routes) { |
50 | 50 | $routes->connect('/', ['controller' => 'Users', 'action' => 'index']); |
@@ -166,12 +166,12 @@ |
||
166 | 166 | /* |
167 | 167 | * Setup detectors for mobile and tablet. |
168 | 168 | */ |
169 | -ServerRequest::addDetector('mobile', function ($request) { |
|
169 | +ServerRequest::addDetector('mobile', function($request) { |
|
170 | 170 | $detector = new \Detection\MobileDetect(); |
171 | 171 | |
172 | 172 | return $detector->isMobile(); |
173 | 173 | }); |
174 | -ServerRequest::addDetector('tablet', function ($request) { |
|
174 | +ServerRequest::addDetector('tablet', function($request) { |
|
175 | 175 | $detector = new \Detection\MobileDetect(); |
176 | 176 | |
177 | 177 | return $detector->isTablet(); |