From 84124f74b55a88b09947f1fc561a4ad30ecdd07b Mon Sep 17 00:00:00 2001 From: Jack Krielen Date: Thu, 16 Apr 2020 16:16:17 +0200 Subject: [PATCH] Code Styling, Fixing --- .../Product/View/Type/ConfigurableTest.php | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/app/code/Magento/ConfigurableProduct/Test/Unit/Block/Product/View/Type/ConfigurableTest.php b/app/code/Magento/ConfigurableProduct/Test/Unit/Block/Product/View/Type/ConfigurableTest.php index 9ab288030cdd0..475da7eb00daa 100644 --- a/app/code/Magento/ConfigurableProduct/Test/Unit/Block/Product/View/Type/ConfigurableTest.php +++ b/app/code/Magento/ConfigurableProduct/Test/Unit/Block/Product/View/Type/ConfigurableTest.php @@ -230,8 +230,11 @@ public function cacheKeyProvider(): array * @param string|null $priceCurrency * @param string|null $customerGroupId */ - public function testGetCacheKeyInfo(array $expected, string $priceCurrency = null, string $customerGroupId = null): void - { + public function testGetCacheKeyInfo( + array $expected, + string $priceCurrency = null, + string $customerGroupId = null + ): void { $storeMock = $this->getMockBuilder(\Magento\Store\Api\Data\StoreInterface::class) ->setMethods(['getCurrentCurrency']) ->getMockForAbstractClass(); @@ -385,7 +388,7 @@ private function getExpectedArray($productId, $amount, $priceQty, $percentage): ], ], 'msrpPrice' => [ - 'amount' => null , + 'amount' => null, ] ], ], @@ -419,8 +422,9 @@ private function getExpectedArray($productId, $amount, $priceQty, $percentage): * @param \PHPUnit\Framework\MockObject\MockObject $productMock * @return \PHPUnit\Framework\MockObject\MockObject */ - private function getProductTypeMock(\PHPUnit\Framework\MockObject\MockObject $productMock): \PHPUnit\Framework\MockObject\MockObject - { + private function getProductTypeMock( + \PHPUnit\Framework\MockObject\MockObject $productMock + ): \PHPUnit\Framework\MockObject\MockObject { $currencyMock = $this->getMockBuilder(\Magento\Directory\Model\Currency::class) ->disableOriginalConstructor() ->getMock(); @@ -501,8 +505,11 @@ protected function getAmountMock($amount): \PHPUnit\Framework\MockObject\MockObj * @param int $percentage * @return \PHPUnit\Framework\MockObject\MockObject */ - protected function getTierPriceMock(\PHPUnit_Framework_MockObject_MockObject $amountMock, $priceQty, $percentage): \PHPUnit\Framework\MockObject\MockObject - { + protected function getTierPriceMock( + \PHPUnit\Framework\MockObject\MockObject $amountMock, + $priceQty, + $percentage + ): \PHPUnit\Framework\MockObject\MockObject { $tierPrice = [ 'price_qty' => $priceQty, 'price' => $amountMock,