From: Antoine Musso Date: Tue, 29 Nov 2011 12:46:04 +0000 (+0000) Subject: use {} even when if statement is oneliner X-Git-Tag: 1.31.0-rc.0~26233 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=1d5120a7489e1781351e9767bf54d2dd8a0cb546;p=lhc%2Fweb%2Fwiklou.git use {} even when if statement is oneliner --- diff --git a/tests/testHelpers.inc b/tests/testHelpers.inc index 9287d535c0..e9a6cb8d2e 100644 --- a/tests/testHelpers.inc +++ b/tests/testHelpers.inc @@ -428,8 +428,9 @@ class TestFileIterator implements Iterator { $this->sectionData['options'] = ''; } - if ( !isset( $this->sectionData['config'] ) ) + if ( !isset( $this->sectionData['config'] ) ) { $this->sectionData['config'] = ''; + } if ( ( ( preg_match( '/\\bdisabled\\b/i', $this->sectionData['options'] ) && !$this->parserTest->runDisabled ) || !preg_match( "/" . $this->parserTest->regex . "/i", $this->sectionData['test'] ) ) ) {