@@ -26,12 +26,12 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | $paymentMethodsList = Cart::getConditionsByType('sending_method')->first()->getAttributes()['data']['related_payment_methods_list']; |
| 28 | 28 | |
| 29 | - if(!Cart::getConditionsByType('sending_method')->count()) { |
|
| 29 | + if (!Cart::getConditionsByType('sending_method')->count()) { |
|
| 30 | 30 | Notification::error('Selecteer een verzendwijze'); |
| 31 | 31 | return redirect()->to('cart'); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - if(!Cart::getConditionsByType('payment_method')->count()) { |
|
| 34 | + if (!Cart::getConditionsByType('payment_method')->count()) { |
|
| 35 | 35 | Notification::error('Selecteer een betaalwijze'); |
| 36 | 36 | return redirect()->to('cart'); |
| 37 | 37 | } |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | 'paymentMethodsList' => $paymentMethodsList)); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - return view('frontend.checkout.login')->with(array( 'sendingMethodsList' => $sendingMethodsList, 'paymentMethodsList' => $paymentMethodsList)); |
|
| 53 | + return view('frontend.checkout.login')->with(array('sendingMethodsList' => $sendingMethodsList, 'paymentMethodsList' => $paymentMethodsList)); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | $user = auth('web')->user(); |
@@ -108,13 +108,13 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | $validateRegister = ClientService::validateRegister($request->all(), $noAccount); |
| 110 | 110 | |
| 111 | - if($validateRegister->fails()) { |
|
| 111 | + if ($validateRegister->fails()) { |
|
| 112 | 112 | foreach ($validator->errors()->all() as $error) { |
| 113 | 113 | Notification::error($error); |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | return redirect()->to('cart/checkout') |
| 117 | - ->withErrors(true, 'register')->withInput();; |
|
| 117 | + ->withErrors(true, 'register')->withInput(); ; |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | if ($request->get('password')) { |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | $data = $register; |
| 138 | 138 | $data['shop'] = app('shop'); |
| 139 | 139 | |
| 140 | - Mail::send('frontend.email.register-mail', array('password' => $request->get('password'), 'user' => $data->toArray(), 'billAddress' => $data->clientBillAddress->toArray()), function ($message) use ($data) { |
|
| 140 | + Mail::send('frontend.email.register-mail', array('password' => $request->get('password'), 'user' => $data->toArray(), 'billAddress' => $data->clientBillAddress->toArray()), function($message) use ($data) { |
|
| 141 | 141 | |
| 142 | 142 | $message->to($data['email'])->from($data['shop']->email, $data['shop']->title)->subject('Je bent geregistreerd.'); |
| 143 | 143 | }); |
@@ -199,19 +199,19 @@ discard block |
||
| 199 | 199 | $data['user_id'] = auth('web')->user()->id; |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | - if ($noAccountUser){ |
|
| 202 | + if ($noAccountUser) { |
|
| 203 | 203 | $data['user_id'] = $noAccountUser['client_id']; |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | - if(Cart::getConditionsByType('sending_method')->count()) { |
|
| 206 | + if (Cart::getConditionsByType('sending_method')->count()) { |
|
| 207 | 207 | $data['sending_method'] = Cart::getConditionsByType('sending_method'); |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | - if(Cart::getConditionsByType('sending_method_country_price')->count()) { |
|
| 210 | + if (Cart::getConditionsByType('sending_method_country_price')->count()) { |
|
| 211 | 211 | $data['sending_method_country_price'] = Cart::getConditionsByType('sending_method_country_price'); |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | - if(Cart::getConditionsByType('payment_method')->count()) { |
|
| 214 | + if (Cart::getConditionsByType('payment_method')->count()) { |
|
| 215 | 215 | $data['payment_method'] = Cart::getConditionsByType('payment_method'); |
| 216 | 216 | } |
| 217 | 217 | |