Skip to content

Commit

Permalink
Merge branch 'pt-11763/5.6/remove-php7-syntax' into 'master'
Browse files Browse the repository at this point in the history
PT-11763 - Remove PHP7 syntax

See merge request shopware/5/services/swagpaymentpaypalunified!39
  • Loading branch information
mitelg committed Aug 4, 2020
2 parents 23d5bde + f9390c9 commit 0f28e42
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ SW 5.2:
variables:
CHECKOUT_SHOPWARE_BRANCH: "5.2"
CHECKOUT_COOKIE_CONSENT_MANAGER_BRANCH: "5.2.11-5.2.27"
only:
- master
script:
- zip -rq plugin.zip .
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.shopware.com/shopware/5/product/shopware.git shopware --depth=1 -b ${CHECKOUT_SHOPWARE_BRANCH}
Expand Down
2 changes: 1 addition & 1 deletion Subscriber/ExpressCheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private function handlePaymentPatchException(Exception $exception)
return $redirectData;
}

private function isUserLoggedIn(): bool
private function isUserLoggedIn()
{
return (bool) $this->session->get('sUserId');
}
Expand Down
15 changes: 12 additions & 3 deletions Tests/Functional/Setup/FirstRunWizardInstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ public function test_installation_landingPageType_should_be_set()
static::assertSame('Login', $result['landing_page_type']);
}

private function getDefaultConfig(): array
/**
* @return array
*/
private function getDefaultConfig()
{
return [
'clientId' => 'testClientId',
Expand All @@ -48,12 +51,18 @@ private function getDefaultConfig(): array
];
}

private function getFirstRunWizardInstaller(): FirstRunWizardInstaller
/**
* @return FirstRunWizardInstaller
*/
private function getFirstRunWizardInstaller()
{
return new FirstRunWizardInstaller();
}

private function getConnection(): ?Connection
/**
* @return Connection
*/
private function getConnection()
{
return Shopware()->Container()->get('dbal_connection');
}
Expand Down

0 comments on commit 0f28e42

Please sign in to comment.