| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function genetateFromModel(Contract $data) |
||
| 20 | { |
||
| 21 | $file = $data->getContractFile(); |
||
| 22 | if (!$file) |
||
| 23 | $file = new File(); |
||
| 24 | |||
| 25 | $file->setFileType('text'); |
||
| 26 | $file->setExtension('html'); |
||
| 27 | $file->setContent($this->modelService->genetateFromModel($data)); |
||
| 28 | $file->setFileName($data->getContractModel()->getModel()); |
||
| 29 | $file->setPeople($data->getBeneficiary()); |
||
| 30 | |||
| 31 | $this->manager->persist($file); |
||
| 32 | |||
| 33 | $data->setContractFile($file); |
||
| 34 | $this->manager->persist($data); |
||
| 35 | $this->manager->flush(); |
||
| 36 | |||
| 37 | return $data; |
||
| 38 | } |
||
| 62 |
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