use {} even when if statement is oneliner
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 29 Nov 2011 12:46:04 +0000 (12:46 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 29 Nov 2011 12:46:04 +0000 (12:46 +0000)
tests/testHelpers.inc

index 9287d53..e9a6cb8 100644 (file)
@@ -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'] ) )  ) {