@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | public function getItem(Request $request, $newsGroupSlug, $slug) |
11 | 11 | { |
12 | 12 | $news = NewsService::selectOneBySlug(config()->get('app.shop_id'), $slug); |
13 | - $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
13 | + $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
14 | 14 | |
15 | 15 | if ($news) { |
16 | 16 | if ($news->slug != $slug or $news->newsGroup->slug != $newsGroupSlug) { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $news = NewsService::selectByGroupAndByShopIdAndPaginate(config()->get('app.shop_id'), $newsGroupSlug, 25); |
30 | 30 | |
31 | 31 | $newsGroup = NewsService::selectOneGroupByShopIdAndSlug(config()->get('app.shop_id'), $newsGroupSlug); |
32 | - $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
32 | + $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
33 | 33 | |
34 | 34 | if ($newsGroup) { |
35 | 35 | return view('frontend.news.group')->with(array('selectedPage' => $page, 'news' => $news, 'newsGroups' => $newsGroups, 'newsGroup' => $newsGroup)); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | { |
43 | 43 | $page = $request->get('page', 1); |
44 | 44 | $news = NewsService::selectAllByShopIdAndPaginate(config()->get('app.shop_id'), 25); |
45 | - $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
45 | + $newsGroups = NewsService::selectAllActiveGroupsByShopId(config()->get('app.shop_id')); |
|
46 | 46 | if ($news) { |
47 | 47 | return view('frontend.news.index')->with(array('selectedPage' => $page, 'news' => $news, 'newsGroups' => $newsGroups)); |
48 | 48 | } |
@@ -31,12 +31,12 @@ discard block |
||
31 | 31 | |
32 | 32 | $paymentMethodsList = Cart::getConditionsByType('sending_method')->first()->getAttributes()['data']['related_payment_methods_list']; |
33 | 33 | |
34 | - if(!Cart::getConditionsByType('sending_method')->count()) { |
|
34 | + if (!Cart::getConditionsByType('sending_method')->count()) { |
|
35 | 35 | Notification::error('Selecteer een verzendwijze'); |
36 | 36 | return redirect()->to('cart'); |
37 | 37 | } |
38 | 38 | |
39 | - if(!Cart::getConditionsByType('payment_method')->count()) { |
|
39 | + if (!Cart::getConditionsByType('payment_method')->count()) { |
|
40 | 40 | |
41 | 41 | Notification::error('Selecteer een betaalwijze'); |
42 | 42 | return redirect()->to('cart'); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | 'paymentMethodsList' => $paymentMethodsList)); |
63 | 63 | } |
64 | 64 | |
65 | - return view('frontend.checkout.login')->with(array( 'sendingMethodsList' => $sendingMethodsList, 'paymentMethodsList' => $paymentMethodsList)); |
|
65 | + return view('frontend.checkout.login')->with(array('sendingMethodsList' => $sendingMethodsList, 'paymentMethodsList' => $paymentMethodsList)); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $user = auth('web')->user(); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | { |
85 | 85 | // create the validation rules ------------------------ |
86 | 86 | $rules = array( |
87 | - 'email' => 'required|email', // required and must be unique in the ducks table |
|
87 | + 'email' => 'required|email', // required and must be unique in the ducks table |
|
88 | 88 | 'password' => 'required' |
89 | 89 | ); |
90 | 90 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $userdata = $request->all(); |
129 | 129 | |
130 | 130 | $rules = array( |
131 | - 'email' => 'required|email', // required and must be unique in the ducks table |
|
131 | + 'email' => 'required|email', // required and must be unique in the ducks table |
|
132 | 132 | 'password' => 'required', |
133 | 133 | 'firstname' => 'required', |
134 | 134 | 'lastname' => 'required', |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | $data = $register; |
176 | 176 | $data['shop'] = app('shop'); |
177 | 177 | |
178 | - Mail::send('frontend.email.register-mail', array('password' => $userdata['password'], 'user' => $data->toArray(), 'billAddress' => $data->clientBillAddress->toArray()), function ($message) use ($data) { |
|
178 | + Mail::send('frontend.email.register-mail', array('password' => $userdata['password'], 'user' => $data->toArray(), 'billAddress' => $data->clientBillAddress->toArray()), function($message) use ($data) { |
|
179 | 179 | |
180 | 180 | $message->to($data['email'])->from($data['shop']->email, $data['shop']->title)->subject('Je bent geregistreerd.'); |
181 | 181 | }); |
@@ -241,15 +241,15 @@ discard block |
||
241 | 241 | $data['user_id'] = $noAccountUser['client_id']; |
242 | 242 | } |
243 | 243 | |
244 | - if(Cart::getConditionsByType('sending_method')->count()) { |
|
244 | + if (Cart::getConditionsByType('sending_method')->count()) { |
|
245 | 245 | $data['sending_method'] = Cart::getConditionsByType('sending_method'); |
246 | 246 | } |
247 | 247 | |
248 | - if(Cart::getConditionsByType('sending_method_country_price')->count()) { |
|
248 | + if (Cart::getConditionsByType('sending_method_country_price')->count()) { |
|
249 | 249 | $data['sending_method_country_price'] = Cart::getConditionsByType('sending_method_country_price'); |
250 | 250 | } |
251 | 251 | |
252 | - if(Cart::getConditionsByType('payment_method')->count()) { |
|
252 | + if (Cart::getConditionsByType('payment_method')->count()) { |
|
253 | 253 | $data['payment_method'] = Cart::getConditionsByType('payment_method'); |
254 | 254 | } |
255 | 255 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | ); |
60 | 60 | |
61 | 61 | foreach ($replace as $key => $val) { |
62 | - $content = str_replace("[" . $key . "]", $val, $content); |
|
62 | + $content = str_replace("[".$key."]", $val, $content); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return $content; |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | 'confirmation_code' => $requestChange->confirmation_code |
164 | 164 | ); |
165 | 165 | |
166 | - Mail::send('frontend.email.reset-account-settings-mail', $data, function ($message) use ($data) { |
|
166 | + Mail::send('frontend.email.reset-account-settings-mail', $data, function($message) use ($data) { |
|
167 | 167 | |
168 | 168 | $message->to($data['email'])->from('[email protected]', 'Hideyo')->subject('confirm changing account details'); |
169 | 169 | }); |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | 'code' => $forgotPassword->confirmation_code |
288 | 288 | ); |
289 | 289 | |
290 | - Mail::send('frontend.email.reset-password-mail', $data, function ($message) use ($data) { |
|
290 | + Mail::send('frontend.email.reset-password-mail', $data, function($message) use ($data) { |
|
291 | 291 | |
292 | 292 | $message->to($data['email'])->from('[email protected]', 'Phil & Phae')->subject('Wachtwoord vergeten'); |
293 | 293 | }); |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | |
369 | 369 | $validateRegister = ClientService::validateRegister($userdata); |
370 | 370 | |
371 | - if($validateRegister->fails()) { |
|
371 | + if ($validateRegister->fails()) { |
|
372 | 372 | |
373 | 373 | foreach ($validator->errors()->all() as $error) { |
374 | 374 | Notification::error($error); |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | $register = ClientService::register($userdata, config()->get('app.shop_id')); |
381 | 381 | |
382 | 382 | if ($register) { |
383 | - Mail::send('frontend.email.register-mail', array('user' => $register->toArray(), 'password' => $request->get('password'), 'billAddress' => $register->clientBillAddress->toArray()), function ($message) use ($data) { |
|
383 | + Mail::send('frontend.email.register-mail', array('user' => $register->toArray(), 'password' => $request->get('password'), 'billAddress' => $register->clientBillAddress->toArray()), function($message) use ($data) { |
|
384 | 384 | $message->to($data['email'])->from('[email protected]', 'Hideyo')->subject(trans('register-completed-subject')); |
385 | 385 | }); |
386 | 386 | Notification::success(trans('you-are-registered-consumer')); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $template = 'frontend.product.combinations'; |
44 | 44 | |
45 | 45 | $leadingAttributeId = key(reset($newPullDowns)); |
46 | - if($productAttributeId) { |
|
46 | + if ($productAttributeId) { |
|
47 | 47 | $leadingAttributeId = $productAttributeId; |
48 | 48 | } else { |
49 | 49 | $productAttributeId = $pullDowns['productAttribute']->first()->id; |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | if (app('cart')->getContent()->count()) { |
28 | 28 | |
29 | - if($sendingMethodsList->count() AND !app('cart')->getConditionsByType('sending_method')->count()) { |
|
29 | + if ($sendingMethodsList->count() AND !app('cart')->getConditionsByType('sending_method')->count()) { |
|
30 | 30 | self::updateSendingMethod($sendingMethodsList->first()->id); |
31 | 31 | } |
32 | 32 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $request->get('amount') |
74 | 74 | ); |
75 | 75 | |
76 | - if($result){ |
|
76 | + if ($result) { |
|
77 | 77 | |
78 | 78 | return response()->json(array( |
79 | 79 | 'result' => true, |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $product = app('cart')->get($productId); |
107 | 107 | $amountNa = false; |
108 | 108 | |
109 | - if($product->quantity < $amount) { |
|
109 | + if ($product->quantity < $amount) { |
|
110 | 110 | $amountNa = view('frontend.cart.amount-na')->with(array('product' => $product))->render(); |
111 | 111 | } |
112 | 112 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | Notification::error($validator->errors()->all()); |
40 | 40 | } |
41 | 41 | |
42 | - Mail::send('frontend.email.contact', ['data' => $input], function ($m) use ($input) { |
|
42 | + Mail::send('frontend.email.contact', ['data' => $input], function($m) use ($input) { |
|
43 | 43 | |
44 | 44 | $m->from('[email protected]', 'Dutchbridge'); |
45 | 45 | $m->replyTo($input['email'], $input['name']); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | public function store($productId, Request $request) |
48 | 48 | { |
49 | - $result = ProductExtraFieldValueService::create($request->all(), $productId); |
|
49 | + $result = ProductExtraFieldValueService::create($request->all(), $productId); |
|
50 | 50 | return ProductExtraFieldValueService::notificationRedirect(array('product.product-extra-field-value.index', $productId), $result, 'The product extra fields are updated.'); |
51 | 51 | } |
52 | 52 | } |
@@ -41,12 +41,12 @@ discard block |
||
41 | 41 | |
42 | 42 | |
43 | 43 | $datatables = \DataTables::of($invoice) |
44 | - ->addColumn('price_with_tax', function ($order) { |
|
44 | + ->addColumn('price_with_tax', function($order) { |
|
45 | 45 | $money = '€ '.$order->price_with_tax; |
46 | 46 | return $money; |
47 | 47 | }) |
48 | - ->addColumn('action', function ($invoice) { |
|
49 | - $deleteLink = \Form::deleteajax('/invoice/'. $invoice->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
48 | + ->addColumn('action', function($invoice) { |
|
49 | + $deleteLink = \Form::deleteajax('/invoice/'.$invoice->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
|
50 | 50 | $download = '<a href="/invoice/'.$invoice->id.'/download" class="btn btn-default btn-sm btn-info"><i class="entypo-pencil"></i>Download</a> '; |
51 | 51 | $links = '<a href="/invoice/'.$invoice->id.'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Show</a> '.$download; |
52 | 52 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | public function store() |
84 | 84 | { |
85 | - $result = $this->invoice->create(Request::all()); |
|
85 | + $result = $this->invoice->create(Request::all()); |
|
86 | 86 | |
87 | 87 | if (isset($result->id)) { |
88 | 88 | \Notification::success('The invoice was inserted.'); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | public function update($invoiceId) |
106 | 106 | { |
107 | - $result = $this->invoice->updateById(Request::all(), $invoiceId); |
|
107 | + $result = $this->invoice->updateById(Request::all(), $invoiceId); |
|
108 | 108 | |
109 | 109 | if (isset($result->id)) { |
110 | 110 | \Notification::success('The invoice was updated.'); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | public function destroy($invoiceId) |
119 | 119 | { |
120 | - $result = $this->invoice->destroy($invoiceId); |
|
120 | + $result = $this->invoice->destroy($invoiceId); |
|
121 | 121 | |
122 | 122 | if ($result) { |
123 | 123 | Notification::success('The invoice was deleted.'); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $query = CouponService::getGroupModel()->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id); |
25 | 25 | |
26 | 26 | $datatables = \DataTables::of($query) |
27 | - ->addColumn('action', function ($query) { |
|
27 | + ->addColumn('action', function($query) { |
|
28 | 28 | $deleteLink = Form::deleteajax(url()->route('coupon-group.destroy', $query->id), 'Delete', '', array('class'=>'btn btn-sm btn-danger')); |
29 | 29 | $links = '<a href="'.url()->route('coupon-group.edit', $query->id).'" class="btn btn-sm btn-success"><i class="fi-pencil"></i>Edit</a> '.$deleteLink; |
30 | 30 | return $links; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | public function store(Request $request) |
45 | 45 | { |
46 | - $result = CouponService::createGroup($request->all()); |
|
46 | + $result = CouponService::createGroup($request->all()); |
|
47 | 47 | return CouponService::notificationRedirect('coupon-group.index', $result, 'The coupon group was inserted.'); |
48 | 48 | } |
49 | 49 | |
@@ -54,13 +54,13 @@ discard block |
||
54 | 54 | |
55 | 55 | public function update(Request $request, $couponGroupId) |
56 | 56 | { |
57 | - $result = CouponService::updateGroupById($request->all(), $couponGroupId); |
|
57 | + $result = CouponService::updateGroupById($request->all(), $couponGroupId); |
|
58 | 58 | return CouponService::notificationRedirect('coupon-group.index', $result, 'The coupon group was updated.'); |
59 | 59 | } |
60 | 60 | |
61 | 61 | public function destroy($couponGroupId) |
62 | 62 | { |
63 | - $result = CouponService::destroyGroup($couponGroupId); |
|
63 | + $result = CouponService::destroyGroup($couponGroupId); |
|
64 | 64 | |
65 | 65 | if ($result) { |
66 | 66 | Notification::success('The coupon was deleted.'); |