Skip to content

Commit 013e432

Browse files
lfluvisottoedannenberg
authored andcommitted
[impr-OpenMage#395] Duplicate case expressions in some core files
1 parent 8b9198a commit 013e432

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

app/code/core/Mage/Adminhtml/controllers/Report/SalesController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,6 @@ protected function _isAllowed()
409409
case 'coupons':
410410
return $this->_getSession()->isAllowed('report/salesroot/coupons');
411411
break;
412-
case 'shipping':
413-
return $this->_getSession()->isAllowed('report/salesroot/shipping');
414-
break;
415412
case 'bestsellers':
416413
return $this->_getSession()->isAllowed('report/products/bestsellers');
417414
break;

lib/Zend/Search/Lucene/Search/QueryToken.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,10 @@ public function __construct($tokenCategory, $tokenText, $position)
214214
}
215215
break;
216216

217-
case self::TC_NUMBER:
218-
$this->type = self::TT_NUMBER;
219-
220217
default:
221218
#require_once 'Zend/Search/Lucene/Exception.php';
222219
throw new Zend_Search_Lucene_Exception('Unrecognized lexeme type: \'' . $tokenCategory . '\'');
220+
break;
223221
}
224222
}
225223
}

0 commit comments

Comments
 (0)