| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 50 % |
| 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 |
||
| 16 | class UpdateCaptureStatusCommandPlugin extends AbstractAmazonpayCommandPlugin |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @param array $salesOrderItems |
||
| 20 | * @param \Orm\Zed\Sales\Persistence\SpySalesOrder $orderEntity |
||
| 21 | * @param \Spryker\Zed\Oms\Business\Util\ReadOnlyArrayObject $data |
||
| 22 | * |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | View Code Duplication | public function run(array $salesOrderItems, SpySalesOrder $orderEntity, ReadOnlyArrayObject $data) |
|
| 36 |
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