@@ -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(); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $userdata = $request->all(); |
| 106 | 106 | |
| 107 | 107 | $rules = array( |
| 108 | - 'email' => 'required|email', // required and must be unique in the ducks table |
|
| 108 | + 'email' => 'required|email', // required and must be unique in the ducks table |
|
| 109 | 109 | 'password' => 'required', |
| 110 | 110 | 'firstname' => 'required', |
| 111 | 111 | 'lastname' => 'required', |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $data = $register; |
| 153 | 153 | $data['shop'] = app('shop'); |
| 154 | 154 | |
| 155 | - Mail::send('frontend.email.register-mail', array('password' => $userdata['password'], 'user' => $data->toArray(), 'billAddress' => $data->clientBillAddress->toArray()), function ($message) use ($data) { |
|
| 155 | + Mail::send('frontend.email.register-mail', array('password' => $userdata['password'], 'user' => $data->toArray(), 'billAddress' => $data->clientBillAddress->toArray()), function($message) use ($data) { |
|
| 156 | 156 | |
| 157 | 157 | $message->to($data['email'])->from($data['shop']->email, $data['shop']->title)->subject('Je bent geregistreerd.'); |
| 158 | 158 | }); |
@@ -216,15 +216,15 @@ discard block |
||
| 216 | 216 | $data['user_id'] = $noAccountUser['client_id']; |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | - if(Cart::getConditionsByType('sending_method')->count()) { |
|
| 219 | + if (Cart::getConditionsByType('sending_method')->count()) { |
|
| 220 | 220 | $data['sending_method'] = Cart::getConditionsByType('sending_method'); |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | - if(Cart::getConditionsByType('sending_method_country_price')->count()) { |
|
| 223 | + if (Cart::getConditionsByType('sending_method_country_price')->count()) { |
|
| 224 | 224 | $data['sending_method_country_price'] = Cart::getConditionsByType('sending_method_country_price'); |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | - if(Cart::getConditionsByType('payment_method')->count()) { |
|
| 227 | + if (Cart::getConditionsByType('payment_method')->count()) { |
|
| 228 | 228 | $data['payment_method'] = Cart::getConditionsByType('payment_method'); |
| 229 | 229 | } |
| 230 | 230 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | return redirect()->to('cart'); |
| 27 | 27 | } |
| 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 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $request->get('amount') |
| 66 | 66 | ); |
| 67 | 67 | |
| 68 | - if($result){ |
|
| 68 | + if ($result) { |
|
| 69 | 69 | return response()->json(array( |
| 70 | 70 | 'result' => true, |
| 71 | 71 | 'producttotal' => app('cart')->getContent()->count(), |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $product = app('cart')->get($productId); |
| 97 | 97 | $amountNa = false; |
| 98 | 98 | |
| 99 | - if($product->quantity < $amount) { |
|
| 99 | + if ($product->quantity < $amount) { |
|
| 100 | 100 | $amountNa = view('frontend.cart.amount-na')->with(array('product' => $product))->render(); |
| 101 | 101 | } |
| 102 | 102 | |
@@ -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; |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | 'confirmation_code' => $requestChange->confirmation_code |
| 162 | 162 | ); |
| 163 | 163 | |
| 164 | - Mail::send('frontend.email.reset-account-settings-mail', $data, function ($message) use ($data) { |
|
| 164 | + Mail::send('frontend.email.reset-account-settings-mail', $data, function($message) use ($data) { |
|
| 165 | 165 | |
| 166 | 166 | $message->to($data['email'])->from('[email protected]', 'Hideyo')->subject('confirm changing account details'); |
| 167 | 167 | }); |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | 'code' => $forgotPassword->confirmation_code |
| 286 | 286 | ); |
| 287 | 287 | |
| 288 | - Mail::send('frontend.email.reset-password-mail', $data, function ($message) use ($data) { |
|
| 288 | + Mail::send('frontend.email.reset-password-mail', $data, function($message) use ($data) { |
|
| 289 | 289 | |
| 290 | 290 | $message->to($data['email'])->from('[email protected]', 'Phil & Phae')->subject('Wachtwoord vergeten'); |
| 291 | 291 | }); |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | |
| 367 | 367 | $validateRegister = ClientService::validateRegister($userdata); |
| 368 | 368 | |
| 369 | - if($validateRegister->fails()) { |
|
| 369 | + if ($validateRegister->fails()) { |
|
| 370 | 370 | foreach ($validator->errors()->all() as $error) { |
| 371 | 371 | Notification::error($error); |
| 372 | 372 | } |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | $register = ClientService::register($userdata, config()->get('app.shop_id')); |
| 378 | 378 | |
| 379 | 379 | if ($register) { |
| 380 | - Mail::send('frontend.email.register-mail', array('user' => $register->toArray(), 'password' => $request->get('password'), 'billAddress' => $register->clientBillAddress->toArray()), function ($message) use ($data) { |
|
| 380 | + Mail::send('frontend.email.register-mail', array('user' => $register->toArray(), 'password' => $request->get('password'), 'billAddress' => $register->clientBillAddress->toArray()), function($message) use ($data) { |
|
| 381 | 381 | $message->to($data['email'])->from('[email protected]', 'Hideyo')->subject(trans('register-completed-subject')); |
| 382 | 382 | }); |
| 383 | 383 | Notification::success(trans('you-are-registered-consumer')); |