Make lines short to pass phpcs in testHelpers.inc
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Mon, 28 Sep 2015 11:41:44 +0000 (14:41 +0300)
committerAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Mon, 28 Sep 2015 11:41:44 +0000 (14:41 +0300)
Bug: T102614
Change-Id: I317889b94213b626576ebcd4e15a4f95ee250d69

tests/testHelpers.inc

index 16f458b..d73496f 100644 (file)
@@ -458,8 +458,11 @@ class TestFileIterator implements Iterator {
                        $this->sectionData['config'] = '';
                }
 
-               $isDisabled = preg_match( '/\\bdisabled\\b/i', $this->sectionData['options'] ) && !$this->parserTest->runDisabled;
-               $isParsoidOnly = preg_match( '/\\bparsoid\\b/i', $this->sectionData['options'] ) && $result == 'html' && !$this->parserTest->runParsoid;
+               $isDisabled = preg_match( '/\\bdisabled\\b/i', $this->sectionData['options'] ) &&
+                       !$this->parserTest->runDisabled;
+               $isParsoidOnly = preg_match( '/\\bparsoid\\b/i', $this->sectionData['options'] ) &&
+                       $result == 'html' &&
+                       !$this->parserTest->runParsoid;
                $isFiltered = !preg_match( "/" . $this->parserTest->regex . "/i", $this->sectionData['test'] );
                if ( $input == false || $result == false || $isDisabled || $isParsoidOnly || $isFiltered ) {
                        # disabled test