Conditions | 4 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | function parseWarehouse($warehouseCount) { |
||
27 | $count = $warehouseCount['Количество']; |
||
28 | $objectId = \App::$cur->migrations->findObject((string) $warehouseCount['Ид'], 'Ecommerce\Warehouse'); |
||
29 | if ($objectId) { |
||
30 | $modelName = get_class($this->model); |
||
31 | $warehouse = \Ecommerce\Item\Offer\Warehouse::get([[$modelName::index(), $this->model->pk()], [\Ecommerce\Warehouse::index(), $objectId->object_id]]); |
||
32 | if (!$warehouse) { |
||
33 | $warehouse = new \Ecommerce\Item\Offer\Warehouse([ |
||
34 | $modelName::index() => $this->model->pk(), |
||
35 | \Ecommerce\Warehouse::index() => $objectId->object_id, |
||
36 | 'count' => $count |
||
37 | ]); |
||
38 | $warehouse->save(); |
||
39 | } else { |
||
40 | if ($warehouse->count != $count) { |
||
41 | $warehouse->count = $count; |
||
42 | $warehouse->save(); |
||
43 | } |
||
50 |
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