| Total Complexity | 2 |
| Total Lines | 30 |
| 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 |
||
| 13 | View Code Duplication | class IpnPaymentCaptureRequestConverter extends IpnPaymentAbstractRequestConverter |
|
| 14 | { |
||
| 15 | const CAPTURE_DETAILS = 'CaptureDetails'; |
||
| 16 | /** |
||
| 17 | * @var \SprykerEco\Zed\AmazonPay\Business\Api\Converter\ArrayConverterInterface $captureDetailsConverter |
||
| 18 | */ |
||
| 19 | protected $captureDetailsConverter; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param \SprykerEco\Zed\AmazonPay\Business\Api\Converter\ArrayConverterInterface $captureDetailsConverter |
||
| 23 | */ |
||
| 24 | public function __construct(ArrayConverterInterface $captureDetailsConverter) |
||
| 25 | { |
||
| 26 | $this->captureDetailsConverter = $captureDetailsConverter; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $request |
||
| 31 | * |
||
| 32 | * @return \Generated\Shared\Transfer\AmazonpayIpnPaymentRequestTransfer |
||
| 33 | */ |
||
| 34 | public function convert(array $request) |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
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