| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1.0787 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 1 | public function handle(BaseRequest $request, $type = self::MASTER_REQUEST, $catch = true) |
|
| 33 | { |
||
| 34 | 1 | $request = new Request($request); |
|
| 35 | 1 | $mimeProcResult = $this->processMime( |
|
| 36 | 1 | (new FormatNegotiator())->getBest($request->headers->get('Accept', '*/*'))->getValue() |
|
| 37 | ); |
||
| 38 | |||
| 39 | $request->setApiVersion( |
||
| 40 | str_pad($mimeProcResult->apiVersion, 3, '.0') |
||
| 41 | ); |
||
| 42 | |||
| 43 | return $this->app->handle($request, $type, $catch); |
||
| 44 | } |
||
| 54 |