Passed
Push — master ( f1aad3...85aeb8 )
by Ferry
05:16 queued 02:22
created
src/controllers/ApiController.php 2 patches
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         if ($row_api->method_type) {
82 82
             $method_type = $row_api->method_type;
83 83
             if ($method_type) {
84
-                if (! Request::isMethod($method_type)) {
84
+                if (!Request::isMethod($method_type)) {
85 85
                     $result['api_status'] = 0;
86 86
                     $result['api_message'] = "The requested method is not allowed!";
87 87
                     goto show;            
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         | ----------------------------------------------
96 96
         |
97 97
         */
98
-        if (! $row_api) {
98
+        if (!$row_api) {
99 99
             $result['api_status'] = 0;
100 100
             $result['api_message'] = 'Sorry this API endpoint is no longer available or has been changed. Please make sure endpoint is correct.';
101 101
             
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 $used = $param['used'];
126 126
                 $format_validation = [];
127 127
 
128
-                if ($used && ! $required && $value == '') {
128
+                if ($used && !$required && $value == '') {
129 129
                     continue;
130 130
                 }
131 131
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                     $format_validation[] = 'file';                    
179 179
                     $input_validator[$name] = Request::file($name);
180 180
                 } else {
181
-                    if (! in_array($type, $type_except)) {
181
+                    if (!in_array($type, $type_except)) {
182 182
                         $format_validation[] = $type;
183 183
                     }
184 184
                 }
@@ -213,11 +213,11 @@  discard block
 block discarded – undo
213 213
         }
214 214
 
215 215
         $this->hook_before($posts);
216
-        if($this->output) {            
216
+        if ($this->output) {            
217 217
             return response()->json($this->output);
218 218
         }
219 219
 
220
-        $limit = ($this->limit)?:$posts['limit'];
220
+        $limit = ($this->limit) ?: $posts['limit'];
221 221
         $offset = ($posts['offset']) ?: 0;
222 222
         $orderby = ($posts['orderby']) ?: $table.'.'.$pk.',desc';
223 223
         $uploads_format_candidate = explode(',', config("crudbooster.UPLOAD_TYPES"));
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             if ($offset) {
236 236
                 $data->skip($offset);
237 237
             }
238
-            if($limit) {
238
+            if ($limit) {
239 239
                 $data->take($limit);    
240 240
             }
241 241
             
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
                 $subquery = $resp['subquery'];
246 246
                 $used = intval($resp['used']);
247 247
 
248
-                if ($used == 0 && ! CRUDBooster::isForeignKey($name)) {
248
+                if ($used == 0 && !CRUDBooster::isForeignKey($name)) {
249 249
                     continue;
250 250
                 }
251 251
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
                     $search_in = explode(',', $config);
304 304
 
305 305
                     if ($required == '1') {
306
-                        $data->where(function ($w) use ($search_in, $value) {
306
+                        $data->where(function($w) use ($search_in, $value) {
307 307
                             foreach ($search_in as $k => $field) {
308 308
                                 if ($k == 0) {
309 309
                                     $w->where($field, "like", "%$value%");
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
                     } else {
316 316
                         if ($used) {
317 317
                             if ($value) {
318
-                                $data->where(function ($w) use ($search_in, $value) {
318
+                                $data->where(function($w) use ($search_in, $value) {
319 319
                                     foreach ($search_in as $k => $field) {
320 320
                                         if ($k == 0) {
321 321
                                             $w->where($field, "like", "%$value%");
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
                 $data->where($table.'.deleted_at', null);
335 335
             }
336 336
 
337
-            $data->where(function ($w) use ($parameters, $posts, $table, $type_except) {
337
+            $data->where(function($w) use ($parameters, $posts, $table, $type_except) {
338 338
                 foreach ($parameters as $param) {
339 339
                     $name = $param['name'];
340 340
                     $type = $param['type'];
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
                                 $row->$k = asset($v);
422 422
                             }
423 423
 
424
-                            if (! in_array($k, $responses_fields)) {
424
+                            if (!in_array($k, $responses_fields)) {
425 425
                                 unset($row->$k);
426 426
                             }
427 427
                         }
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
 
457 457
                         if ($required) {
458 458
                             if ($type == 'password') {
459
-                                if (! Hash::check($value, $rows->{$name})) {
459
+                                if (!Hash::check($value, $rows->{$name})) {
460 460
                                     $result['api_status'] = 0;
461 461
                                     $result['api_message'] = 'Invalid credentials. Check your username and password.';
462 462
                                     
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
                         } else {
470 470
                             if ($used) {
471 471
                                 if ($value) {
472
-                                    if (! Hash::check($value, $row->{$name})) {
472
+                                    if (!Hash::check($value, $row->{$name})) {
473 473
                                         $result['api_status'] = 0;
474 474
                                         $result['api_message'] = 'Invalid credentials. Check your username and password.';
475 475
                                         
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
                             $rows->$k = asset($v);
490 490
                         }
491 491
 
492
-                        if (! in_array($k, $responses_fields)) {
492
+                        if (!in_array($k, $responses_fields)) {
493 493
                             unset($rows->$k);
494 494
                         }
495 495
                     }
@@ -563,7 +563,7 @@  discard block
 block discarded – undo
563 563
                 $required = $param['required'];
564 564
                 $used = $param['used'];
565 565
 
566
-                if (! in_array($name, $row_assign_keys)) {
566
+                if (!in_array($name, $row_assign_keys)) {
567 567
 
568 568
                     continue;
569 569
                 }
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
             //Make sure if saving/updating data additional param included
581 581
             $arrkeys = array_keys($row_assign);
582 582
             foreach ($posts as $key => $value) {
583
-                if (! in_array($key, $arrkeys)) {
583
+                if (!in_array($key, $arrkeys)) {
584 584
                     $row_assign[$key] = $value;
585 585
                 }
586 586
             }
@@ -588,10 +588,10 @@  discard block
 block discarded – undo
588 588
             if ($action_type == 'save_add') {
589 589
 
590 590
                 DB::beginTransaction();
591
-                try{
591
+                try {
592 592
                     $id = DB::table($table)->insertGetId($row_assign);
593 593
                     DB::commit();
594
-                }catch (\Exception $e)
594
+                } catch (\Exception $e)
595 595
                 {
596 596
                     DB::rollBack();
597 597
                     throw new \Exception($e->getMessage());
@@ -658,11 +658,11 @@  discard block
 block discarded – undo
658 658
         }
659 659
 
660 660
         $this->hook_after($posts, $result);
661
-        if($this->output) return response()->json($this->output);
661
+        if ($this->output) return response()->json($this->output);
662 662
 
663
-        if($output == 'JSON') {
663
+        if ($output == 'JSON') {
664 664
             return response()->json($result, 200);    
665
-        }else{
665
+        } else {
666 666
             return $result;
667 667
         }        
668 668
     }
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
                 try{
592 592
                     $id = DB::table($table)->insertGetId($row_assign);
593 593
                     DB::commit();
594
-                }catch (\Exception $e)
594
+                } catch (\Exception $e)
595 595
                 {
596 596
                     DB::rollBack();
597 597
                     throw new \Exception($e->getMessage());
@@ -658,11 +658,13 @@  discard block
 block discarded – undo
658 658
         }
659 659
 
660 660
         $this->hook_after($posts, $result);
661
-        if($this->output) return response()->json($this->output);
661
+        if($this->output) {
662
+            return response()->json($this->output);
663
+        }
662 664
 
663 665
         if($output == 'JSON') {
664 666
             return response()->json($result, 200);    
665
-        }else{
667
+        } else{
666 668
             return $result;
667 669
         }        
668 670
     }
Please login to merge, or discard this patch.
src/controllers/SettingsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $this->cbLoader();
70 70
 
71
-        if (! CRUDBooster::isSuperadmin()) {
71
+        if (!CRUDBooster::isSuperadmin()) {
72 72
             CRUDBooster::insertLog(trans("crudbooster.log_try_view", ['name' => 'Setting', 'module' => 'Setting']));
73 73
             CRUDBooster::redirect(CRUDBooster::adminPath(), trans('crudbooster.denied_access'));
74 74
         }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     function postSaveSetting()
99 99
     {
100 100
 
101
-        if (! CRUDBooster::isSuperadmin()) {
101
+        if (!CRUDBooster::isSuperadmin()) {
102 102
             CRUDBooster::insertLog(trans("crudbooster.log_try_view", ['name' => 'Setting', 'module' => 'Setting']));
103 103
             CRUDBooster::redirect(CRUDBooster::adminPath(), trans('crudbooster.denied_access'));
104 104
         }
Please login to merge, or discard this patch.
src/controllers/FileController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         
38 38
 
39
-        if (! Storage::exists($fullFilePath)) {
39
+        if (!Storage::exists($fullFilePath)) {
40 40
             abort(404);
41 41
         }
42 42
 
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
                 $h = Request::get('h') ?: $w;
58 58
             }
59 59
 
60
-            $imgRaw = Image::cache(function ($image) use ($fullStoragePath, $w, $h) {
60
+            $imgRaw = Image::cache(function($image) use ($fullStoragePath, $w, $h) {
61 61
                 $im = $image->make($fullStoragePath);
62 62
                 if ($w) {
63
-                    if (! $h) {
63
+                    if (!$h) {
64 64
                         $im->fit($w);
65 65
                     } else {
66 66
                         $im->fit($w, $h);
Please login to merge, or discard this patch.
src/controllers/AdminController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     public function getLockscreen()
20 20
     {
21 21
 
22
-        if (! CRUDBooster::myId()) {
22
+        if (!CRUDBooster::myId()) {
23 23
             Session::flush();
24 24
 
25 25
             return redirect()->route('getLogin')->with('message', trans('crudbooster.alert_session_expired'));
Please login to merge, or discard this patch.
src/controllers/PrivilegesController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $this->cbLoader();
48 48
 
49
-        if (! CRUDBooster::isCreate() && $this->global_privilege == false) {
49
+        if (!CRUDBooster::isCreate() && $this->global_privilege == false) {
50 50
             CRUDBooster::insertLog(trans('crudbooster.log_try_add', ['module' => CRUDBooster::getCurrentModule()->name]));
51 51
             CRUDBooster::redirect(CRUDBooster::adminPath(), trans("crudbooster.denied_access"));
52 52
         }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $this->cbLoader();
65 65
 
66
-        if (! CRUDBooster::isCreate() && $this->global_privilege == false) {
66
+        if (!CRUDBooster::isCreate() && $this->global_privilege == false) {
67 67
             CRUDBooster::insertLog(trans('crudbooster.log_try_add_save', [
68 68
                 'name' => Request::input($this->title_field),
69 69
                 'module' => CRUDBooster::getCurrentModule()->name,
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         $row = DB::table($this->table)->where("id", $id)->first();
115 115
 
116
-        if (! CRUDBooster::isRead() && $this->global_privilege == false) {
116
+        if (!CRUDBooster::isRead() && $this->global_privilege == false) {
117 117
             CRUDBooster::insertLog(trans("crudbooster.log_try_edit", [
118 118
                 'name' => $row->{$this->title_field},
119 119
                 'module' => CRUDBooster::getCurrentModule()->name,
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
         $row = CRUDBooster::first($this->table, $id);
137 137
 
138
-        if (! CRUDBooster::isUpdate() && $this->global_privilege == false) {
138
+        if (!CRUDBooster::isUpdate() && $this->global_privilege == false) {
139 139
             CRUDBooster::insertLog(trans("crudbooster.log_try_add", ['name' => $row->{$this->title_field}, 'module' => CRUDBooster::getCurrentModule()->name]));
140 140
             CRUDBooster::redirect(CRUDBooster::adminPath(), trans('crudbooster.denied_access'));
141 141
         }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
         $row = DB::table($this->table)->where($this->primary_key, $id)->first();
202 202
 
203
-        if (! CRUDBooster::isDelete() && $this->global_privilege == false) {
203
+        if (!CRUDBooster::isDelete() && $this->global_privilege == false) {
204 204
             CRUDBooster::insertLog(trans("crudbooster.log_try_delete", [
205 205
                 'name' => $row->{$this->title_field},
206 206
                 'module' => CRUDBooster::getCurrentModule()->name,
Please login to merge, or discard this patch.
src/userfiles/controllers/CBHook.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
 
8 8
 class CBHook extends Controller {
9 9
 
10
-	/*
10
+    /*
11 11
 	| --------------------------------------
12 12
 	| Please note that you should re-login to see the session work
13 13
 	| --------------------------------------
14 14
 	|
15 15
 	*/
16
-	public function afterLogin() {
16
+    public function afterLogin() {
17 17
 		
18
-	}
18
+    }
19 19
 }
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
src/userfiles/controllers/AdminCmsUsersController.php 2 patches
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -8,54 +8,54 @@
 block discarded – undo
8 8
 class AdminCmsUsersController extends \crocodicstudio\crudbooster\controllers\CBController {
9 9
 
10 10
 
11
-	public function cbInit() {
12
-		# START CONFIGURATION DO NOT REMOVE THIS LINE
13
-		$this->table               = 'cms_users';
14
-		$this->primary_key         = 'id';
15
-		$this->title_field         = "name";
16
-		$this->button_action_style = 'button_icon';	
17
-		$this->button_import 	   = FALSE;	
18
-		$this->button_export 	   = FALSE;	
19
-		# END CONFIGURATION DO NOT REMOVE THIS LINE
11
+    public function cbInit() {
12
+        # START CONFIGURATION DO NOT REMOVE THIS LINE
13
+        $this->table               = 'cms_users';
14
+        $this->primary_key         = 'id';
15
+        $this->title_field         = "name";
16
+        $this->button_action_style = 'button_icon';	
17
+        $this->button_import 	   = FALSE;	
18
+        $this->button_export 	   = FALSE;	
19
+        # END CONFIGURATION DO NOT REMOVE THIS LINE
20 20
 	
21
-		# START COLUMNS DO NOT REMOVE THIS LINE
22
-		$this->col = array();
23
-		$this->col[] = array("label"=>"Name","name"=>"name");
24
-		$this->col[] = array("label"=>"Email","name"=>"email");
25
-		$this->col[] = array("label"=>"Privilege","name"=>"id_cms_privileges","join"=>"cms_privileges,name");
26
-		$this->col[] = array("label"=>"Photo","name"=>"photo","image"=>1);		
27
-		# END COLUMNS DO NOT REMOVE THIS LINE
28
-
29
-		# START FORM DO NOT REMOVE THIS LINE
30
-		$this->form = array(); 		
31
-		$this->form[] = array("label"=>"Name","name"=>"name",'required'=>true,'validation'=>'required|alpha_spaces|min:3');
32
-		$this->form[] = array("label"=>"Email","name"=>"email",'required'=>true,'type'=>'email','validation'=>'required|email|unique:cms_users,email,'.CRUDBooster::getCurrentId());		
33
-		$this->form[] = array("label"=>"Photo","name"=>"photo","type"=>"upload","help"=>"Recommended resolution is 200x200px",'required'=>true,'validation'=>'required|image|max:1000','resize_width'=>90,'resize_height'=>90);											
34
-		$this->form[] = array("label"=>"Privilege","name"=>"id_cms_privileges","type"=>"select","datatable"=>"cms_privileges,name",'required'=>true);						
35
-		// $this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change");
36
-		$this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change");
37
-		$this->form[] = array("label"=>"Password Confirmation","name"=>"password_confirmation","type"=>"password","help"=>"Please leave empty if not change");
38
-		# END FORM DO NOT REMOVE THIS LINE
21
+        # START COLUMNS DO NOT REMOVE THIS LINE
22
+        $this->col = array();
23
+        $this->col[] = array("label"=>"Name","name"=>"name");
24
+        $this->col[] = array("label"=>"Email","name"=>"email");
25
+        $this->col[] = array("label"=>"Privilege","name"=>"id_cms_privileges","join"=>"cms_privileges,name");
26
+        $this->col[] = array("label"=>"Photo","name"=>"photo","image"=>1);		
27
+        # END COLUMNS DO NOT REMOVE THIS LINE
28
+
29
+        # START FORM DO NOT REMOVE THIS LINE
30
+        $this->form = array(); 		
31
+        $this->form[] = array("label"=>"Name","name"=>"name",'required'=>true,'validation'=>'required|alpha_spaces|min:3');
32
+        $this->form[] = array("label"=>"Email","name"=>"email",'required'=>true,'type'=>'email','validation'=>'required|email|unique:cms_users,email,'.CRUDBooster::getCurrentId());		
33
+        $this->form[] = array("label"=>"Photo","name"=>"photo","type"=>"upload","help"=>"Recommended resolution is 200x200px",'required'=>true,'validation'=>'required|image|max:1000','resize_width'=>90,'resize_height'=>90);											
34
+        $this->form[] = array("label"=>"Privilege","name"=>"id_cms_privileges","type"=>"select","datatable"=>"cms_privileges,name",'required'=>true);						
35
+        // $this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change");
36
+        $this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change");
37
+        $this->form[] = array("label"=>"Password Confirmation","name"=>"password_confirmation","type"=>"password","help"=>"Please leave empty if not change");
38
+        # END FORM DO NOT REMOVE THIS LINE
39 39
 				
40
-	}
41
-
42
-	public function getProfile() {			
43
-
44
-		$this->button_addmore = FALSE;
45
-		$this->button_cancel  = FALSE;
46
-		$this->button_show    = FALSE;			
47
-		$this->button_add     = FALSE;
48
-		$this->button_delete  = FALSE;	
49
-		$this->hide_form 	  = ['id_cms_privileges'];
50
-
51
-		$data['page_title'] = trans("crudbooster.label_button_profile");
52
-		$data['row']        = CRUDBooster::first('cms_users',CRUDBooster::myId());		
53
-		$this->cbView('crudbooster::default.form',$data);				
54
-	}
55
-	public function hook_before_edit(&$postdata,$id) { 
56
-		unset($postdata['password_confirmation']);
57
-	}
58
-	public function hook_before_add(&$postdata) {      
59
-	    unset($postdata['password_confirmation']);
60
-	}
40
+    }
41
+
42
+    public function getProfile() {			
43
+
44
+        $this->button_addmore = FALSE;
45
+        $this->button_cancel  = FALSE;
46
+        $this->button_show    = FALSE;			
47
+        $this->button_add     = FALSE;
48
+        $this->button_delete  = FALSE;	
49
+        $this->hide_form 	  = ['id_cms_privileges'];
50
+
51
+        $data['page_title'] = trans("crudbooster.label_button_profile");
52
+        $data['row']        = CRUDBooster::first('cms_users',CRUDBooster::myId());		
53
+        $this->cbView('crudbooster::default.form',$data);				
54
+    }
55
+    public function hook_before_edit(&$postdata,$id) { 
56
+        unset($postdata['password_confirmation']);
57
+    }
58
+    public function hook_before_add(&$postdata) {      
59
+        unset($postdata['password_confirmation']);
60
+    }
61 61
 }
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -20,21 +20,21 @@  discard block
 block discarded – undo
20 20
 	
21 21
 		# START COLUMNS DO NOT REMOVE THIS LINE
22 22
 		$this->col = array();
23
-		$this->col[] = array("label"=>"Name","name"=>"name");
24
-		$this->col[] = array("label"=>"Email","name"=>"email");
25
-		$this->col[] = array("label"=>"Privilege","name"=>"id_cms_privileges","join"=>"cms_privileges,name");
26
-		$this->col[] = array("label"=>"Photo","name"=>"photo","image"=>1);		
23
+		$this->col[] = array("label"=>"Name", "name"=>"name");
24
+		$this->col[] = array("label"=>"Email", "name"=>"email");
25
+		$this->col[] = array("label"=>"Privilege", "name"=>"id_cms_privileges", "join"=>"cms_privileges,name");
26
+		$this->col[] = array("label"=>"Photo", "name"=>"photo", "image"=>1);		
27 27
 		# END COLUMNS DO NOT REMOVE THIS LINE
28 28
 
29 29
 		# START FORM DO NOT REMOVE THIS LINE
30 30
 		$this->form = array(); 		
31
-		$this->form[] = array("label"=>"Name","name"=>"name",'required'=>true,'validation'=>'required|alpha_spaces|min:3');
32
-		$this->form[] = array("label"=>"Email","name"=>"email",'required'=>true,'type'=>'email','validation'=>'required|email|unique:cms_users,email,'.CRUDBooster::getCurrentId());		
33
-		$this->form[] = array("label"=>"Photo","name"=>"photo","type"=>"upload","help"=>"Recommended resolution is 200x200px",'required'=>true,'validation'=>'required|image|max:1000','resize_width'=>90,'resize_height'=>90);											
34
-		$this->form[] = array("label"=>"Privilege","name"=>"id_cms_privileges","type"=>"select","datatable"=>"cms_privileges,name",'required'=>true);						
31
+		$this->form[] = array("label"=>"Name", "name"=>"name", 'required'=>true, 'validation'=>'required|alpha_spaces|min:3');
32
+		$this->form[] = array("label"=>"Email", "name"=>"email", 'required'=>true, 'type'=>'email', 'validation'=>'required|email|unique:cms_users,email,'.CRUDBooster::getCurrentId());		
33
+		$this->form[] = array("label"=>"Photo", "name"=>"photo", "type"=>"upload", "help"=>"Recommended resolution is 200x200px", 'required'=>true, 'validation'=>'required|image|max:1000', 'resize_width'=>90, 'resize_height'=>90);											
34
+		$this->form[] = array("label"=>"Privilege", "name"=>"id_cms_privileges", "type"=>"select", "datatable"=>"cms_privileges,name", 'required'=>true);						
35 35
 		// $this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change");
36
-		$this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change");
37
-		$this->form[] = array("label"=>"Password Confirmation","name"=>"password_confirmation","type"=>"password","help"=>"Please leave empty if not change");
36
+		$this->form[] = array("label"=>"Password", "name"=>"password", "type"=>"password", "help"=>"Please leave empty if not change");
37
+		$this->form[] = array("label"=>"Password Confirmation", "name"=>"password_confirmation", "type"=>"password", "help"=>"Please leave empty if not change");
38 38
 		# END FORM DO NOT REMOVE THIS LINE
39 39
 				
40 40
 	}
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
 		$this->hide_form 	  = ['id_cms_privileges'];
50 50
 
51 51
 		$data['page_title'] = trans("crudbooster.label_button_profile");
52
-		$data['row']        = CRUDBooster::first('cms_users',CRUDBooster::myId());		
53
-		$this->cbView('crudbooster::default.form',$data);				
52
+		$data['row']        = CRUDBooster::first('cms_users', CRUDBooster::myId());		
53
+		$this->cbView('crudbooster::default.form', $data);				
54 54
 	}
55
-	public function hook_before_edit(&$postdata,$id) { 
55
+	public function hook_before_edit(&$postdata, $id) { 
56 56
 		unset($postdata['password_confirmation']);
57 57
 	}
58 58
 	public function hook_before_add(&$postdata) {      
Please login to merge, or discard this patch.
src/views/statistic_builder/components/panelcustom.blade.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     </form>
43 43
 @elseif($command=='showFunction')
44 44
     <?php
45
-    if($key == 'value') {
45
+    if ($key == 'value') {
46 46
     if ($config->type == 'controller') {
47 47
         $url = action($value);
48 48
     } elseif ($config->type == 'route') {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     </script>
62 62
 
63 63
     <?php
64
-    }else {
64
+    } else {
65 65
         echo $value;
66 66
     }
67 67
     ?>
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     </script>
62 62
 
63 63
     <?php
64
-    }else {
64
+    } else {
65 65
         echo $value;
66 66
     }
67 67
     ?>
Please login to merge, or discard this patch.
src/views/statistic_builder/components/table.blade.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     </form>
39 39
 @elseif($command=='showFunction')
40 40
     <?php
41
-    if($key == 'sql') {
41
+    if ($key == 'sql') {
42 42
     try {
43 43
         $sessions = Session::all();
44 44
         foreach ($sessions as $key => $val) {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         </script>
78 78
     @endif
79 79
     <?php
80
-    }else {
80
+    } else {
81 81
         echo $value;
82 82
     }
83 83
     ?>
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         </script>
78 78
     @endif
79 79
     <?php
80
-    }else {
80
+    } else {
81 81
         echo $value;
82 82
     }
83 83
     ?>
Please login to merge, or discard this patch.