Skip to content

Commit

Permalink
Moved ending parentheses to follow code consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed May 12, 2024
1 parent bd94fdc commit 8fbe209
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions upload/admin/controller/catalog/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
];
}
}
Expand Down Expand Up @@ -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'] : '')
];
}

Expand All @@ -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'] : '')
];
}

Expand Down
2 changes: 1 addition & 1 deletion upload/admin/controller/extension/payment/divido.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
];
}
}
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/controller/extension/payment/laybuy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
];
}
}
Expand Down

0 comments on commit 8fbe209

Please sign in to comment.