File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
app/code/Magento/CatalogRule/Controller/Adminhtml/Promo/Catalog Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -50,16 +50,15 @@ public function __construct(
50
50
/**
51
51
* @return void
52
52
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
53
+ * @SuppressWarnings(PHPMD.NPathComplexity)
53
54
*/
54
55
public function execute ()
55
56
{
56
57
if ($ this ->getRequest ()->getPostValue ()) {
57
-
58
58
/** @var \Magento\CatalogRule\Api\CatalogRuleRepositoryInterface $ruleRepository */
59
59
$ ruleRepository = $ this ->_objectManager ->get (
60
60
\Magento \CatalogRule \Api \CatalogRuleRepositoryInterface::class
61
61
);
62
-
63
62
/** @var \Magento\CatalogRule\Model\Rule $model */
64
63
$ model = $ this ->_objectManager ->create (\Magento \CatalogRule \Model \Rule::class);
65
64
@@ -69,7 +68,6 @@ public function execute()
69
68
['request ' => $ this ->getRequest ()]
70
69
);
71
70
$ data = $ this ->getRequest ()->getPostValue ();
72
-
73
71
if (!$ this ->getRequest ()->getParam ('from_date ' )) {
74
72
$ data ['from_date ' ] = $ this ->localeDate ->formatDate ();
75
73
}
You can’t perform that action at this time.
0 commit comments