Code Duplication    Length = 6-6 lines in 2 locations

src/Fillet/Writer/PageWriter.php 1 location

@@ 35-40 (lines=6) @@
32
		$header = '---' . PHP_EOL . $dumper->dump($headerData, 2) . '---' . PHP_EOL;
33
        
34
        $filename = $this->destinationFolder . '/' . $filename;
35
        if ($this->isMarkdownEnabled()) {
36
            $filename .= '.md';
37
            $data['content'] = $this->toMarkdown($data['content']);
38
        } else {
39
            $filename .= '.html';
40
        }
41
42
        file_put_contents($filename, $header . PHP_EOL . $data['content']);
43
    }

src/Fillet/Writer/PostWriter.php 1 location

@@ 38-43 (lines=6) @@
35
		$header = '---' . PHP_EOL . $dumper->dump($headerData, 2) . '---' . PHP_EOL;
36
37
        $filename = $this->destinationFolder . $filename;
38
        if ($this->isMarkdownEnabled()) {
39
            $filename .= '.md';
40
            $data['content'] = $this->toMarkdown($data['content']);
41
        } else {
42
            $filename .= '.html';
43
        }
44
        file_put_contents($filename, $header . PHP_EOL . $data['content']);
45
    }
46
}