| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 100 % |
| Coverage | 0% |
| Changes | 0 | ||
Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
| 1 | <?php |
||
| 19 | View Code Duplication | class DiscountByDate implements FilterInterface |
|
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var Configuration |
||
| 23 | */ |
||
| 24 | private $configuration; |
||
| 25 | |||
| 26 | public function __construct(Configuration $configuration) |
||
| 29 | } |
||
| 30 | |||
| 31 | public function filter(Collection $tickets): Collection |
||
| 42 | } |
||
| 43 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths