| Total Complexity | 11 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class OrderFixture |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Order |
||
| 12 | */ |
||
| 13 | private $order; |
||
| 14 | |||
| 15 | 20 | public function __construct(Order $order) |
|
| 18 | 20 | } |
|
| 19 | |||
| 20 | 19 | public function getOrder(): OrderInterface |
|
|
|
|||
| 21 | { |
||
| 22 | 19 | return $this->order; |
|
| 23 | } |
||
| 24 | |||
| 25 | 17 | public function getId(): int |
|
| 26 | { |
||
| 27 | 17 | return (int) $this->order->getEntityId(); |
|
| 28 | } |
||
| 29 | |||
| 30 | 2 | public function getCustomerId(): int |
|
| 31 | { |
||
| 32 | 2 | return (int) $this->order->getCustomerId(); |
|
| 33 | } |
||
| 34 | |||
| 35 | public function getCustomerEmail(): string |
||
| 38 | } |
||
| 39 | |||
| 40 | 5 | /** |
|
| 41 | * Obtain `qty_ordered` per order item, indexed with `item_id`. |
||
| 42 | 5 | * |
|
| 43 | 5 | * @return float[] |
|
| 44 | 5 | */ |
|
| 45 | public function getOrderItemQtys(): array |
||
| 46 | { |
||
| 47 | 5 | $qtys = []; |
|
| 48 | foreach ($this->order->getItems() as $item) { |
||
| 49 | $qtys[$item->getItemId()] = (float)$item->getQtyOrdered(); |
||
| 50 | 1 | } |
|
| 51 | |||
| 52 | 1 | return $qtys; |
|
| 53 | 1 | } |
|
| 54 | |||
| 55 | public function getPaymentMethod(): string |
||
| 62 | } |
||
| 63 | |||
| 64 | public function getShippingMethod(): string |
||
| 67 | } |
||
| 68 | |||
| 69 | public function rollback(): void |
||
| 72 | } |
||
| 73 | } |
||
| 74 |
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