Completed
Push — master ( 1df8e0...d7597b )
by refat
03:48
created
routes/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     'middleware' => ['admin']
28 28
 ];
29 29
 
30
-$app->route->group($adminOptions, function ($route) {
30
+$app->route->group($adminOptions, function($route) {
31 31
 
32 32
     $route->add('/', 'Home');
33 33
 
Please login to merge, or discard this patch.
App/Models/LoginModel.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
 
13 13
     public function isValidLogin($email, $password)
14 14
     {
15
-        $user = $this->where('email=?' , $email)->fetch($this->table);
15
+        $user = $this->where('email=?', $email)->fetch($this->table);
16 16
 
17
-        if (! $user) return false;
17
+        if (!$user) return false;
18 18
 
19 19
         $this->user = $user;
20 20
 
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
             return false;
42 42
         }
43 43
 
44
-        $user = $this->where('code=?' , $code)->fetch($this->table);
44
+        $user = $this->where('code=?', $code)->fetch($this->table);
45 45
 
46
-        if (! $user) return false;
46
+        if (!$user) return false;
47 47
         
48 48
         $this->user = $user;
49 49
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,9 @@  discard block
 block discarded – undo
14 14
     {
15 15
         $user = $this->where('email=?' , $email)->fetch($this->table);
16 16
 
17
-        if (! $user) return false;
17
+        if (! $user) {
18
+            return false;
19
+        }
18 20
 
19 21
         $this->user = $user;
20 22
 
@@ -43,7 +45,9 @@  discard block
 block discarded – undo
43 45
 
44 46
         $user = $this->where('code=?' , $code)->fetch($this->table);
45 47
 
46
-        if (! $user) return false;
48
+        if (! $user) {
49
+            return false;
50
+        }
47 51
         
48 52
         $this->user = $user;
49 53
 
Please login to merge, or discard this patch.
App/Models/UsersGroupsModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
             $userGroup->pages = [];
20 20
     
21
-            foreach($userGroupInfos as $userGroupInfo) {
21
+            foreach ($userGroupInfos as $userGroupInfo) {
22 22
             
23 23
                 $userGroup->pages[] = $userGroupInfo->page;
24 24
             }
Please login to merge, or discard this patch.
App/Models/SettingsModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     public function loadAll()
14 14
     {
15
-        foreach($this->all() as $setting) {
15
+        foreach ($this->all() as $setting) {
16 16
 
17 17
             $this->settings[$setting->key] = $setting->value;
18 18
         }
Please login to merge, or discard this patch.
config/alias.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-  'classes' => [
4
+    'classes' => [
5 5
     'request'   =>  'System\\Http\\Request',
6 6
     'response'  =>  'System\\Http\\Response',
7 7
     'route'     =>  'System\\Route',
@@ -14,15 +14,15 @@  discard block
 block discarded – undo
14 14
     'validator' =>  'System\\Validation',
15 15
     'paginatio' =>  'System\\Paginatio',
16 16
     'PugView'   =>  'System\\PugView',
17
-  ],
18
-  'middlewares' => [
17
+    ],
18
+    'middlewares' => [
19 19
     'admin' => [
20
-      'auth'        => 'App\\Middleware\\Admin\\AuthenticateMiddleware',
21
-      'ajax'        => 'App\\Middleware\\Admin\\AjaxMiddleware',
22
-      'permissions' => 'App\\Middleware\\Admin\\PermissionsMiddleware',
23
-      'redirect'    => 'App\\Middleware\\Admin\\RedirectMiddleware',
20
+        'auth'        => 'App\\Middleware\\Admin\\AuthenticateMiddleware',
21
+        'ajax'        => 'App\\Middleware\\Admin\\AjaxMiddleware',
22
+        'permissions' => 'App\\Middleware\\Admin\\PermissionsMiddleware',
23
+        'redirect'    => 'App\\Middleware\\Admin\\RedirectMiddleware',
24 24
     ],
25 25
     'website' => [
26 26
     ]
27
-  ]
27
+    ]
28 28
 ];
29 29
\ No newline at end of file
Please login to merge, or discard this patch.
App/Controllers/Admin/LoginController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
 
7 7
 class LoginController extends Controller
8 8
 {
9
-  public function index()
10
-  {
9
+    public function index()
10
+    {
11 11
     $context = [
12 12
 
13 13
     ];
14 14
     return $this->PugView->render('admin/pages/login', $context);
15
-  }
15
+    }
16 16
 
17
-  public function submit()
18
-  {
17
+    public function submit()
18
+    {
19 19
 
20
-  }
20
+    }
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
App/Controllers/Admin/SettingsController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 
7 7
 class SettingsController extends Controller
8 8
 {
9
-  public function index()
10
-  {
9
+    public function index()
10
+    {
11 11
     $context = [
12 12
 
13 13
     ];
14 14
     return $this->PugView->render('admin/pages/settings', $context);
15
-  }
15
+    }
16 16
 }
17 17
\ No newline at end of file
Please login to merge, or discard this patch.
App/Controllers/Admin/ProfileController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 
7 7
 class ProfileController extends Controller
8 8
 {
9
-  public function index()
10
-  {
9
+    public function index()
10
+    {
11 11
     $context = [
12 12
 
13 13
     ];
14 14
     return $this->PugView->render('admin/pages/profile', $context);
15
-  }
15
+    }
16 16
 }
17 17
\ No newline at end of file
Please login to merge, or discard this patch.
App/Controllers/Admin/HomeController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 
7 7
 class HomeController extends Controller
8 8
 {
9
-  public function index()
10
-  {
9
+    public function index()
10
+    {
11 11
     $context = [
12 12
 
13 13
     ];
14 14
     return $this->PugView->render('admin/pages/home', $context);
15
-  }
15
+    }
16 16
 }
17 17
\ No newline at end of file
Please login to merge, or discard this patch.