Skip to content

Commit

Permalink
[impr-OpenMage#395] Duplicate case expressions in some core files
Browse files Browse the repository at this point in the history
  • Loading branch information
lfluvisotto authored and edannenberg committed Apr 1, 2019
1 parent 4b75f79 commit a679294
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,6 @@ protected function _isAllowed()
case 'coupons':
return $this->_getSession()->isAllowed('report/salesroot/coupons');
break;
case 'shipping':
return $this->_getSession()->isAllowed('report/salesroot/shipping');
break;
case 'bestsellers':
return $this->_getSession()->isAllowed('report/products/bestsellers');
break;
Expand Down
4 changes: 1 addition & 3 deletions lib/Zend/Search/Lucene/Search/QueryToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,10 @@ public function __construct($tokenCategory, $tokenText, $position)
}
break;

case self::TC_NUMBER:
$this->type = self::TT_NUMBER;

default:
#require_once 'Zend/Search/Lucene/Exception.php';
throw new Zend_Search_Lucene_Exception('Unrecognized lexeme type: \'' . $tokenCategory . '\'');
break;
}
}
}

0 comments on commit a679294

Please sign in to comment.