From 8fbe20987ceda2d830472956ce3be1b8d53ae40b Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Sat, 11 May 2024 22:03:09 -0400 Subject: [PATCH] Moved ending parentheses to follow code consistency --- upload/admin/controller/catalog/product.php | 10 +++++----- upload/admin/controller/extension/payment/divido.php | 2 +- upload/admin/controller/extension/payment/laybuy.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/upload/admin/controller/catalog/product.php b/upload/admin/controller/catalog/product.php index e97fd9bee..bcec30660 100644 --- a/upload/admin/controller/catalog/product.php +++ b/upload/admin/controller/catalog/product.php @@ -936,7 +936,7 @@ protected function getForm(): void { if ($category_info) { $data['product_categories'][] = [ 'category_id' => $category_info['category_id'], - 'name' => ($category_info['path']) ? $category_info['path'] . ' > ' . $category_info['name'] : $category_info['name'] + 'name' => ($category_info['path'] ? $category_info['path'] . ' > ' . $category_info['name'] : $category_info['name']) ]; } } @@ -1077,8 +1077,8 @@ protected function getForm(): void { 'quantity' => $product_discount['quantity'], 'priority' => $product_discount['priority'], 'price' => $product_discount['price'], - 'date_start' => ($product_discount['date_start'] != '0000-00-00') ? $product_discount['date_start'] : '', - 'date_end' => ($product_discount['date_end'] != '0000-00-00') ? $product_discount['date_end'] : '' + 'date_start' => ($product_discount['date_start'] != '0000-00-00' ? $product_discount['date_start'] : ''), + 'date_end' => ($product_discount['date_end'] != '0000-00-00' ? $product_discount['date_end'] : '') ]; } @@ -1098,8 +1098,8 @@ protected function getForm(): void { 'customer_group_id' => $product_special['customer_group_id'], 'priority' => $product_special['priority'], 'price' => $product_special['price'], - 'date_start' => ($product_special['date_start'] != '0000-00-00') ? $product_special['date_start'] : '', - 'date_end' => ($product_special['date_end'] != '0000-00-00') ? $product_special['date_end'] : '' + 'date_start' => ($product_special['date_start'] != '0000-00-00' ? $product_special['date_start'] : ''), + 'date_end' => ($product_special['date_end'] != '0000-00-00' ? $product_special['date_end'] : '') ]; } diff --git a/upload/admin/controller/extension/payment/divido.php b/upload/admin/controller/extension/payment/divido.php index e00f9b545..7033656f3 100644 --- a/upload/admin/controller/extension/payment/divido.php +++ b/upload/admin/controller/extension/payment/divido.php @@ -166,7 +166,7 @@ public function index(): void { if ($category_info) { $data['categories'][] = [ 'category_id' => $category_info['category_id'], - 'name' => ($category_info['path']) ? $category_info['path'] . ' > ' . $category_info['name'] : $category_info['name'] + 'name' => ($category_info['path'] ? $category_info['path'] . ' > ' . $category_info['name'] : $category_info['name']) ]; } } diff --git a/upload/admin/controller/extension/payment/laybuy.php b/upload/admin/controller/extension/payment/laybuy.php index e5d11f8b1..6ce6f40b6 100644 --- a/upload/admin/controller/extension/payment/laybuy.php +++ b/upload/admin/controller/extension/payment/laybuy.php @@ -115,7 +115,7 @@ public function index(): void { if ($category_info) { $data['categories'][] = [ 'category_id' => $category_info['category_id'], - 'name' => ($category_info['path']) ? $category_info['path'] . ' > ' . $category_info['name'] : $category_info['name'] + 'name' => ($category_info['path'] ? $category_info['path'] . ' > ' . $category_info['name'] : $category_info['name']) ]; } }