Skip to content

Commit c6f0b0d

Browse files
authored
Update Save.php
1 parent ca06cd9 commit c6f0b0d

File tree

1 file changed

+9
-9
lines changed
  • app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote

1 file changed

+9
-9
lines changed

app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/Save.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ public function __construct(
4646
) {
4747
parent::__construct($context, $coreRegistry, $fileFactory, $dateFilter);
4848
$this->timezone = $timezone ?? \Magento\Framework\App\ObjectManager::getInstance()->get(
49-
TimezoneInterface::class
50-
);
49+
TimezoneInterface::class
50+
);
5151
$this->dataPersistor = $dataPersistor ?? \Magento\Framework\App\ObjectManager::getInstance()->get(
52-
DataPersistorInterface::class
53-
);
52+
DataPersistorInterface::class
53+
);
5454
}
5555

5656
/**
@@ -65,7 +65,7 @@ public function execute()
6565
$data = $this->getRequest()->getPostValue();
6666
if ($data) {
6767
$data['simple_free_shipping'] = ($data['simple_free_shipping'] === '')
68-
? null : $data['simple_free_shipping'];
68+
? null : $data['simple_free_shipping'];
6969

7070
try {
7171
/** @var $model \Magento\SalesRule\Model\Rule */
@@ -106,10 +106,10 @@ public function execute()
106106
}
107107

108108
if (isset(
109-
$data['simple_action']
110-
) && $data['simple_action'] == 'by_percent' && isset(
111-
$data['discount_amount']
112-
)
109+
$data['simple_action']
110+
) && $data['simple_action'] == 'by_percent' && isset(
111+
$data['discount_amount']
112+
)
113113
) {
114114
$data['discount_amount'] = min(100, $data['discount_amount']);
115115
}

0 commit comments

Comments
 (0)