Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 15 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
52 | */ |
||
53 | protected $listStubs = [ |
||
54 | 'default' => [ |
||
55 | 'request.stub' |
||
56 | ] |
||
57 | ]; |
||
58 | |||
59 | /** |
||
60 | * Resolve Container after getting file path |
||
61 | * |
||
62 | * @param string $FilePath |
||
63 | * @return Array |
||
64 | */ |
||
65 | protected function resolveByPath($filePath) |
||
66 | { |
||
67 | $this->container['filename'] = $this->makeFileName($filePath); |
||
93 | } |
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.