Skip to content

Commit baea0a2

Browse files
committed
Cleaned up duplicate variable assignments in the same line
1 parent 7ddd47e commit baea0a2

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

app/code/Magento/CatalogSearch/Test/Unit/Model/Layer/Filter/CategoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected function setUp(): void
9494
->setMethods(['getState', 'getProductCollection'])
9595
->getMock();
9696

97-
$this->fulltextCollection = $this->fulltextCollection = $this->getMockBuilder(
97+
$this->fulltextCollection = $this->getMockBuilder(
9898
Collection::class
9999
)
100100
->disableOriginalConstructor()

app/code/Magento/CatalogSearch/Test/Unit/Model/Layer/Filter/DecimalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function setUp(): void
8484
->method('create')
8585
->willReturn($this->filterItem);
8686

87-
$this->fulltextCollection = $this->fulltextCollection = $this->getMockBuilder(
87+
$this->fulltextCollection = $this->getMockBuilder(
8888
Collection::class
8989
)
9090
->disableOriginalConstructor()

app/code/Magento/CatalogSearch/Test/Unit/Model/Layer/Filter/PriceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function setUp(): void
9999
->method('getState')
100100
->willReturn($this->state);
101101

102-
$this->fulltextCollection = $this->fulltextCollection = $this->getMockBuilder(
102+
$this->fulltextCollection = $this->getMockBuilder(
103103
Collection::class
104104
)
105105
->disableOriginalConstructor()

app/code/Magento/Reports/Block/Adminhtml/Grid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ protected function _getAllowedStoreIds()
209209
} elseif ($this->getRequest()->getParam('website')) {
210210
$storeIds = $this->_storeManager->getWebsite($this->getRequest()->getParam('website'))->getStoreIds();
211211
} elseif ($this->getRequest()->getParam('group')) {
212-
$storeIds = $storeIds = $this->_storeManager->getGroup(
212+
$storeIds = $this->_storeManager->getGroup(
213213
$this->getRequest()->getParam('group')
214214
)->getStoreIds();
215215
}

app/code/Magento/Sales/Model/Order/Payment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ public function refund($creditmemo)
742742
$this->formatPrice($baseAmountToRefund)
743743
);
744744
}
745-
$message = $message = $this->prependMessage($message);
745+
$message = $this->prependMessage($message);
746746
$message = $this->_appendTransactionToMessage($transaction, $message);
747747
$orderState = $this->getOrderStateResolver()->getStateForOrder($this->getOrder());
748748
$statuses = $this->getOrder()->getConfig()->getStateStatuses($orderState, false);

app/code/Magento/Tax/Model/Calculation/AbstractAggregateCalculator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected function calculateWithTaxInPrice(QuoteDetailsItemInterface $item, $qua
2121
$this->taxClassManagement->getTaxClassId($item->getTaxClassKey())
2222
);
2323
$rate = $this->calculationTool->getRate($taxRateRequest);
24-
$storeRate = $storeRate = $this->calculationTool->getStoreRate($taxRateRequest, $this->storeId);
24+
$storeRate = $this->calculationTool->getStoreRate($taxRateRequest, $this->storeId);
2525

2626
$discountTaxCompensationAmount = 0;
2727
$applyTaxAfterDiscount = $this->config->applyTaxAfterDiscount($this->storeId);

app/code/Magento/Tax/Model/Calculation/UnitBaseCalculator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function calculateWithTaxInPrice(QuoteDetailsItemInterface $item, $qua
3939
$this->taxClassManagement->getTaxClassId($item->getTaxClassKey())
4040
);
4141
$rate = $this->calculationTool->getRate($taxRateRequest);
42-
$storeRate = $storeRate = $this->calculationTool->getStoreRate($taxRateRequest, $this->storeId);
42+
$storeRate = $this->calculationTool->getStoreRate($taxRateRequest, $this->storeId);
4343

4444
// Calculate $priceInclTax
4545
$applyTaxAfterDiscount = $this->config->applyTaxAfterDiscount($this->storeId);

0 commit comments

Comments
 (0)