| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class TrackController extends AbstractController |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
| 22 | * |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | public function indexAction(Request $request) |
||
| 26 | { |
||
| 27 | $factFinderTrackingRequestTransfer = new FactFinderSdkTrackingRequestTransfer(); |
||
| 28 | $factFinderTrackingRequestTransfer->fromArray($request->query->all()); |
||
| 29 | |||
| 30 | $this->setFactFinderSid($request, $factFinderTrackingRequestTransfer); |
||
| 31 | |||
| 32 | $factFinderTrackingResponseTransfer = $this->getFactory() |
||
| 33 | ->getFactFinderClient() |
||
| 34 | ->track($factFinderTrackingRequestTransfer); |
||
| 35 | |||
| 36 | if (!$factFinderTrackingResponseTransfer->getResult()) { |
||
| 37 | return $this->jsonResponse(null, 400); |
||
| 38 | } |
||
| 39 | |||
| 40 | return $this->jsonResponse(); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
| 45 | * @param \Generated\Shared\Transfer\FactFinderSdkTrackingRequestTransfer $factFinderTrackingResponseTransfer |
||
| 46 | * |
||
| 47 | * @return void |
||
| 48 | */ |
||
| 49 | protected function setFactFinderSid(Request $request, FactFinderSdkTrackingRequestTransfer $factFinderTrackingResponseTransfer) |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
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