| Conditions | 4 |
| Paths | 4 |
| Total Lines | 23 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function persist($class) |
||
| 25 | { |
||
| 26 | $extra_data = $this->request->get('extra-data'); |
||
| 27 | if (!$extra_data) |
||
| 28 | return; |
||
| 29 | foreach ($extra_data['entity_id']['data'] as $data) { |
||
| 30 | $extra_fields = $this->manager->getRepository(ExtraFields::class)->find($data['id']); |
||
| 31 | |||
| 32 | $extraData = $this->manager->getRepository(ExtraData::class)->findOneBy([ |
||
| 33 | 'entity_id' => $extra_data['entity_id'], |
||
| 34 | 'entity_name' => $extra_data['entity_name'], |
||
| 35 | 'extra_fields' => $extra_fields |
||
| 36 | ]); |
||
| 37 | |||
| 38 | if (!$extraData) |
||
| 39 | $extraData = new ExtraData(); |
||
| 40 | |||
| 41 | $extraData->setExtraFields($extra_fields); |
||
| 42 | $extraData->setEntityName($extra_data['entity_name']); |
||
| 43 | $extraData->setEntityId($extra_data['entity_id']); |
||
| 44 | $extraData->setValue($extra_data['value']); |
||
| 45 | $this->manager->persist($extraData); |
||
| 46 | $this->manager->flush(); |
||
| 47 | } |
||
| 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