Passed
Push — master ( 96f0ff...c26e61 )
by Matthijs
20:17 queued 13:20
created
app/Http/Controllers/Backend/ClientController.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
             $clients = ClientService::getModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id);
29 29
             
30 30
             $datatables = Datatables::of($clients)
31
-            ->addColumn('last_login', function ($clients) {
31
+            ->addColumn('last_login', function($clients) {
32 32
                 return date('d F H:i', strtotime($clients->last_login));
33 33
             })
34
-            ->addColumn('action', function ($clients) {
34
+            ->addColumn('action', function($clients) {
35 35
                 $deleteLink = Form::deleteajax(url()->route('client.destroy', $clients->id), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
36 36
                 $links = '<a href="'.url()->route('client.edit', $clients->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Show</a>  '.$deleteLink;
37 37
             
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
     public function postActivate(Request $request, $clientId)
69 69
     {
70 70
         $input = $request->all();
71
-        $result  = ClientService::activate($clientId);
71
+        $result = ClientService::activate($clientId);
72 72
 
73 73
         if ($input['send_mail']) {
74
-                Mail::send('frontend.email.activate-mail', array('user' => $result->toArray(), 'billAddress' => $result->clientBillAddress->toArray()), function ($message) use ($result) {
74
+                Mail::send('frontend.email.activate-mail', array('user' => $result->toArray(), 'billAddress' => $result->clientBillAddress->toArray()), function($message) use ($result) {
75 75
                     $message->to($result['email'])->from('[email protected]', 'Hideyo')->subject('Toegang tot account.');
76 76
                 });
77 77
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
     public function store(Request $request)
93 93
     {
94
-        $result  = ClientService::create($request->all());
94
+        $result = ClientService::create($request->all());
95 95
         return ClientService::notificationRedirect('client.index', $result, 'The client was inserted.');
96 96
     }
97 97
 
@@ -122,24 +122,24 @@  discard block
 block discarded – undo
122 122
 
123 123
     public function postExport()
124 124
     {
125
-        $result  =  ClientService::selectAllExport();
126
-        Excel::create('export', function ($excel) use ($result) {
125
+        $result = ClientService::selectAllExport();
126
+        Excel::create('export', function($excel) use ($result) {
127 127
 
128
-            $excel->sheet('Clients', function ($sheet) use ($result) {
128
+            $excel->sheet('Clients', function($sheet) use ($result) {
129 129
                 $newArray = array();
130 130
                 foreach ($result as $row) {
131 131
                     $firstname = null;
132
-                    if($row->clientBillAddress) {
132
+                    if ($row->clientBillAddress) {
133 133
                         $firstname = $row->clientBillAddress->firstname;
134 134
                     }
135 135
 
136 136
                     $lastname = null;
137
-                    if($row->clientBillAddress) {
137
+                    if ($row->clientBillAddress) {
138 138
                         $lastname = $row->clientBillAddress->lastname;
139 139
                     }
140 140
 
141 141
                     $gender = null;
142
-                    if($row->clientBillAddress) {
142
+                    if ($row->clientBillAddress) {
143 143
                         $gender = $row->clientBillAddress->gender;
144 144
                     }
145 145
 
@@ -163,12 +163,12 @@  discard block
 block discarded – undo
163 163
 
164 164
     public function update(Request $request, $clientId)
165 165
     {
166
-        $result  = ClientService::updateById($request->all(), $clientId);
166
+        $result = ClientService::updateById($request->all(), $clientId);
167 167
         $input = $request->all();
168 168
         if (isset($result->id)) {
169 169
             if ($result->active) {
170 170
                 if ($input['send_mail']) {
171
-                    Mail::send('frontend.email.activate-mail', array('user' => $result->toArray(), 'billAddress' => $result->clientBillAddress->toArray()), function ($message) use ($result) {
171
+                    Mail::send('frontend.email.activate-mail', array('user' => $result->toArray(), 'billAddress' => $result->clientBillAddress->toArray()), function($message) use ($result) {
172 172
                         $message->to($result['email'])->from('[email protected]', 'Hideyo')->subject('Toegang tot account.');
173 173
                     });
174 174
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
     public function destroy($clientId)
191 191
     {
192
-        $result  = ClientService::destroy($clientId);
192
+        $result = ClientService::destroy($clientId);
193 193
 
194 194
         if ($result) {
195 195
             Notification::success('The client was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/ErrorController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
 
22 22
             $query = $this->error->getModel();
23 23
             
24
-            $datatables = \Datatables::of($query)->addColumn('action', function ($query) {
25
-                $deleteLink = \Form::deleteajax('/admin/general-setting/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
24
+            $datatables = \Datatables::of($query)->addColumn('action', function($query) {
25
+                $deleteLink = \Form::deleteajax('/admin/general-setting/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
26 26
                 $links = '<a href="/admin/general-setting/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
27 27
             
28 28
                 return $links;
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/ProductCategoryController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@  discard block
 block discarded – undo
27 27
             
28 28
             $datatables = Datatables::of($productCategory)
29 29
 
30
-            ->addColumn('image', function ($productCategory) {
30
+            ->addColumn('image', function($productCategory) {
31 31
                 if ($productCategory->productCategoryImages->count()) {
32 32
                     return '<img src="/files/product_category/100x100/'.$productCategory->id.'/'.$productCategory->productCategoryImages->first()->file.'"  />';
33 33
                 }
34 34
             })
35 35
 
36
-            ->addColumn('title', function ($productCategory) {
36
+            ->addColumn('title', function($productCategory) {
37 37
 
38 38
                 $categoryTitle = $productCategory->title;
39 39
                 if ($productCategory->refProductCategory) {
@@ -47,17 +47,17 @@  discard block
 block discarded – undo
47 47
                 return $categoryTitle;
48 48
             })
49 49
 
50
-            ->addColumn('products', function ($productCategory) {
50
+            ->addColumn('products', function($productCategory) {
51 51
                 return $productCategory->products->count();
52 52
             })
53
-            ->addColumn('parent', function ($productCategory) {
53
+            ->addColumn('parent', function($productCategory) {
54 54
              
55 55
                 if ($productCategory->parent()->count()) {
56 56
                     return $productCategory->parent()->first()->title;
57 57
                 }
58 58
             })
59 59
 
60
-            ->addColumn('active', function ($product) {
60
+            ->addColumn('active', function($product) {
61 61
                 if ($product->active) {
62 62
                     return '<a href="#" class="change-active" data-url="/admin/product-category/change-active/'.$product->id.'"><span class="glyphicon glyphicon-ok icon-green"></span></a>';
63 63
                 }
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
             })
67 67
 
68 68
 
69
-            ->addColumn('seo', function ($productCategory) {
69
+            ->addColumn('seo', function($productCategory) {
70 70
                 if ($productCategory->meta_title && $productCategory->meta_description) {
71 71
                     return '<i class="fa fa-check"></i>';
72 72
                 }
73 73
             })
74
-            ->addColumn('action', function ($productCategory) {
74
+            ->addColumn('action', function($productCategory) {
75 75
                 $deleteLink = Form::deleteajax(url()->route('product-category.destroy', $productCategory->id), 'Delete', '', array('class'=>'btn btn-sm btn-danger'), $productCategory->title);
76 76
                 $links = '<a href="'.url()->route('product-category.edit', $productCategory->id).'" class="btn btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
77 77
             
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
     public function store(Request $request)
134 134
     {
135
-        $result  = ProductCategoryService::create($this->generateInput($request->all()));
135
+        $result = ProductCategoryService::create($this->generateInput($request->all()));
136 136
         return ProductCategoryService::notificationRedirect('product-category.index', $result, 'The product category was inserted.');
137 137
     }
138 138
 
@@ -154,13 +154,13 @@  discard block
 block discarded – undo
154 154
 
155 155
     public function update(Request $request, $productCategoryId)
156 156
     {
157
-        $result  = ProductCategoryService::updateById($this->generateInput($request->all()), $productCategoryId);
157
+        $result = ProductCategoryService::updateById($this->generateInput($request->all()), $productCategoryId);
158 158
         return ProductCategoryService::notificationRedirect('product-category.index', $result, 'The product category was updated.');
159 159
     }
160 160
 
161 161
     public function destroy($productCategoryId)
162 162
     {
163
-        $result  = ProductCategoryService::destroy($productCategoryId);
163
+        $result = ProductCategoryService::destroy($productCategoryId);
164 164
 
165 165
         if ($result) {
166 166
             Notification::success('Category was deleted.');
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
             } elseif ($parent->children()->count()) {
231 231
                 $node->makeLastChildOf($parent);
232 232
                 foreach ($parent->children()->get() as $key => $row) {
233
-                    $positionKey =  $position - 1;
233
+                    $positionKey = $position - 1;
234 234
                     if ($key == $positionKey) {
235 235
                         $node->moveToRightOf($row);
236 236
                     }
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/ProductAmountSeriesController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,14 +26,14 @@  discard block
 block discarded – undo
26 26
             
27 27
             $datatables = Datatables::of($query)
28 28
 
29
-            ->addColumn('active', function ($query) {
29
+            ->addColumn('active', function($query) {
30 30
                 if ($query->active) {
31 31
                     return '<a href="#" class="change-active" data-url="/admin/html-block/change-active/'.$query->id.'"><span class="glyphicon glyphicon-ok icon-green"></span></a>';
32 32
                 }
33 33
                 
34 34
                 return '<a href="#" class="change-active" data-url="/admin/html-block/change-active/'.$query->id.'"><span class="glyphicon glyphicon-remove icon-red"></span></a>';
35 35
             })
36
-            ->addColumn('action', function ($query) use ($productId) {
36
+            ->addColumn('action', function($query) use ($productId) {
37 37
                 $deleteLink = Form::deleteajax(url()->route('product.product-amount-series.destroy', array('productId' => $productId, 'id' => $query->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
38 38
                 $links = '<a href="'.url()->route('product.product-amount-series.edit', array('productId' => $productId, 'id' => $query->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
39 39
                 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function store(Request $request, $productId)
51 51
     {
52
-        $result  = ProductAmountSeriesService::create($request->all(), $productId);
52
+        $result = ProductAmountSeriesService::create($request->all(), $productId);
53 53
         return ProductService::notificationRedirect(array('product.product-amount-series.index', $productId), $result, 'The product amount series is inserted.');
54 54
     }
55 55
 
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
68 68
 
69 69
     public function update(Request $request, $productId, $id)
70 70
     {
71
-        $result  = ProductAmountSeriesService::updateById($request->all(), $productId, $id);
71
+        $result = ProductAmountSeriesService::updateById($request->all(), $productId, $id);
72 72
         return ProductService::notificationRedirect(array('product.product-amount-series.index', $productId), $result, 'The product amount series is updated.');
73 73
     }
74 74
 
75 75
     public function destroy($productId, $id)
76 76
     {
77
-        $result  = ProductAmountSeriesService::destroy($id);
77
+        $result = ProductAmountSeriesService::destroy($id);
78 78
 
79 79
         if ($result) {
80 80
             Notification::success('The product amount series is deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/ProductCategoryImageController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
             
27 27
             $datatables = Datatables::of($image)
28 28
 
29
-            ->addColumn('thumb', function ($image) use ($productCategoryId) {
29
+            ->addColumn('thumb', function($image) use ($productCategoryId) {
30 30
                 return '<img src="/files/product_category/100x100/'.$image->product_category_id.'/'.$image->file.'"  />';
31 31
             })
32
-            ->addColumn('action', function ($image) use ($productCategoryId) {
32
+            ->addColumn('action', function($image) use ($productCategoryId) {
33 33
                 $deleteLink = Form::deleteajax(url()->route('product-category.images.destroy', array('productCategoryId' => $productCategoryId, 'id' => $image->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
34 34
                 $links = '<a href="'.url()->route('product-category.images.edit', array('productCategoryId' => $productCategoryId, 'id' => $image->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
35 35
                 return $links;
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function store(Request $request, $productCategoryId)
51 51
     {
52
-        $result  = ProductCategoryService::createImage($request->all(), $productCategoryId);
52
+        $result = ProductCategoryService::createImage($request->all(), $productCategoryId);
53 53
         return ProductCategoryService::notificationRedirect(array('product-category.images.index', $productCategoryId), $result, 'The category image was inserted.');
54 54
     }
55 55
 
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function update(Request $request, $productCategoryId, $productCategoryImageId)
63 63
     {
64
-        $result  = ProductCategoryService::updateImageById($request->all(), $productCategoryId, $productCategoryImageId);
64
+        $result = ProductCategoryService::updateImageById($request->all(), $productCategoryId, $productCategoryImageId);
65 65
         return ProductCategoryService::notificationRedirect(array('product-category.images.index', $productCategoryId), $result, 'The category image was updated.');
66 66
     }
67 67
 
68 68
     public function destroy($productCategoryId, $productCategoryImageId)
69 69
     {
70
-        $result  = ProductCategoryService::destroyImage($productCategoryImageId);
70
+        $result = ProductCategoryService::destroyImage($productCategoryImageId);
71 71
 
72 72
         if ($result) {
73 73
             Notification::success('The file was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/BrandImageController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
             
27 27
             $datatables = Datatables::of($image)
28 28
 
29
-            ->addColumn('thumb', function ($image) {
29
+            ->addColumn('thumb', function($image) {
30 30
                 return '<img src="'.config('hideyo.public_path').'/brand/100x100/'.$image->brand_id.'/'.$image->file.'"  />';
31 31
             })
32
-            ->addColumn('action', function ($image) use ($brandId) {
32
+            ->addColumn('action', function($image) use ($brandId) {
33 33
                 $deleteLink = Form::deleteajax(url()->route('brand.images.destroy', array('brandId' => $brandId, 'id' => $image->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
34 34
                 $links = '<a href="'.url()->route('brand.images.edit', array('brandId' => $brandId, 'id' => $image->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
35 35
                 return $links;
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             return $datatables->make(true);
39 39
         }
40 40
         
41
-        return view('backend.brand_image.index')->with(array( 'brand' => $brand));
41
+        return view('backend.brand_image.index')->with(array('brand' => $brand));
42 42
     }
43 43
 
44 44
     public function create($brandId)
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function store(Request $request, $brandId)
51 51
     {
52
-        $result  = BrandService::createImage($request->all(), $brandId);
52
+        $result = BrandService::createImage($request->all(), $brandId);
53 53
         return BrandService::notificationRedirect(array('brand.images.index', $brandId), $result, 'The brand image was inserted.');
54 54
     }
55 55
 
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function update(Request $request, $brandId, $brandImageId)
63 63
     {
64
-        $result  = BrandService::updateImageById($request->all(), $brandId, $brandImageId);
64
+        $result = BrandService::updateImageById($request->all(), $brandId, $brandImageId);
65 65
         return BrandService::notificationRedirect(array('brand.images.index', $brandId), $result, 'The brand image was updated.');
66 66
     }
67 67
 
68 68
     public function destroy($brandId, $brandImageId)
69 69
     {
70
-        $result  = BrandService::destroyImage($brandImageId);
70
+        $result = BrandService::destroyImage($brandImageId);
71 71
 
72 72
         if ($result) {
73 73
             Notification::success('The file was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/OrderStatusEmailTemplateController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
             $query = OrderStatusEmailTemplateService::getModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id);
25 25
             
26 26
             $datatables = Datatables::of($query)
27
-            ->addColumn('action', function ($query) {
28
-                $deleteLink = Form::deleteajax('/admin/order-status-email-template/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
27
+            ->addColumn('action', function($query) {
28
+                $deleteLink = Form::deleteajax('/admin/order-status-email-template/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
29 29
                 $links = '<a href="/admin/order-status-email-template/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
30 30
             
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  = OrderStatusEmailTemplateService::create($request->all());
47
+        $result = OrderStatusEmailTemplateService::create($request->all());
48 48
         return OrderStatusEmailTemplateService::notificationRedirect('order-status-email-template.index', $result, 'The template was inserted.');
49 49
     }
50 50
 
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
 
61 61
     public function update(Request $request, $templateId)
62 62
     {
63
-        $result  = OrderStatusEmailTemplateService::updateById($request->all(), $templateId);
63
+        $result = OrderStatusEmailTemplateService::updateById($request->all(), $templateId);
64 64
         return OrderStatusEmailTemplateService::notificationRedirect('order-status-email-template.index', $result, 'The template was updated.');
65 65
     }
66 66
 
67 67
     public function destroy($templateId)
68 68
     {
69
-        $result  = OrderStatusEmailTemplateService::destroy($templateId);
69
+        $result = OrderStatusEmailTemplateService::destroy($templateId);
70 70
 
71 71
         if ($result) {
72 72
             Notification::success('template was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/ClientAddressController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,24 +27,24 @@  discard block
 block discarded – undo
27 27
             $addresses = ClientService::getAddressModel()->with(array('clientDeliveryAddress', 'clientBillAddress'))->where('client_id', '=', $clientId);
28 28
             
29 29
             $datatables = Datatables::of($addresses)
30
-            ->addColumn('housenumber', function ($addresses) {
30
+            ->addColumn('housenumber', function($addresses) {
31 31
                 return $addresses->housenumber.$addresses->housenumber_suffix;
32 32
             })
33
-            ->addColumn('delivery', function ($addresses) {
33
+            ->addColumn('delivery', function($addresses) {
34 34
                 if ($addresses->clientDeliveryAddress()->count()) {
35 35
                     return '<span class="glyphicon glyphicon-ok icon-green"></span>';
36 36
                 }
37 37
                 
38 38
                 return '<span class="glyphicon glyphicon-remove icon-red"></span>';   
39 39
             })
40
-            ->addColumn('bill', function ($addresses) {
40
+            ->addColumn('bill', function($addresses) {
41 41
                 if ($addresses->clientBillAddress()->count()) {
42 42
                           return '<span class="glyphicon glyphicon-ok icon-green"></span>';
43 43
                 }
44 44
 
45 45
                 return '<span class="glyphicon glyphicon-remove icon-red"></span>';
46 46
             })
47
-            ->addColumn('action', function ($addresses) use ($clientId) {
47
+            ->addColumn('action', function($addresses) use ($clientId) {
48 48
                 $deleteLink = Form::deleteajax(url()->route('client.addresses.destroy', array('clientId' => $clientId, 'clientAddressId' => $addresses->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
49 49
                 $links = '<a href="'.url()->route('client.addresses.edit', array('clientId' => $clientId, 'clientAddressId' => $addresses->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
50 50
             
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function store(Request $request, $clientId)
67 67
     {
68
-        $result  = ClientService::createAddress($request->all(), $clientId);
68
+        $result = ClientService::createAddress($request->all(), $clientId);
69 69
         return ClientService::notificationRedirect(array('client.addresses.index', $clientId), $result, 'The client adress is inserted.');
70 70
     }
71 71
 
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
 
78 78
     public function update(Request $request, $clientId, $id)
79 79
     {
80
-        $result  = ClientService::editAddress($clientId, $id, $request->all());
80
+        $result = ClientService::editAddress($clientId, $id, $request->all());
81 81
         return ClientService::notificationRedirect(array('client.addresses.index', $clientId), $result, 'The client adress is updated.'); 
82 82
     }
83 83
 
84 84
     public function destroy($clientId, $id)
85 85
     {
86
-        $result  = ClientService::destroyAddress($id);
86
+        $result = ClientService::destroyAddress($id);
87 87
 
88 88
         if ($result) {
89 89
             Notification::success('The client address is deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/SendingMethodController.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
         if ($request->wantsJson()) {
26 26
             $query = SendingMethodService::getModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id);
27 27
 
28
-            $datatables = Datatables::of($query)->addColumn('action', function ($query) {
28
+            $datatables = Datatables::of($query)->addColumn('action', function($query) {
29 29
                 $deleteLink = Form::deleteajax(url()->route('sending-method.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-sm btn-danger'), $query->title);
30 30
                 $links = '<a href="'.url()->route('sending-method.country-prices.index', $query->id).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Country prices ('.$query->countryPrices()->count().')</a>  <a href="/admin/sending-method/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
31 31
             
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function store(Request $request)
51 51
     {
52
-        $result  = SendingMethodService::create($request->all());
52
+        $result = SendingMethodService::create($request->all());
53 53
         return SendingMethodService::notificationRedirect('sending-method.index', $result, 'The sending method was inserted.');
54 54
     }
55 55
 
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 
67 67
     public function update(Request $request, $sendingMethodId)
68 68
     {
69
-        $result  = SendingMethodService::updateById($request->all(), $sendingMethodId);
69
+        $result = SendingMethodService::updateById($request->all(), $sendingMethodId);
70 70
         return SendingMethodService::notificationRedirect('sending-method.index', $result, 'The sending method was updated.');
71 71
     }
72 72
 
73 73
     public function destroy($sendingMethodId)
74 74
     {
75
-        $result  = SendingMethodService::destroy($sendingMethodId);
75
+        $result = SendingMethodService::destroy($sendingMethodId);
76 76
 
77 77
         if ($result) {
78 78
             Notification::success('The sending method was deleted.');
Please login to merge, or discard this patch.