Completed
Pull Request — master (#141)
by Bhanu
37:51 queued 34s
created
app/Http/Controllers/Front/PageController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,14 +31,14 @@
 block discarded – undo
31 31
     public function GetPages()
32 32
     {
33 33
         return \Datatable::collection($this->page->get())
34
-                        ->addColumn('#', function ($model) {
34
+                        ->addColumn('#', function($model) {
35 35
                             return "<input type='checkbox' value=".$model->id.' name=select[] id=check>';
36 36
                         })
37 37
                         ->showColumns('name', 'url', 'created_at')
38
-                        ->addColumn('content', function ($model) {
38
+                        ->addColumn('content', function($model) {
39 39
                             return str_limit($model->content, 10, '...');
40 40
                         })
41
-                        ->addColumn('action', function ($model) {
41
+                        ->addColumn('action', function($model) {
42 42
                             return '<a href='.url('pages/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
43 43
                         })
44 44
                         ->searchColumns('name', 'content')
Please login to merge, or discard this patch.
app/Http/Controllers/Licence/SlaController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,29 +60,29 @@
 block discarded – undo
60 60
     public function GetSlas()
61 61
     {
62 62
         return \Datatable::collection($this->sla->get())
63
-                        ->addColumn('licence_id', function ($model) {
63
+                        ->addColumn('licence_id', function($model) {
64 64
                             $licence_name = $this->licence->where('id', $model->licence_id)->first()->name;
65 65
 
66 66
                             return $licence_name;
67 67
                         })
68 68
                         ->showColumns('name', 'description')
69
-                        ->addColumn('service', function ($model) {
69
+                        ->addColumn('service', function($model) {
70 70
                             $serviceid = $this->slaServiceRelation->where('sla_id', $model->id)->first()->service_id;
71 71
 
72 72
                             return $this->service->where('id', $serviceid)->first()->name;
73 73
                         })
74
-                        ->addColumn('organization_id', function ($model) {
74
+                        ->addColumn('organization_id', function($model) {
75 75
                             $name = $this->organization->where('id', $model->organization_id)->where('type', 'client')->first()->name;
76 76
 
77 77
                             return $name;
78 78
                         })
79
-                        ->addColumn('service_provider_id', function ($model) {
79
+                        ->addColumn('service_provider_id', function($model) {
80 80
                             $name = $this->organization->where('id', $model->service_provider_id)->where('type', 'service_provider')->first()->name;
81 81
 
82 82
                             return $name;
83 83
                         })
84 84
                         ->showColumns('start_date', 'end_date', 'grace_period')
85
-                        ->addColumn('action', function ($model) {
85
+                        ->addColumn('action', function($model) {
86 86
                             return '<a href='.url('slas/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
87 87
                         })
88 88
                         ->searchColumns('name')
Please login to merge, or discard this patch.
app/Http/Controllers/ServiceProvider/ServiceProviderController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,25 +88,25 @@
 block discarded – undo
88 88
     public function GetSlas()
89 89
     {
90 90
         return \Datatable::collection($this->sla->where('service_provider_id', $this->org->id)->get())
91
-                        ->addColumn('licence_id', function ($model) {
91
+                        ->addColumn('licence_id', function($model) {
92 92
                             $licence_name = $this->licence->where('id', $model->licence_id)->first()->name;
93 93
 
94 94
                             return $licence_name;
95 95
                         })
96 96
                         ->showColumns('name', 'description')
97
-                        ->addColumn('service', function ($model) {
97
+                        ->addColumn('service', function($model) {
98 98
                             $serviceid = $this->slaServiceRelation->where('sla_id', $model->id)->first()->service_id;
99 99
 
100 100
                             return $this->service->where('id', $serviceid)->first()->name;
101 101
                         })
102
-                        ->addColumn('organization_id', function ($model) {
102
+                        ->addColumn('organization_id', function($model) {
103 103
                             $name = $this->organization->where('id', $model->organization_id)->where('type', 'client')->first()->name;
104 104
 
105 105
                             return $name;
106 106
                         })
107 107
 
108 108
                         ->showColumns('start_date', 'end_date', 'grace_period')
109
-                        ->addColumn('action', function ($model) {
109
+                        ->addColumn('action', function($model) {
110 110
                             return '<a href='.url('slas/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
111 111
                         })
112 112
                         ->searchColumns('name')
Please login to merge, or discard this patch.
app/Http/Controllers/Payment/PromotionController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,14 +58,14 @@  discard block
 block discarded – undo
58 58
     public function GetPromotion()
59 59
     {
60 60
         return \Datatable::collection($this->promotion->select('code', 'type', 'id')->get())
61
-                        ->addColumn('#', function ($model) {
61
+                        ->addColumn('#', function($model) {
62 62
                             return "<input type='checkbox' value=".$model->id.' name=select[] id=check>';
63 63
                         })
64 64
                         ->showColumns('code')
65
-                        ->addColumn('type', function ($model) {
65
+                        ->addColumn('type', function($model) {
66 66
                             return $this->type->where('id', $model->type)->first()->name;
67 67
                         })
68
-                        ->addColumn('products', function ($model) {
68
+                        ->addColumn('products', function($model) {
69 69
                             $selected = $this->promoRelation->select('product_id')->where('promotion_id', $model->id)->get();
70 70
 
71 71
                             foreach ($selected as $key => $select) {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                                 return 'None';
78 78
                             }
79 79
                         })
80
-                        ->addColumn('action', function ($model) {
80
+                        ->addColumn('action', function($model) {
81 81
                             return '<a href='.url('promotions/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
82 82
                         })
83 83
                         ->searchColumns('products')
Please login to merge, or discard this patch.
samples/dhtmlxForm/06_data/php/connector/base_connector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -245,10 +245,10 @@
 block discarded – undo
245 245
     private $editing = false; //!< flag of edit mode ( response for dataprocessor )
246 246
     private $db; //!< db connection resource
247 247
     protected $dload; //!< flag of dyn. loading mode
248
-    public $access;  //!< AccessMaster instance
248
+    public $access; //!< AccessMaster instance
249 249
 
250
-    public $sql;    //DataWrapper instance
251
-    public $event;    //EventMaster instance
250
+    public $sql; //DataWrapper instance
251
+    public $event; //EventMaster instance
252 252
 
253 253
     private $id_seed = 0; //!< default value, used to generate auto-IDs
254 254
 
Please login to merge, or discard this patch.
dhtmlxSuite_v50_std/samples/dhtmlxForm/06_data/php/connector/db_common.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 **/
7 7
 class DataRequestConfig
8 8
 {
9
-    private $filters;    //!< array of filtering rules
10
-    private $relation = false;    //!< ID or other element used for linking hierarchy
11
-    private $sort_by;    //!< sorting field
12
-    private $start;    //!< start of requested data
13
-    private $count;    //!< length of requested data
9
+    private $filters; //!< array of filtering rules
10
+    private $relation = false; //!< ID or other element used for linking hierarchy
11
+    private $sort_by; //!< sorting field
12
+    private $start; //!< start of requested data
13
+    private $count; //!< length of requested data
14 14
 
15 15
     //for render_sql
16
-    private $source;    //!< souce table or another source destination
17
-    private $fieldset;    //!< set of data, which need to be retrieved from source
16
+    private $source; //!< souce table or another source destination
17
+    private $fieldset; //!< set of data, which need to be retrieved from source
18 18
 
19 19
     /*! constructor
20 20
 
Please login to merge, or discard this patch.
samples/dhtmlxGrid/14_loading_big_datasets/php/50000_load_grid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     //print one level of the tree, based on parent_id
61 61
 function getDataFromDB($name_mask, $code_mask, $sort_by, $sort_dir)
62 62
 {
63
-    global $posStart,$count,$nm_mask,$cd_mask;
63
+    global $posStart, $count, $nm_mask, $cd_mask;
64 64
     $sql = 'SELECT  * FROM grid50000 Where 0=0';
65 65
     if ($nm_mask != '') {
66 66
         $sql .= " and item_nm like '$nm_mask%'";
Please login to merge, or discard this patch.
dhtmlxSuite_v50_std/samples/dhtmlxList/common/connector/base_connector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -355,11 +355,11 @@
 block discarded – undo
355 355
     private $updating = false; //!< flag of update mode ( response for data-update )
356 356
     private $db; //!< db connection resource
357 357
     protected $dload; //!< flag of dyn. loading mode
358
-    public $access;  //!< AccessMaster instance
358
+    public $access; //!< AccessMaster instance
359 359
     protected $data_separator = "\n";
360 360
 
361
-    public $sql;    //DataWrapper instance
362
-    public $event;    //EventMaster instance
361
+    public $sql; //DataWrapper instance
362
+    public $event; //EventMaster instance
363 363
     public $limit = false;
364 364
 
365 365
     private $id_seed = 0; //!< default value, used to generate auto-IDs
Please login to merge, or discard this patch.
dhtmlxSuite_v50_std/samples/dhtmlxList/common/connector/db_common.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,19 +9,19 @@
 block discarded – undo
9 9
 **/
10 10
 class DataRequestConfig
11 11
 {
12
-    private $filters;    //!< array of filtering rules
13
-    private $relation = false;    //!< ID or other element used for linking hierarchy
14
-    private $sort_by;    //!< sorting field
15
-    private $start;    //!< start of requested data
16
-    private $count;    //!< length of requested data
12
+    private $filters; //!< array of filtering rules
13
+    private $relation = false; //!< ID or other element used for linking hierarchy
14
+    private $sort_by; //!< sorting field
15
+    private $start; //!< start of requested data
16
+    private $count; //!< length of requested data
17 17
 
18 18
     private $order = false;
19 19
     private $user;
20 20
     private $version;
21 21
 
22 22
     //for render_sql
23
-    private $source;    //!< souce table or another source destination
24
-    private $fieldset;    //!< set of data, which need to be retrieved from source
23
+    private $source; //!< souce table or another source destination
24
+    private $fieldset; //!< set of data, which need to be retrieved from source
25 25
 
26 26
     /*! constructor
27 27
 
Please login to merge, or discard this patch.