@@ -8,11 +8,11 @@ |
||
| 8 | 8 | |
| 9 | 9 | class ProductController extends Controller |
| 10 | 10 | { |
| 11 | - public function index() { |
|
| 12 | - return Product::all(); |
|
| 13 | - } |
|
| 11 | + public function index() { |
|
| 12 | + return Product::all(); |
|
| 13 | + } |
|
| 14 | 14 | |
| 15 | - public function show(Product $product) { |
|
| 16 | - return $product; |
|
| 17 | - } |
|
| 15 | + public function show(Product $product) { |
|
| 16 | + return $product; |
|
| 17 | + } |
|
| 18 | 18 | } |
| 19 | 19 | \ No newline at end of file |
@@ -8,15 +8,15 @@ |
||
| 8 | 8 | |
| 9 | 9 | class ProductCategoryController extends Controller |
| 10 | 10 | { |
| 11 | - public function index() { |
|
| 12 | - return ProductCategory::all(); |
|
| 13 | - } |
|
| 11 | + public function index() { |
|
| 12 | + return ProductCategory::all(); |
|
| 13 | + } |
|
| 14 | 14 | |
| 15 | - public function show(ProductCategory $category) { |
|
| 16 | - return $category; |
|
| 17 | - } |
|
| 15 | + public function show(ProductCategory $category) { |
|
| 16 | + return $category; |
|
| 17 | + } |
|
| 18 | 18 | |
| 19 | - public function products(ProductCategory $category) { |
|
| 20 | - return $category->products; |
|
| 21 | - } |
|
| 19 | + public function products(ProductCategory $category) { |
|
| 20 | + return $category->products; |
|
| 21 | + } |
|
| 22 | 22 | } |
| 23 | 23 | \ No newline at end of file |
@@ -62,7 +62,7 @@ |
||
| 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(); |
@@ -209,7 +209,7 @@ |
||
| 209 | 209 | |
| 210 | 210 | Notification::error('wachtwoord vergeten is mislukt'); |
| 211 | 211 | return redirect()->to('account/forgot-password') |
| 212 | - ->withErrors(true, 'forgot')->withInput(); |
|
| 212 | + ->withErrors(true, 'forgot')->withInput(); |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | public function postResetPassword(Request $request, $confirmationCode, $email) |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | ->addColumn('status', function ($order) { |
| 48 | 48 | if ($order->orderStatus) { |
| 49 | - return $order->orderStatus->title; |
|
| 49 | + return $order->orderStatus->title; |
|
| 50 | 50 | } |
| 51 | 51 | }) |
| 52 | 52 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | public function index($productId) |
| 25 | 25 | { |
| 26 | - $product = ProductService::find($productId); |
|
| 26 | + $product = ProductService::find($productId); |
|
| 27 | 27 | if ($this->request->wantsJson()) { |
| 28 | 28 | |
| 29 | 29 | $query = ProductService::getImageModel()->where('product_id', '=', $productId); |
@@ -101,8 +101,8 @@ discard block |
||
| 101 | 101 | foreach ($newProductAttributes as $key => $productAttribute) { |
| 102 | 102 | $newArray = array(); |
| 103 | 103 | foreach ($productAttribute as $keyNew => $valueNew) { |
| 104 | - $newArray[] = $keyNew.': '.$valueNew['value']; |
|
| 105 | - $attributesList[$valueNew['id']] = $valueNew['value']; |
|
| 104 | + $newArray[] = $keyNew.': '.$valueNew['value']; |
|
| 105 | + $attributesList[$valueNew['id']] = $valueNew['value']; |
|
| 106 | 106 | } |
| 107 | 107 | $productAttributesList[$key] = implode(', ', $newArray); |
| 108 | 108 | } |
@@ -47,6 +47,6 @@ |
||
| 47 | 47 | public function store($productId, Request $request) |
| 48 | 48 | { |
| 49 | 49 | $result = ProductExtraFieldValueService::create($request->all(), $productId); |
| 50 | - return ProductExtraFieldValueService::notificationRedirect(array('product.product-extra-field-value.index', $productId), $result, 'The product extra fields are updated.'); |
|
| 50 | + return ProductExtraFieldValueService::notificationRedirect(array('product.product-extra-field-value.index', $productId), $result, 'The product extra fields are updated.'); |
|
| 51 | 51 | } |
| 52 | 52 | } |
@@ -259,9 +259,9 @@ |
||
| 259 | 259 | { |
| 260 | 260 | $order = OrderService::find($orderId); |
| 261 | 261 | if($order->orderLabel()->count()) { |
| 262 | - header("Content-type: application/octet-stream"); |
|
| 263 | - header("Content-disposition: attachment;filename=label.pdf"); |
|
| 264 | - echo $order->orderLabel->data; |
|
| 262 | + header("Content-type: application/octet-stream"); |
|
| 263 | + header("Content-disposition: attachment;filename=label.pdf"); |
|
| 264 | + echo $order->orderLabel->data; |
|
| 265 | 265 | } |
| 266 | 266 | } |
| 267 | 267 | |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | ->addColumn('bill', function ($addresses) { |
| 57 | 57 | if ($addresses->clientBillAddress()->count()) { |
| 58 | - return '<span class="glyphicon glyphicon-ok icon-green"></span>'; |
|
| 58 | + return '<span class="glyphicon glyphicon-ok icon-green"></span>'; |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | return '<span class="glyphicon glyphicon-remove icon-red"></span>'; |