Code Duplication    Length = 20-21 lines in 2 locations

src/Helpers/AppendBrowserFile.php 1 location

@@ 6-26 (lines=21) @@
3
4
namespace GD\Helpers;
5
6
class AppendBrowserFile extends AppendFileBase
7
{
8
9
    protected $spacing = "    ";
10
11
    protected function addParentContent($parent_function)
12
    {
13
        $parent_base = __DIR__ . '/../../stubs/browser_parent.txt';
14
        $this->base = $this->getFilesystem()->get($parent_base);
15
16
        parent::addParentContent($parent_function);
17
    }
18
19
    protected function addSteps(array $steps)
20
    {
21
        $path = __DIR__ . '/../../stubs/browser_step.txt';
22
        $this->step_template = $this->getFilesystem()->get($path);
23
24
        parent::addSteps($steps);
25
    }
26
}
27

src/Helpers/AppendFile.php 1 location

@@ 6-25 (lines=20) @@
3
4
namespace GD\Helpers;
5
6
class AppendFile extends AppendFileBase
7
{
8
9
10
    protected function addParentContent($parent_function)
11
    {
12
        $parent_base = __DIR__ . '/../../stubs/parent.txt';
13
        $this->base = $this->getFilesystem()->get($parent_base);
14
15
        parent::addParentContent($parent_function);
16
    }
17
18
    protected function addSteps(array $steps)
19
    {
20
        $path = __DIR__ . '/../../stubs/step.txt';
21
        $this->step_template = $this->getFilesystem()->get($path);
22
23
        parent::addSteps($steps);
24
    }
25
}
26