Skip to content

Commit

Permalink
Merge branch 'ntr/5.2/remove-void-return-type' into 'master'
Browse files Browse the repository at this point in the history
NTR - Remove void return types from new files

See merge request shopware/5/services/swagpaymentpaypalunified!12
  • Loading branch information
mitelg committed Oct 28, 2019
2 parents 61a52bb + 12da32f commit cee406a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Code Coverage:
SW 5.2:
stage: Shopware Versions
needs: [PHP analyze]
image: shopware/5-continuous:7.1
image: shopware/5-continuous:5.6
before_script: []
variables:
CHECKOUT_SHOPWARE_BRANCH: "5.2"
Expand Down
2 changes: 1 addition & 1 deletion Components/Backend/VoidService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php
/**
* (c) shopware AG <[email protected]>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PaymentDetailsServiceTest extends TestCase
const SALE_ID = 'saleId';
const LEGACY_ID = 'legacyId';

public function testGetPaymentDetailsOrder(): void
public function testGetPaymentDetailsOrder()
{
$result = $this->createPaymentDetailService()->getPaymentDetails(self::ORDER_ID, '0', '');

Expand All @@ -38,7 +38,7 @@ public function testGetPaymentDetailsOrder(): void
static::assertArrayHasKey('history', $result);
}

public function testGetPaymentDetailsAuthorization(): void
public function testGetPaymentDetailsAuthorization()
{
$result = $this->createPaymentDetailService()->getPaymentDetails(self::AUTHORIZATION_ID, '0', '');

Expand All @@ -48,7 +48,7 @@ public function testGetPaymentDetailsAuthorization(): void
static::assertArrayHasKey('history', $result);
}

public function testGetPaymentDetailsSale(): void
public function testGetPaymentDetailsSale()
{
$result = $this->createPaymentDetailService()->getPaymentDetails(self::SALE_ID, '0', '');

Expand All @@ -58,7 +58,7 @@ public function testGetPaymentDetailsSale(): void
static::assertArrayHasKey('history', $result);
}

public function testGetPaymentDetailsSaleThrowException(): void
public function testGetPaymentDetailsSaleThrowException()
{
$result = $this->createPaymentDetailService()->getPaymentDetails(PaymentResourceMock::THROW_EXCEPTION, '0', '');

Expand All @@ -69,7 +69,7 @@ public function testGetPaymentDetailsSaleThrowException(): void
static::assertArrayNotHasKey('history', $result);
}

public function testGetPaymentDetailsLegacy(): void
public function testGetPaymentDetailsLegacy()
{
$legacyPaymentId = '99';
/** @var Connection $connection */
Expand Down
8 changes: 4 additions & 4 deletions Tests/Functional/Components/Backend/VoidServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function setUp()
$this->modelManager = Shopware()->Container()->get('models');
}

public function testVoidOrder(): void
public function testVoidOrder()
{
$orderId = $this->createOrder(OrderResourceMock::PAYPAL_PAYMENT_ID);

Expand All @@ -43,7 +43,7 @@ public function testVoidOrder(): void
static::assertTrue($result['success']);
}

public function testVoidOrderThrowException(): void
public function testVoidOrderThrowException()
{
$orderId = $this->createOrder(OrderResourceMock::PAYPAL_PAYMENT_ID);

Expand All @@ -55,7 +55,7 @@ public function testVoidOrderThrowException(): void
static::assertFalse($result['success']);
}

public function testVoidAuthorization(): void
public function testVoidAuthorization()
{
$orderId = $this->createOrder(AuthorizationResourceMock::PAYPAL_PAYMENT_ID);

Expand All @@ -67,7 +67,7 @@ public function testVoidAuthorization(): void
static::assertTrue($result['success']);
}

public function testVoidAuthorizationThrowException(): void
public function testVoidAuthorizationThrowException()
{
$orderId = $this->createOrder(AuthorizationResourceMock::PAYPAL_PAYMENT_ID);

Expand Down

0 comments on commit cee406a

Please sign in to comment.