Skip to content

Commit

Permalink
#26622 - Remove unnecessary new lines and variable declaration, and m…
Browse files Browse the repository at this point in the history
…ake function private
  • Loading branch information
aligent-lturner committed Feb 6, 2020
1 parent 2c961af commit 75b03e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/code/Magento/SalesRule/Model/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,8 @@ public function initTotals($items, Address $address)
* @param Rule $rule
* @return bool
*/
protected function isValidItemForRule(
AbstractItem $item,
Rule $rule
) {
/** @var AbstractItem $item */
private function isValidItemForRule(AbstractItem $item, Rule $rule)
{
if ($item->getParentItemId()) {
return false;
}
Expand Down

0 comments on commit 75b03e0

Please sign in to comment.