Passed
Branch master (e8ea85)
by refat
06:13 queued 02:52
created
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.
routes/admin/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.
Core/System/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 
90 90
   public function get($key)
91 91
   {
92
-    if (! $this->isSharing($key)) {
92
+    if (!$this->isSharing($key)) {
93 93
 
94 94
       if ($this->isCoreAlias($key)) {
95 95
 
Please login to merge, or discard this patch.
Core/System/Http/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
   public function sendHeaders()
36 36
   {
37
-    foreach($this->headers as $header => $value)
37
+    foreach ($this->headers as $header => $value)
38 38
     {
39 39
       header($header . ':' . $value);
40 40
     }
Please login to merge, or discard this patch.
Core/System/Paginatio.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
   {
26 26
     $page = $this->app->request->get('page');
27 27
 
28
-    if (! is_numeric($page) || $page < 1) {
28
+    if (!is_numeric($page) || $page < 1) {
29 29
       $page = 1;
30 30
     }
31 31
 
Please login to merge, or discard this patch.
App/Middleware/Admin/RedirectMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
   public function handle(Application $app, $next)
11 11
   {
12 12
 
13
-    if (! $this->session->has('error') || $this->session->get('error') != true) {
13
+    if (!$this->session->has('error') || $this->session->get('error') != true) {
14 14
 
15 15
       $this->url->redirectTo('/');
16 16
 
Please login to merge, or discard this patch.
App/Models/LoginModel.php 1 patch
Spacing   +3 added lines, -3 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) {
17
+    if (!$user) {
18 18
 
19 19
       return false;
20 20
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
       return false;
45 45
     }
46 46
 
47
-    $user = $this->where('code=?' , $code)->fetch($this->table);
47
+    $user = $this->where('code=?', $code)->fetch($this->table);
48 48
 
49 49
     if (!$user) {
50 50
       return false;
Please login to merge, or discard this patch.
Core/System/Http/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
       $isSecure = true;
53 53
 
54
-    } elseif ((!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' ) || (! empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')) {
54
+    } elseif ((!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') || (!empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')) {
55 55
       $isSecure = true;
56 56
     }
57 57
 
Please login to merge, or discard this patch.