Test Setup Failed
Push — development ( 236f05...edaf4e )
by Ashutosh
08:38
created
app/Http/Controllers/Front/PageController.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                             return '<a href='.url('pages/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
51 51
                         })
52 52
 
53
-                          ->rawColumns(['checkbox', 'name', 'url',  'created_at', 'content', 'action'])
53
+                            ->rawColumns(['checkbox', 'name', 'url',  'created_at', 'content', 'action'])
54 54
                         ->make(true);
55 55
         // ->searchColumns('name', 'content')
56 56
                         // ->orderColumns('name')
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
         $template = $this->getHelpdeskTemplate($helpdesk_products, $data, $trasform);
298 298
 
299 299
         $helpdesk_vps_product = $product->where('id', '!=', 1)->where('category', '=', 'helpdesk vps')
300
-         ->get()
300
+            ->get()
301 301
         ->toArray();
302 302
         $trasform3 = [];
303 303
         $helpdesk_vps_template = $this->getHelpdeskVpsTemplate($helpdesk_vps_product, $data, $trasform3);
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,27 +30,27 @@  discard block
 block discarded – undo
30 30
     public function getPages()
31 31
     {
32 32
         return \DataTables::of($this->page->get())
33
-                        ->addColumn('checkbox', function ($model) {
33
+                        ->addColumn('checkbox', function($model) {
34 34
                             return "<input type='checkbox' class='page_checkbox' value=".$model->id.' name=select[] id=check>';
35 35
                         })
36
-                        ->addColumn('name', function ($model) {
36
+                        ->addColumn('name', function($model) {
37 37
                             return ucfirst($model->name);
38 38
                         })
39
-                        ->addColumn('url', function ($model) {
39
+                        ->addColumn('url', function($model) {
40 40
                             return $model->url;
41 41
                         })
42
-                        ->addColumn('created_at', function ($model) {
42
+                        ->addColumn('created_at', function($model) {
43 43
                             return $model->created_at;
44 44
                         })
45 45
 
46
-                        ->addColumn('content', function ($model) {
46
+                        ->addColumn('content', function($model) {
47 47
                             return str_limit($model->content, 10, '...');
48 48
                         })
49
-                        ->addColumn('action', function ($model) {
49
+                        ->addColumn('action', function($model) {
50 50
                             return '<a href='.url('pages/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
51 51
                         })
52 52
 
53
-                          ->rawColumns(['checkbox', 'name', 'url',  'created_at', 'content', 'action'])
53
+                          ->rawColumns(['checkbox', 'name', 'url', 'created_at', 'content', 'action'])
54 54
                         ->make(true);
55 55
         // ->searchColumns('name', 'content')
56 56
                         // ->orderColumns('name')
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
         $product = new \App\Model\Product\Product();
291 291
         $helpdesk_products = $product->where('id', '!=', 1)->where('category', '=', 'helpdesk')
292
-        ->orderBy('created_at','asc')
292
+        ->orderBy('created_at', 'asc')
293 293
         ->get()
294 294
         ->toArray();
295 295
         $temp_controller = new \App\Http\Controllers\Common\TemplateController();
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         $helpdesk_vps_template = $this->getHelpdeskVpsTemplate($helpdesk_vps_product, $data, $trasform3);
304 304
 
305 305
         $sevice_desk_products = $product->where('id', '!=', 1)->where('category', '=', 'servicedesk')
306
-        ->orderBy('created_at','asc')
306
+        ->orderBy('created_at', 'asc')
307 307
         ->get()
308 308
         ->toArray();
309 309
         $trasform1 = [];
@@ -314,6 +314,6 @@  discard block
 block discarded – undo
314 314
 
315 315
         $service_template = $this->getServiceTemplate($service, $data, $trasform2);
316 316
 
317
-        return view('themes.default1.common.template.shoppingcart', compact('template', 'trasform', 'servicedesk_template', 'trasform1', 'service_template', 'trasform2','helpdesk_vps_template','trasform3'));
317
+        return view('themes.default1.common.template.shoppingcart', compact('template', 'trasform', 'servicedesk_template', 'trasform1', 'service_template', 'trasform2', 'helpdesk_vps_template', 'trasform3'));
318 318
     }
319 319
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Front/GetPageTemplateController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
     }
30 30
 
31 31
 
32
-     /**
33
-     * Get  Template For Helpdesk Products.
34
-     */
32
+        /**
33
+         * Get  Template For Helpdesk Products.
34
+         */
35 35
     public function getHelpdeskVpsTemplate($helpdesk_vps_product, $data, $trasform3)
36 36
     {
37 37
         $temp_controller = new \App\Http\Controllers\Common\TemplateController();
Please login to merge, or discard this patch.