Passed
Push — master ( ea0da1...ae90b8 )
by refat
05:15 queued 01:08
created
routes/admin/index.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -3,23 +3,23 @@
 block discarded – undo
3 3
 $app = app();
4 4
 
5 5
 $adminOptions = [
6
-  'prefix' => '/admin',
7
-  'controller' => 'Admin',
8
-  'middleware' => ['admin']
6
+    'prefix' => '/admin',
7
+    'controller' => 'Admin',
8
+    'middleware' => ['admin']
9 9
 ];
10 10
 
11 11
 $app->route->group($adminOptions, function ($route) {
12 12
 
13
-  $route->add('/', 'Home');
13
+    $route->add('/', 'Home');
14 14
 
15
-  //Login
16
-  $route->add('/login', 'Login');
17
-  $route->add('/submit', 'Login@submit', 'POST');
18
-  $route->add('/logout', 'Logout');
15
+    //Login
16
+    $route->add('/login', 'Login');
17
+    $route->add('/submit', 'Login@submit', 'POST');
18
+    $route->add('/logout', 'Logout');
19 19
 
20
-  //Profile
21
-  $route->add('/profile', 'Profile', 'GET');
20
+    //Profile
21
+    $route->add('/profile', 'Profile', 'GET');
22 22
 
23
-  //Settings
24
-  $route->add('/settings', 'Settings');
23
+    //Settings
24
+    $route->add('/settings', 'Settings');
25 25
 });
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
Core/System/Application.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,9 @@
 block discarded – undo
59 59
 
60 60
     $this->file->call($this->file->to('config/constant.php'));
61 61
 
62
-    foreach (glob("routes/**/*.php") AS $route) $this->file->call($this->file->to($route));
62
+    foreach (glob("routes/**/*.php") AS $route) {
63
+        $this->file->call($this->file->to($route));
64
+    }
63 65
 
64 66
     $output = $this->route->getProperRoute();
65 67
 
Please login to merge, or discard this patch.