AppendFile::addSteps()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 7
Ratio 100 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 7
loc 7
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
crap 1
1
<?php
2
3
4
namespace GD\Helpers;
5
6 View Code Duplication
class AppendFile extends AppendFileBase
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
7
{
8
9
10 9
    protected function addParentContent($parent_function)
11
    {
12 9
        $parent_base = __DIR__ . '/../../stubs/parent.txt';
13 9
        $this->base = $this->getFilesystem()->get($parent_base);
14
15 9
        parent::addParentContent($parent_function);
16 9
    }
17
18 9
    protected function addSteps(array $steps)
19
    {
20 9
        $path = __DIR__ . '/../../stubs/step.txt';
21 9
        $this->step_template = $this->getFilesystem()->get($path);
22
23 9
        parent::addSteps($steps);
24 9
    }
25
}
26