Passed
Push — master ( d4832b...fcf6a8 )
by Stéphane
21:50
created
scripts/fix_report.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 function hasDataSetTestCase(DomNode $node) {
9 9
     foreach ($node->childNodes as $child) {
10
-        if ($child->nodeName === "testcase" && strpos($child->attributes->getNamedItem("name")->textContent, "with data set #" ) !== false) {
10
+        if ($child->nodeName === "testcase" && strpos($child->attributes->getNamedItem("name")->textContent, "with data set #") !== false) {
11 11
             return $child;
12 12
         }
13 13
     }
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 
18 18
 function drillDownTestSuite(DomDocument $document, DomNode $node) {
19 19
     if ($dataset = hasDataSetTestCase($node)) {
20
-        $childAttributes =  $dataset->attributes;
21
-        $nodeAttributes= $node->attributes;
20
+        $childAttributes = $dataset->attributes;
21
+        $nodeAttributes = $node->attributes;
22 22
 
23 23
         $case = $document->createElement('testcase');
24 24
         $case->setAttribute('name', $childAttributes->getNamedItem('name')->textContent);
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     /** @var DomNode $child */
37
-    for ($i=0; $i< $node->childNodes->length; $i++) {
37
+    for ($i = 0; $i < $node->childNodes->length; $i++) {
38 38
         $child = $node->childNodes->item($i);
39 39
         if ($child->localName === "testsuite") {
40 40
             if (drillDownTestSuite($document, $child)) {
Please login to merge, or discard this patch.