Passed
Push — master ( 1a1f95...a13744 )
by Florent
02:41
created
src/start.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
 $container->set('themesdir', __DIR__ . '/../public/themes/');
45 45
 
46 46
 // Rename config.sample.json to config.json
47
-$confDir =  __DIR__ . '/../config/';
47
+$confDir = __DIR__ . '/../config/';
48 48
 if ((file_exists($confDir . 'config.sample.json')) && (!file_exists($confDir . 'config.json'))) {
49 49
     copy($confDir . 'config.sample.json', $confDir . 'config.json');
50 50
 }
51 51
 
52 52
 // Set settings array in container for use in all routes
53
-$container->set('settings', static function () {
53
+$container->set('settings', static function() {
54 54
     $config = file_get_contents(__DIR__ . '/../config/config.json');
55 55
     return json_decode($config, true);
56 56
 });
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 //AppFactory::setContainer($container);
109 109
 
110 110
 // Set Twig engine for templating
111
-$container->set('view', static function () {
111
+$container->set('view', static function() {
112 112
     $settings = json_decode(file_get_contents(__DIR__ . '/../config/config.json'), true);
113 113
     $tpls = [
114 114
         __DIR__ . '/../resources/views/',
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 });
134 134
 
135 135
 //Set Session engine
136
-$container->set('session', static function () {
136
+$container->set('session', static function() {
137 137
     return new Helper();
138 138
 });
139 139
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 $app->post('/login', HomeController::class . ':loginPost')->setName('login-post');
191 191
 
192 192
 // Admin routes
193
-$app->group('/admin', static function (RouteCollectorProxy $group): void {
193
+$app->group('/admin', static function(RouteCollectorProxy $group): void {
194 194
     $group->get('', AdminController::class . ':adminIndex')->setName('admin');
195 195
 
196 196
     $group->get('/settings', AdminController::class . ':adminSettings')->setName('admin-settings');
Please login to merge, or discard this patch.