From 6a0e83e77128c31160bf4c6d843f421ee7a9c14c Mon Sep 17 00:00:00 2001 From: Luca Tumedei Date: Fri, 3 Apr 2020 13:07:29 +0200 Subject: [PATCH] style(WPCLITest.php) spacing --- tests/unit/Codeception/Module/WPCLITest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/unit/Codeception/Module/WPCLITest.php b/tests/unit/Codeception/Module/WPCLITest.php index 91ba35f52..1d7538d02 100644 --- a/tests/unit/Codeception/Module/WPCLITest.php +++ b/tests/unit/Codeception/Module/WPCLITest.php @@ -257,14 +257,14 @@ public function it_should_cast_wp_cli_errors_to_exceptions_if_specified_in_confi $this->expectException(ModuleException::class); - $pattern = '/' . preg_quote( $error, '/' ) . '/'; - if (method_exists($this,'expectExceptionMessageMatches')) { - $this->expectExceptionMessageMatches( $pattern ); - }else{ - $this->expectExceptionMessageRegExp( $pattern ); - } - - $cli->cli('core version'); + $pattern = '/' . preg_quote($error, '/') . '/'; + if (method_exists($this, 'expectExceptionMessageMatches')) { + $this->expectExceptionMessageMatches($pattern); + } else { + $this->expectExceptionMessageRegExp($pattern); + } + + $cli->cli('core version'); } /**