Passed
Push — master ( 642d9b...cd0868 )
by Florent
02:48
created
src/start.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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.