| Conditions | 2 |
| Paths | 3 |
| Total Lines | 25 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function __invoke(Order $data, Request $request): JsonResponse |
||
| 23 | { |
||
| 24 | try { |
||
| 25 | |||
| 26 | $invoiceTax = $this->nFeService->createNfe($data, 55); |
||
| 27 | return new JsonResponse([ |
||
| 28 | 'response' => [ |
||
| 29 | 'data' => $data->getId(), |
||
| 30 | 'invoice_tax' => $invoiceTax->getId(), |
||
| 31 | 'xml' => $invoiceTax->getInvoice(), |
||
| 32 | 'count' => 1, |
||
| 33 | 'error' => '', |
||
| 34 | 'success' => true, |
||
| 35 | ], |
||
| 36 | ]); |
||
| 37 | } catch (\Throwable $th) { |
||
| 38 | return new JsonResponse([ |
||
| 39 | 'response' => [ |
||
| 40 | 'count' => 0, |
||
| 41 | 'error' => $th->getMessage(), |
||
| 42 | 'file' => $th->getFile(), |
||
| 43 | 'line'=> $th->getLine(), |
||
| 44 | 'success' => false, |
||
| 45 | ], |
||
| 46 | ], 500); |
||
| 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