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