Skip to content

Commit 9b91791

Browse files
committed
[FIX] Remove duplicated case statement
1 parent 60a4372 commit 9b91791

File tree

2 files changed

+0
-6
lines changed
  • app/code/Magento

2 files changed

+0
-6
lines changed

app/code/Magento/Backend/view/adminhtml/templates/widget/form/element.phtml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
<?php break;
2020
case 'column': ?>
2121
<?php break;
22-
case 'hidden': ?>
23-
<input type="<?= /* @escapeNotVerified */ $element->getType() ?>" name="<?= /* @escapeNotVerified */ $element->getName() ?>" id="<?= $element->getHtmlId() ?>" value="<?= /* @escapeNotVerified */ $element->getValue() ?>">
24-
<?php break;
2522
case 'select': ?>
2623
<span class="form_row">
2724
<?php if ($element->getLabel()): ?><label for="<?= $element->getHtmlId() ?>"><?= /* @escapeNotVerified */ $element->getLabel() ?>:</label><?php endif; ?>

app/code/Magento/Reports/Controller/Adminhtml/Report/Sales.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ protected function _isAllowed()
5656
case 'coupons':
5757
return $this->_authorization->isAllowed('Magento_Reports::coupons');
5858
break;
59-
case 'shipping':
60-
return $this->_authorization->isAllowed('Magento_Reports::shipping');
61-
break;
6259
case 'bestsellers':
6360
return $this->_authorization->isAllowed('Magento_Reports::bestsellers');
6461
break;

0 commit comments

Comments
 (0)