| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 100 % |
| 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 |
||
| 15 | View Code Duplication | class SofortDataProvider implements StepEngineFormDataProviderInterface |
|
| 16 | { |
||
| 17 | /** |
||
| 18 | * @param \Spryker\Shared\Kernel\Transfer\AbstractTransfer|\Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
|
1 ignored issue
–
show
|
|||
| 19 | * |
||
| 20 | * @return \Spryker\Shared\Kernel\Transfer\AbstractTransfer|\Generated\Shared\Transfer\QuoteTransfer |
||
| 21 | */ |
||
| 22 | public function getData(AbstractTransfer $quoteTransfer) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param \Spryker\Shared\Kernel\Transfer\AbstractTransfer|\Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
| 35 | * |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public function getOptions(AbstractTransfer $quoteTransfer) |
||
| 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