Completed
Push — development ( 83d263...1d0f0a )
by Ashutosh
36:19 queued 24:56
created
app/Http/Controllers/Licence/ServiceController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         return \Datatable::collection($this->service->get())
34 34
                         ->showColumns('name')
35
-                        ->addColumn('action', function ($model) {
35
+                        ->addColumn('action', function($model) {
36 36
                             return '<a href='.url('services/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
37 37
                         })
38 38
                         ->searchColumns('name')
Please login to merge, or discard this patch.
app/Http/Controllers/Licence/LicenceController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         return \Datatable::collection($this->licence->get())
39 39
                         ->showColumns('name', 'description', 'number_of_sla', 'price')
40
-                        ->addColumn('action', function ($model) {
40
+                        ->addColumn('action', function($model) {
41 41
                             return '<a href='.url('licences/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
42 42
                         })
43 43
                         ->searchColumns('description')
Please login to merge, or discard this patch.
app/Http/Controllers/Order/SubscriptionController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         //dd($this->invoice->get());
48 48
         return \Datatable::collection($this->subscription->get())
49 49
 
50
-                        ->addColumn('user_id', function ($model) {
50
+                        ->addColumn('user_id', function($model) {
51 51
                             $user = $model->user()->first();
52 52
                             $first = $user->first_name;
53 53
                             $last = $user->last_name;
@@ -55,18 +55,18 @@  discard block
 block discarded – undo
55 55
 
56 56
                             return '<a href='.url('clients/'.$id).'>'.ucfirst($first).' '.ucfirst($last).'</a>';
57 57
                         })
58
-                        ->addColumn('plan_id', function ($model) {
58
+                        ->addColumn('plan_id', function($model) {
59 59
                             $name = $this->plan->where('id', $model->plan_id)->first()->name;
60 60
 
61 61
                             return $name;
62 62
                         })
63
-                        ->addColumn('order_id', function ($model) {
63
+                        ->addColumn('order_id', function($model) {
64 64
                             $name = $this->order->where('id', $model->order_id)->first()->id;
65 65
 
66 66
                             return $name;
67 67
                         })
68 68
                         ->showColumns('ends_at')
69
-                        ->addColumn('action', function ($model) {
69
+                        ->addColumn('action', function($model) {
70 70
                             return '<a href='.url('subscriptions/'.$model->id)." class='btn btn-sm btn-primary'>View</a>";
71 71
                         })
72 72
                         ->searchColumns('ends_at')
Please login to merge, or discard this patch.
app/Box.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function startsWith($letter)
52 52
     {
53
-        return array_filter($this->items, function ($item) use ($letter) {
53
+        return array_filter($this->items, function($item) use ($letter) {
54 54
             return stripos($item, $letter) === 0;
55 55
         });
56 56
     }
Please login to merge, or discard this patch.
app/Http/Kernel.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
         \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
18 18
         \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
19 19
         // \App\Http\Middleware\TrimStrings::class,
20
-          \Illuminate\Session\Middleware\StartSession::class,
21
-             \Illuminate\View\Middleware\ShareErrorsFromSession::class,
20
+            \Illuminate\Session\Middleware\StartSession::class,
21
+                \Illuminate\View\Middleware\ShareErrorsFromSession::class,
22 22
         // \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
23 23
     ];
24 24
 
@@ -29,21 +29,21 @@  discard block
 block discarded – undo
29 29
      */
30 30
     protected $middlewareGroups = [
31 31
         'web' => [
32
-             \App\Http\Middleware\Install::class,
32
+                \App\Http\Middleware\Install::class,
33 33
             \App\Http\Middleware\EncryptCookies::class,
34 34
             \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
35 35
             // \Illuminate\Session\Middleware\StartSession::class,
36 36
             // \Illuminate\Session\Middleware\AuthenticateSession::class,
37 37
             // \Illuminate\View\Middleware\ShareErrorsFromSession::class,
38
-           // \App\Http\Middleware\VerifyCsrfToken::class,
38
+            // \App\Http\Middleware\VerifyCsrfToken::class,
39 39
             \Illuminate\Routing\Middleware\SubstituteBindings::class,
40 40
 
41
-             // \App\Http\Middleware\IsInstalled::class,
41
+                // \App\Http\Middleware\IsInstalled::class,
42 42
 
43 43
         ],
44
-         'admin'        => [\App\Http\Middleware\Admin::class],
45
-          'guest'       => [\App\Http\Middleware\RedirectIfAuthenticated::class],
46
-           'auth'       => [\Illuminate\Auth\Middleware\Authenticate::class],
44
+            'admin'        => [\App\Http\Middleware\Admin::class],
45
+            'guest'       => [\App\Http\Middleware\RedirectIfAuthenticated::class],
46
+            'auth'       => [\Illuminate\Auth\Middleware\Authenticate::class],
47 47
         'auth.basic'    => [\Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class],
48 48
 
49 49
         'api' => [
Please login to merge, or discard this patch.
app/Http/Controllers/Payment/PromotionController.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                         ->addColumn('action', function ($model) {
87 87
                             return '<a href='.url('promotions/'.$model->id.'/edit')." class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' style='color:white;'> </i>&nbsp;&nbsp;Edit</a>";
88 88
                         })
89
-                         ->rawColumns(['checkbox', 'code', 'products', 'action'])
89
+                            ->rawColumns(['checkbox', 'code', 'products', 'action'])
90 90
 
91 91
                         ->make(true);
92 92
     }
@@ -301,12 +301,12 @@  discard block
 block discarded – undo
301 301
 
302 302
             $userId = \Auth::user()->id;
303 303
             \Cart::update($productid, [
304
-           'id'        => $productid,
305
-           'price'     => $value,
306
-          'conditions' => $coupon,
304
+            'id'        => $productid,
305
+            'price'     => $value,
306
+            'conditions' => $coupon,
307 307
 
308
-           // new item price, price can also be a string format like so: '98.67'
309
-          ]);
308
+            // new item price, price can also be a string format like so: '98.67'
309
+            ]);
310 310
             $items = \Cart::getContent();
311 311
             \Session::put('items', $items);
312 312
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,16 +59,16 @@  discard block
 block discarded – undo
59 59
         $new_promotion = $this->promotion->select('code', 'type', 'id')->get();
60 60
 
61 61
         return\ DataTables::of($new_promotion)
62
-                            ->addColumn('checkbox', function ($model) {
62
+                            ->addColumn('checkbox', function($model) {
63 63
                                 return "<input type='checkbox' class='promotion_checkbox' value=".$model->id.' name=select[] id=check>';
64 64
                             })
65
-                        ->addColumn('code', function ($model) {
65
+                        ->addColumn('code', function($model) {
66 66
                             return ucfirst($model->code);
67 67
                         })
68
-                        ->addColumn('type', function ($model) {
68
+                        ->addColumn('type', function($model) {
69 69
                             return $this->type->where('id', $model->type)->first()->name;
70 70
                         })
71
-                        ->addColumn('products', function ($model) {
71
+                        ->addColumn('products', function($model) {
72 72
                             $selected = $this->promoRelation->select('product_id')->where('promotion_id', $model->id)->get();
73 73
                             $result = [];
74 74
                             foreach ($selected as $key => $select) {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                                 return 'None';
81 81
                             }
82 82
                         })
83
-                        ->addColumn('action', function ($model) {
83
+                        ->addColumn('action', function($model) {
84 84
                             return '<a href='.url('promotions/'.$model->id.'/edit')." class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit' style='color:white;'> </i>&nbsp;&nbsp;Edit</a>";
85 85
                         })
86 86
                          ->rawColumns(['checkbox', 'code', 'products', 'action'])
Please login to merge, or discard this patch.
app/Http/Controllers/Payment/CurrencyController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,17 +33,17 @@
 block discarded – undo
33 33
     public function getCurrency()
34 34
     {
35 35
         return \DataTables::of($this->currency->select('name', 'id')->where('id', '!=', 1)->get())
36
-                        ->addColumn('checkbox', function ($model) {
36
+                        ->addColumn('checkbox', function($model) {
37 37
                             return "<input type='checkbox' class='currency_checkbox' value=".$model->id.' name=select[] id=check>';
38 38
                         })
39
-                        ->addColumn('name', function ($model) {
39
+                        ->addColumn('name', function($model) {
40 40
                             return $model->name;
41 41
                         })
42
-                        ->addColumn('base_conversion', function ($model) {
42
+                        ->addColumn('base_conversion', function($model) {
43 43
                             return $model->base_conversion;
44 44
                         })
45 45
                         // ->showColumns('name', 'base_conversion')
46
-                        ->addColumn('action', function ($model) {
46
+                        ->addColumn('action', function($model) {
47 47
                             //return "<a href=" . url('products/' . $model->id . '/edit') . " class='btn btn-sm btn-primary'>Edit</a>";
48 48
                             //return "<a href=#create class='btn btn-primary pull-right' data-toggle=modal data-target=#edit".$model->id.">".\Lang::get('message.create')."</a>".  include base_path(). '/resources/views/themes/default1/payment/currency/edit.blade.php';
49 49
 
Please login to merge, or discard this patch.
app/Http/Controllers/Product/BundleController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
     public function getBundles()
48 48
     {
49 49
         return \Datatable::collection($this->bundle->select('id', 'name', 'valid_from', 'valid_till', 'uses', 'maximum_uses')->get())
50
-                        ->addColumn('#', function ($model) {
50
+                        ->addColumn('#', function($model) {
51 51
                             return "<input type='checkbox' value=".$model->id.' name=select[] id=check>';
52 52
                         })
53 53
                         ->showColumns('name', 'valid_from', 'valid_till', 'uses', 'maximum_uses')
54
-                        ->addColumn('item', function ($model) {
54
+                        ->addColumn('item', function($model) {
55 55
                             $name = $this->relation->where('bundle_id', $model->id)->pluck('product_id');
56 56
                             //dd($name);
57 57
                             $result = [];
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                             //dd($result);
62 62
                             return implode(',', $result);
63 63
                         })
64
-                        ->addColumn('action', function ($model) {
64
+                        ->addColumn('action', function($model) {
65 65
                             return '<a href='.url('bundles/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
66 66
                         })
67 67
                         ->searchColumns('name', 'item')
Please login to merge, or discard this patch.
app/Http/Controllers/Product/GroupController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
                         ->addColumn('action', function ($model) {
71 71
                             return '<a href='.url('groups/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
72 72
                         })
73
-                      ->rawColumns(['name', 'features', 'action'])
73
+                        ->rawColumns(['name', 'features', 'action'])
74 74
                         ->make(true);
75 75
     }
76 76
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 
53 53
         // return \Datatable::of($this->group->select('id', 'name')->get())
54 54
 
55
-                        ->editColumn('#', function ($model) {
55
+                        ->editColumn('#', function($model) {
56 56
                             return "<input type='checkbox' value=".$model->id.' name=select[] id=check>';
57 57
                         })
58 58
                         // ->showColumns('name')
59
-                        ->editColumn('features', function ($model) {
59
+                        ->editColumn('features', function($model) {
60 60
                             $features = $this->feature->select('features')->where('group_id', $model->id)->get();
61 61
                             //dd($features);
62 62
                             $result = [];
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                             //dd($result);
68 68
                             return implode(',', $result);
69 69
                         })
70
-                        ->addColumn('action', function ($model) {
70
+                        ->addColumn('action', function($model) {
71 71
                             return '<a href='.url('groups/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
72 72
                         })
73 73
                       ->rawColumns(['name', 'features', 'action'])
Please login to merge, or discard this patch.