From 7003ca758ddc8ac108b70f01ef63c8081460af7b Mon Sep 17 00:00:00 2001 From: Jakub Janata Date: Tue, 7 Aug 2018 08:32:16 +0200 Subject: [PATCH] PSR-12 --- .travis.yml | 2 +- src/SmokeTester.php | 2 +- tests/AcmeApp/DefaultPresenter.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 69f20ca..7cdff69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ jobs: - stage: Code Standard Checker php: 7.2 script: - - php vendor/bin/phpcs --standard=PSR2 ./src ./tests + - php vendor/bin/phpcs --standard=PSR12 ./src ./tests - stage: Code Coverage php: 7.2 diff --git a/src/SmokeTester.php b/src/SmokeTester.php index 9591361..bf57101 100644 --- a/src/SmokeTester.php +++ b/src/SmokeTester.php @@ -57,7 +57,7 @@ public static function createContainer(?string $tempDir = null, ?callable $confi throw new RuntimeException('Please specify $tempDir in setup or by first argument'); } - $configurator = new Configurator; + $configurator = new Configurator(); $configurator->setTempDirectory($tempDir); if (is_callable($configuratorCallback)) { diff --git a/tests/AcmeApp/DefaultPresenter.php b/tests/AcmeApp/DefaultPresenter.php index e04fa56..b5c532e 100644 --- a/tests/AcmeApp/DefaultPresenter.php +++ b/tests/AcmeApp/DefaultPresenter.php @@ -30,6 +30,6 @@ public function actionError() public function actionException() { - throw new BadRequestException; + throw new BadRequestException(); } }