| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function Upload(Application $app, Request $request) { |
||
| 20 | $sport = $request->get('sport'); |
||
| 21 | $file = $request->files->get('file'); |
||
| 22 | |||
| 23 | $validity = $app['phpdraft.ProPlayerValidator']->IsUploadSportValid($sport, $file); |
||
| 24 | |||
| 25 | if (!$validity->success) { |
||
| 26 | return $app->json($validity, $validity->responseType()); |
||
| 27 | } |
||
| 28 | |||
| 29 | $response = $app['phpdraft.ProPlayerService']->Upload($sport, $file); |
||
| 30 | |||
| 31 | return $app->json($response, $response->responseType()); |
||
| 32 | } |
||
| 33 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.