Completed
Push — master ( 646be7...58cb9a )
by Alfred
03:51
created

AppendFile::writeTest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 16
c 0
b 0
f 0
ccs 9
cts 9
cp 1
rs 9.4285
cc 1
eloc 8
nc 1
nop 3
crap 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A AppendFile::addSteps() 7 7 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