Passed
Push — master ( 889c97...54235f )
by Matthijs
26:54 queued 20:50
created
app/Http/Controllers/Backend/GeneralSettingController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
                 'name', 'value']
22 22
             )->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id);
23 23
             
24
-            $datatables = Datatables::of($query)->addColumn('action', function ($query) {
24
+            $datatables = Datatables::of($query)->addColumn('action', function($query) {
25 25
                 $deleteLink = Form::deleteajax(url()->route('general-setting.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-sm btn-danger'));
26 26
                 $links = '<a href="'.url()->route('general-setting.edit', $query->id).'" class="btn btn-sm btn-success"><i class="fi-pencil"></i>Edit</a>  '.$deleteLink;
27 27
                 return $links;
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function store(Request $request)
42 42
     {
43
-        $result  = GeneralSettingService::create($request->all());
43
+        $result = GeneralSettingService::create($request->all());
44 44
         return GeneralSettingService::notificationRedirect('general-setting.index', $result, 'The general setting was inserted.');
45 45
     }
46 46
 
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function update(Request $request, $generalSettingId)
53 53
     {
54
-        $result  = GeneralSettingService::updateById($request->all(), $generalSettingId);
54
+        $result = GeneralSettingService::updateById($request->all(), $generalSettingId);
55 55
         return GeneralSettingService::notificationRedirect('general-setting.index', $result, 'The general setting was updated.');
56 56
     }
57 57
 
58 58
     public function destroy($generalSettingId)
59 59
     {
60
-        $result  = GeneralSettingService::destroy($generalSettingId);
60
+        $result = GeneralSettingService::destroy($generalSettingId);
61 61
         if ($result) {
62 62
             Notification::error('The general setting was deleted.');
63 63
             return redirect()->route('general-setting.index');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/ContentGroupController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             ->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id);
28 28
 
29 29
             $datatables = Datatables::of($query)
30
-            ->addColumn('action', function ($query) {
30
+            ->addColumn('action', function($query) {
31 31
                 $deleteLink = Form::deleteajax(url()->route('content-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
32 32
                 $links = '<a href="'.url()->route('content-group.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
33 33
             
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function store(Request $request)
49 49
     {
50
-        $result  = ContentService::createGroup($request->all());
50
+        $result = ContentService::createGroup($request->all());
51 51
         return ContentService::notificationRedirect('content-group.index', $result, 'The content group was inserted.');
52 52
     }
53 53
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     public function update(Request $request, $contentGroupId)
60 60
     {
61
-        $result  = ContentService::updateGroupById($request->all(), $contentGroupId);
61
+        $result = ContentService::updateGroupById($request->all(), $contentGroupId);
62 62
         return ContentService::notificationRedirect('content-group.index', $result, 'The content group was updated.');
63 63
     }
64 64
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function destroy($contentGroupId)
71 71
     {
72
-        $result  = ContentService::destroyGroup($contentGroupId);
72
+        $result = ContentService::destroyGroup($contentGroupId);
73 73
 
74 74
         if ($result) {
75 75
             Notification::success('The content was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/BrandController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
     {
22 22
         if ($request->wantsJson()) {
23 23
             $brand = BrandService::getModel()
24
-            ->select(['id', 'rank','title'])
24
+            ->select(['id', 'rank', 'title'])
25 25
             ->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id);
26 26
             
27
-            $datatables = Datatables::of($brand)->addColumn('action', function ($query) {
27
+            $datatables = Datatables::of($brand)->addColumn('action', function($query) {
28 28
                 $deleteLink = Form::deleteajax(url()->route('brand.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'), $query->title);
29 29
                 $links = '<a href="'.url()->route('brand.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
30 30
             
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function store(Request $request)
46 46
     {
47
-        $result  = BrandService::create($request->all());
47
+        $result = BrandService::create($request->all());
48 48
         return BrandService::notificationRedirect('brand.index', $result, 'The brand was inserted.');
49 49
     }
50 50
 
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function update(Request $request, $brandId)
57 57
     {
58
-        $result  = BrandService::updateById($request->all(), $brandId);
58
+        $result = BrandService::updateById($request->all(), $brandId);
59 59
         return BrandService::notificationRedirect('brand.index', $result, 'The brand was updated.');
60 60
     }
61 61
 
62 62
     public function destroy($brandId)
63 63
     {
64
-        $result  = BrandService::destroy($brandId);
64
+        $result = BrandService::destroy($brandId);
65 65
         if ($result) {
66 66
             Notification::error('The brand was deleted.');
67 67
             return redirect()->route('brand.index');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/FaqItemController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
             ->where('faq_item.shop_id', '=', auth('hideyobackend')->user()->selected_shop_id);
37 37
 
38 38
             $datatables = Datatables::of($query)
39
-            ->addColumn('faqitemgroup', function ($query) {
39
+            ->addColumn('faqitemgroup', function($query) {
40 40
                 return $query->grouptitle;
41 41
             })
42
-            ->addColumn('action', function ($query) {
42
+            ->addColumn('action', function($query) {
43 43
                 $deleteLink = Form::deleteajax(url()->route('faq.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
44 44
                 $links = '<a href="'.url()->route('faq.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
45 45
             
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function store(Request $request)
63 63
     {
64
-        $result  = FaqService::create($request->all());
64
+        $result = FaqService::create($request->all());
65 65
         return FaqService::notificationRedirect('faq.index', $result, 'FaqItem was inserted.');
66 66
     }
67 67
 
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
 
74 74
     public function update(Request $request, $faqId)
75 75
     {
76
-        $result  = FaqService::updateById($request->all(), $faqId);
76
+        $result = FaqService::updateById($request->all(), $faqId);
77 77
         return FaqService::notificationRedirect('faq.index', $result, 'FaqItem was updated.');
78 78
     }
79 79
 
80 80
     public function destroy($faqItemId)
81 81
     {
82
-        $result  = FaqService::destroy($faqItemId);
82
+        $result = FaqService::destroy($faqItemId);
83 83
 
84 84
         if ($result) {
85 85
             Notification::success('The faq was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/ExtraFieldController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
         if ($request->wantsJson()) {
26 26
 
27 27
             $query = ExtraFieldService::getModel()
28
-            ->select(['id', 'all_products','title'])
28
+            ->select(['id', 'all_products', 'title'])
29 29
             ->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id);
30 30
             
31 31
             $datatables = Datatables::of($query)
32 32
 
33
-            ->addColumn('category', function ($query) {
33
+            ->addColumn('category', function($query) {
34 34
                 if ($query->categories) {
35 35
                     $output = array();
36 36
                     foreach ($query->categories as $categorie) {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                 }
42 42
             })
43 43
 
44
-            ->addColumn('action', function ($query) {
44
+            ->addColumn('action', function($query) {
45 45
                 $deleteLink = Form::deleteajax(url()->route('extra-field.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
46 46
                 $links = '<a href="'.url()->route('extra-field.values.index', $query->id).'" class="btn btn-default btn-sm btn-info"><i class="entypo-pencil"></i>'.$query->values->count().' values</a>
47 47
                  <a href="'.url()->route('extra-field.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     public function store(Request $request)
65 65
     {
66
-        $result  = ExtraFieldService::create($request->all());
66
+        $result = ExtraFieldService::create($request->all());
67 67
         return ExtraFieldService::notificationRedirect('extra-field.index', $result, 'The extra field was inserted.');
68 68
     }
69 69
 
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
 
75 75
     public function update(Request $request, $id)
76 76
     {
77
-        $result  = ExtraFieldService::updateById($request->all(), $id);
77
+        $result = ExtraFieldService::updateById($request->all(), $id);
78 78
         return ExtraFieldService::notificationRedirect('extra-field.index', $result, 'The extra field was updated.');
79 79
     }
80 80
 
81 81
     public function destroy($id)
82 82
     {
83
-        $result  = ExtraFieldService::destroy($id);
83
+        $result = ExtraFieldService::destroy($id);
84 84
 
85 85
         if ($result) {
86 86
             Notification::success('Extra field was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/CouponGroupController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             ->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id);
26 26
 
27 27
             $datatables = \Datatables::of($query)
28
-            ->addColumn('action', function ($query) {
28
+            ->addColumn('action', function($query) {
29 29
                 $deleteLink = Form::deleteajax(url()->route('coupon-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-sm btn-danger'));
30 30
                 $links = '<a href="'.url()->route('coupon-group.edit', $query->id).'" class="btn btn-sm btn-success"><i class="fi-pencil"></i>Edit</a>  '.$deleteLink;
31 31
                 return $links;
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function store(Request $request)
46 46
     {
47
-        $result  = CouponService::createGroup($request->all());
47
+        $result = CouponService::createGroup($request->all());
48 48
         return CouponService::notificationRedirect('coupon-group.index', $result, 'The coupon group was inserted.');
49 49
     }
50 50
 
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function update(Request $request, $couponGroupId)
57 57
     {
58
-        $result  = CouponService::updateGroupById($request->all(), $couponGroupId);
58
+        $result = CouponService::updateGroupById($request->all(), $couponGroupId);
59 59
         return CouponService::notificationRedirect('coupon-group.index', $result, 'The coupon group was updated.');
60 60
     }
61 61
 
62 62
     public function destroy($couponGroupId)
63 63
     {
64
-        $result  = CouponService::destroyGroup($couponGroupId);
64
+        $result = CouponService::destroyGroup($couponGroupId);
65 65
 
66 66
         if ($result) {
67 67
             Notification::success('The coupon was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/CouponController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function index(Request $request)
29 29
     {
30 30
         if ($request->wantsJson()) {
31
-            $query = CouponService::getModel()->select(['active','id', 'title', 'code'])
31
+            $query = CouponService::getModel()->select(['active', 'id', 'title', 'code'])
32 32
             ->where(CouponService::getModel()->getTable().'.shop_id', '=', auth('hideyobackend')->user()->selected_shop_id)
33 33
 
34 34
 
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
             
37 37
             $datatables = Datatables::of($query)
38 38
 
39
-            ->filterColumn('title', function ($query, $keyword) {
39
+            ->filterColumn('title', function($query, $keyword) {
40 40
                 $query->whereRaw("coupon.title like ?", ["%{$keyword}%"]);
41 41
             })
42 42
 
43
-            ->addColumn('action', function ($query) {
44
-                $deleteLink = Form::deleteajax('/admin/coupon/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
43
+            ->addColumn('action', function($query) {
44
+                $deleteLink = Form::deleteajax('/admin/coupon/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
45 45
                 $links = '<a href="/admin/coupon/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
46 46
             
47 47
                 return $links;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
     public function store(Request $request)
68 68
     {
69
-        $result  = CouponService::create($request->all());
69
+        $result = CouponService::create($request->all());
70 70
         return CouponService::notificationRedirect('coupon.index', $result, 'The coupon was inserted.');
71 71
     }
72 72
 
@@ -86,13 +86,13 @@  discard block
 block discarded – undo
86 86
 
87 87
     public function update(Request $request, $couponId)
88 88
     {
89
-        $result  = CouponService::updateById($request->all(), $couponId);
89
+        $result = CouponService::updateById($request->all(), $couponId);
90 90
         return CouponService::notificationRedirect('coupon.index', $result, 'The coupon was updated.');
91 91
     }
92 92
 
93 93
     public function destroy($couponId)
94 94
     {
95
-        $result  = CouponService::destroy($couponId);
95
+        $result = CouponService::destroy($couponId);
96 96
 
97 97
         if ($result) {
98 98
             Notification::success('The coupon was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/OrderController.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 {
31 31
     public function index()
32 32
     {
33
-        $shop  = auth('hideyobackend')->user()->shop;
33
+        $shop = auth('hideyobackend')->user()->shop;
34 34
         $now = Carbon::now();
35 35
 
36 36
         $revenueThisMonth = null;
@@ -60,15 +60,15 @@  discard block
 block discarded – undo
60 60
             
61 61
             $datatables = \Datatables::of($order)
62 62
 
63
-            ->addColumn('generated_custom_order_id', function ($order) {
63
+            ->addColumn('generated_custom_order_id', function($order) {
64 64
                 return $order->generated_custom_order_id;
65 65
             })
66 66
 
67
-            ->addColumn('created_at', function ($order) {
67
+            ->addColumn('created_at', function($order) {
68 68
                 return date('d F H:i', strtotime($order->created_at));
69 69
             })
70 70
 
71
-            ->addColumn('status', function ($order) {
71
+            ->addColumn('status', function($order) {
72 72
                 if ($order->orderStatus) {
73 73
                     if ($order->orderStatus->color) {
74 74
                         return '<a href="/admin/order/'.$order->id.'" style="text-decoration:none;"><span style="background-color:'.$order->orderStatus->color.'; padding: 10px; line-height:30px; text-align:center; color:white;">'.$order->orderStatus->title.'</span></a>';
@@ -77,46 +77,46 @@  discard block
 block discarded – undo
77 77
                 }
78 78
             })
79 79
 
80
-            ->filterColumn('client', function ($query, $keyword) {
80
+            ->filterColumn('client', function($query, $keyword) {
81 81
 
82 82
                 $query->where(
83
-                    function ($query) use ($keyword) {
83
+                    function($query) use ($keyword) {
84 84
                         $query->whereRaw("order_address.firstname like ?", ["%{$keyword}%"]);
85 85
                         $query->orWhereRaw("order_address.lastname like ?", ["%{$keyword}%"]);
86 86
                         ;
87 87
                     }
88 88
                 );
89 89
             })
90
-            ->addColumn('client', function ($order) {
90
+            ->addColumn('client', function($order) {
91 91
                 if ($order->client) {
92 92
                     if ($order->orderBillAddress) {
93
-                        return '<a href="/admin/client/'.$order->client_id.'/order">'.$order->orderBillAddress->firstname.' '.$order->orderBillAddress->lastname.' ('.$order->client->orders->count() .')</a>';
93
+                        return '<a href="/admin/client/'.$order->client_id.'/order">'.$order->orderBillAddress->firstname.' '.$order->orderBillAddress->lastname.' ('.$order->client->orders->count().')</a>';
94 94
                     }
95 95
                 }
96 96
             })
97
-            ->addColumn('products', function ($order) {
97
+            ->addColumn('products', function($order) {
98 98
                 if ($order->products) {
99 99
                     return $order->products->count();
100 100
                 }
101 101
             })
102
-            ->addColumn('price_with_tax', function ($order) {
102
+            ->addColumn('price_with_tax', function($order) {
103 103
                 $money = '&euro; '.$order->getPriceWithTaxNumberFormat();
104 104
                 return $money;
105 105
             })
106 106
 
107 107
 
108
-            ->addColumn('paymentMethod', function ($order) {
108
+            ->addColumn('paymentMethod', function($order) {
109 109
                 if ($order->orderPaymentMethod) {
110 110
                     return $order->orderPaymentMethod->title;
111 111
                 }
112 112
             })
113
-            ->addColumn('sendingMethod', function ($order) {
113
+            ->addColumn('sendingMethod', function($order) {
114 114
                 if ($order->orderSendingMethod) {
115 115
                     return $order->orderSendingMethod->title;
116 116
                 }
117 117
             })
118
-            ->addColumn('action', function ($order) {
119
-                $deleteLink = \Form::deleteajax('/admin/order/'. $order->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
118
+            ->addColumn('action', function($order) {
119
+                $deleteLink = \Form::deleteajax('/admin/order/'.$order->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
120 120
                 $download = '<a href="/admin/order/'.$order->id.'/download" class="btn btn-default btn-sm btn-info"><i class="entypo-pencil"></i>Download</a>  ';
121 121
             
122 122
        
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
         if ($data and $data['order']) {
151 151
 
152
-            if($data['type'] == 'one-pdf') {
152
+            if ($data['type'] == 'one-pdf') {
153 153
                 $pdfHtml = "";
154 154
                 $countOrders = count($data['order']);
155 155
                 $i = 0;
@@ -175,15 +175,15 @@  discard block
 block discarded – undo
175 175
                 $pdf = PDF::loadHTML($pdfHtmlBody);
176 176
 
177 177
                 return $pdf->download('order-'.$order->generated_custom_order_id.'.pdf');
178
-            } elseif($data['type'] == 'product-list') {
178
+            } elseif ($data['type'] == 'product-list') {
179 179
                 $products = OrderService::productsByOrderIds($data['order']);
180 180
 
181
-                if($products) {
181
+                if ($products) {
182 182
 
183 183
 
184
-                    Excel::create('products', function ($excel) use ($products) {
184
+                    Excel::create('products', function($excel) use ($products) {
185 185
 
186
-                        $excel->sheet('Products', function ($sheet) use ($products) {
186
+                        $excel->sheet('Products', function($sheet) use ($products) {
187 187
                             $newArray = array();
188 188
                             foreach ($products as $key => $row) {
189 189
                 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
         if ($orders) {
216 216
             Request::session()->put('print_orders', $orders->toArray());
217
-            return response()->json(array('orders' => $orders->toArray() ));
217
+            return response()->json(array('orders' => $orders->toArray()));
218 218
         }
219 219
 
220 220
         Request::session()->destroy('print_orders');
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     public function downloadLabel($orderId)
258 258
     {
259 259
         $order = OrderService::find($orderId);
260
-        if($order->orderLabel()->count()) {
260
+        if ($order->orderLabel()->count()) {
261 261
           header("Content-type: application/octet-stream");
262 262
           header("Content-disposition: attachment;filename=label.pdf");
263 263
           echo $order->orderLabel->data;
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
         );
291 291
         foreach ($replace as $key => $val) {
292
-            $content = str_replace("[" . $key . "]", $val, $content);
292
+            $content = str_replace("[".$key."]", $val, $content);
293 293
         }
294 294
 
295 295
         return $content;
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 
303 303
     public function update($orderId)
304 304
     {
305
-        $result  = OrderService::updateById(Request::all(), $orderId);
305
+        $result = OrderService::updateById(Request::all(), $orderId);
306 306
 
307 307
         if ($result->errors()->all()) {
308 308
             return redirect()->back()->withInput()->withErrors($result->errors()->all());
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/NewsGroupController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             )->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id);
29 29
 
30 30
             $datatables = \Datatables::of($query)
31
-            ->addColumn('action', function ($query) {
31
+            ->addColumn('action', function($query) {
32 32
                 $deleteLink = \Form::deleteajax(url()->route('news-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
33 33
                 $links = '<a href="'.url()->route('news-group.edit', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
34 34
             
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function store(Request $request)
51 51
     {
52
-        $result  = NewsService::createGroup($request->all());
52
+        $result = NewsService::createGroup($request->all());
53 53
         return NewsService::notificationRedirect('news-group.index', $result, 'The news group was inserted.');
54 54
     }
55 55
 
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
 
61 61
     public function update(Request $request, $newsGroupId)
62 62
     {
63
-        $result  = NewsService::updateGroupById($request->all(), $newsGroupId);
63
+        $result = NewsService::updateGroupById($request->all(), $newsGroupId);
64 64
         return NewsService::notificationRedirect('news-group.index', $result, 'The news group was updated.');
65 65
     }
66 66
 
67 67
     public function destroy($newsGroupId)
68 68
     {
69
-        $result  = NewsService::destroyGroup($newsGroupId);
69
+        $result = NewsService::destroyGroup($newsGroupId);
70 70
 
71 71
         if ($result) {
72 72
             Notification::success('The news group was deleted.');
Please login to merge, or discard this patch.