Conditions | 3 |
Paths | 3 |
Total Lines | 24 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function load(ObjectManager $manager) |
||
26 | { |
||
27 | $objects = $this->parse($this->path); |
||
28 | |||
29 | foreach ($objects as $object) { |
||
30 | $individual = $this->getReference($object->individual); |
||
31 | |||
32 | if (!$individual) { |
||
33 | throw new LogicException('Individual "'.$object->individual.'" does not exist.'); |
||
34 | } |
||
35 | |||
36 | $persona = new IndividualPersonaEntity; |
||
37 | $persona |
||
38 | ->setIndividual($individual) |
||
39 | ->setUuid($object->uuid) |
||
40 | ->setOwner($object->owner) |
||
41 | ->setOwnerUuid($object->owner_uuid) |
||
42 | ->setTitle((array) $object->title) |
||
43 | ->setData((array) $object->data) |
||
44 | ->setTenant($object->tenant); |
||
45 | $manager->persist($persona); |
||
46 | } |
||
47 | |||
48 | $manager->flush(); |
||
49 | } |
||
51 |
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