| Conditions | 3 |
| Paths | 3 |
| Total Lines | 27 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function load(ObjectManager $manager) |
||
| 27 | { |
||
| 28 | $objects = $this->parse($this->path); |
||
| 29 | |||
| 30 | foreach ($objects as $object) { |
||
| 31 | $case = $this->getReference($object->case); |
||
| 32 | |||
| 33 | if (!$case) { |
||
| 34 | throw new LogicException('Case "'.$object->case.'" does not exist.'); |
||
| 35 | } |
||
| 36 | |||
| 37 | $status = new CaseStatusEntity; |
||
| 38 | $status |
||
| 39 | ->setCase($case) |
||
| 40 | ->setUuid($object->uuid) |
||
| 41 | ->setOwner($object->owner) |
||
| 42 | ->setOwnerUuid($object->owner_uuid) |
||
| 43 | ->setIdentity($object->identity) |
||
| 44 | ->setIdentityUuid($object->identity_uuid) |
||
| 45 | ->setTitle((array) $object->title) |
||
| 46 | ->setDescription((array) $object->description) |
||
| 47 | ->setData((array) $object->data) |
||
| 48 | ->setTenant($object->tenant); |
||
| 49 | $manager->persist($status); |
||
| 50 | } |
||
| 51 | |||
| 52 | $manager->flush(); |
||
| 53 | } |
||
| 55 |
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