Code Duplication    Length = 7-7 lines in 3 locations

src/Generators/HTML.php 1 location

@@ 197-203 (lines=7) @@
194
        echo '  <a name="'.str_replace(' ', '-', $title).'" />'.PHP_EOL;
195
        echo "  <h2>$title</h2>".PHP_EOL;
196
197
        foreach ($doc->childNodes as $node) {
198
            if ($node->nodeName === 'standard') {
199
                $this->printTextBlock($node);
200
            } else if ($node->nodeName === 'code_comparison') {
201
                $this->printCodeComparisonBlock($node);
202
            }
203
        }
204
205
    }//end processSniff()
206

src/Generators/Markdown.php 1 location

@@ 89-95 (lines=7) @@
86
        $title = $this->getTitle($doc);
87
        echo "## $title".PHP_EOL;
88
89
        foreach ($doc->childNodes as $node) {
90
            if ($node->nodeName === 'standard') {
91
                $this->printTextBlock($node);
92
            } else if ($node->nodeName === 'code_comparison') {
93
                $this->printCodeComparisonBlock($node);
94
            }
95
        }
96
97
    }//end processSniff()
98

src/Generators/Text.php 1 location

@@ 31-37 (lines=7) @@
28
    {
29
        $this->printTitle($doc);
30
31
        foreach ($doc->childNodes as $node) {
32
            if ($node->nodeName === 'standard') {
33
                $this->printTextBlock($node);
34
            } else if ($node->nodeName === 'code_comparison') {
35
                $this->printCodeComparisonBlock($node);
36
            }
37
        }
38
39
    }//end processSniff()
40