Passed
Branch master (8d4ff6)
by refat
07:57
created
App/Middlewares/AjaxMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
   public function handle(Application $app, $next)
11 11
   {
12
-    if(empty($_SERVER['HTTP_X_REQUESTED_WITH'])) {
12
+    if (empty($_SERVER['HTTP_X_REQUESTED_WITH'])) {
13 13
 
14 14
       return $app->url->redirectTo('error');
15 15
     }
Please login to merge, or discard this patch.
App/Controllers/Admin/LoginController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
 
34 34
     if (array_equal($inputs, $allows)) {
35 35
 
36
-      $username =  $this->request->post('username');
37
-      $password =  $this->request->post('password');
36
+      $username = $this->request->post('username');
37
+      $password = $this->request->post('password');
38 38
       $remember = false;
39 39
 
40 40
       if (in_array('remeberme', array_keys($posts))) {
Please login to merge, or discard this patch.
App/Controllers/Admin/UsersController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
   private function isUserNew($date)
52 52
   {
53
-    if (!$date) {return;}
53
+    if (!$date) {return; }
54 54
 
55 55
     $register = DateTime::createFromFormat('Y-m-d H:i:s', $date);
56 56
     $register_year = $register->format('Y');
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
           if ($column !== 'status') {
182 182
 
183
-            $msg  = null;
183
+            $msg = null;
184 184
 
185 185
             $msg['success'] = 'no text';
186 186
 
Please login to merge, or discard this patch.
config/users/update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     'table' => 'users',
58 58
     'user_id_table_name' => 'id',
59 59
     'require' => true,
60
-    'containJust' => [0,1,2],
60
+    'containJust' => [0, 1, 2],
61 61
   ],
62 62
   'country' => [
63 63
     'table' => 'address',
Please login to merge, or discard this patch.
Core/System/Session.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
   {
29 29
     ini_set('session.use_only_cookies', 1);
30 30
 
31
-    if (! session_id()) {
31
+    if (!session_id()) {
32 32
 
33 33
         session_start();
34 34
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
    * @param mixed $default
54 54
    * @return mixed
55 55
    */
56
-  public function get($key , $default = null)
56
+  public function get($key, $default = null)
57 57
   {
58 58
     return array_get($_SESSION, $key, $default);
59 59
   }
Please login to merge, or discard this patch.
Core/System/Application.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
     $this->container[$key] = $value;
138 138
   }
139 139
 
140
- /**
140
+  /**
141 141
    * Get Shared Value
142 142
    *
143 143
    * @param string $key
Please login to merge, or discard this patch.
Core/System/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
   {
118 118
     $controller .= strpos($controller, 'Controller') ? '' : 'Controller';
119 119
 
120
-    $controller = 'App\\Controllers\\'. $controller;
120
+    $controller = 'App\\Controllers\\' . $controller;
121 121
 
122 122
     return $controller;
123 123
   }
Please login to merge, or discard this patch.
Core/System/Validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@
 block discarded – undo
273 273
 
274 274
       $umlauts = explode(",", $umlauts);
275 275
 
276
-      foreach($umlauts as $umlaut) {
276
+      foreach ($umlauts as $umlaut) {
277 277
 
278 278
         if ((strpos($value, $umlaut) !== false)) {
279 279
 
Please login to merge, or discard this patch.
Core/System/Paginatio.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     // just to make sure that the passed query string parameter page
64 64
     // must be number and should be more or equal than 1
65 65
 
66
-    if (!is_numeric($page) OR $page < 1) {
66
+    if (!is_numeric($page) or $page < 1) {
67 67
 
68 68
       $page = 1;
69 69
     }
Please login to merge, or discard this patch.