| 1 | <?php |
||
| 9 | class LinkController extends Controller |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Remove a link. |
||
| 13 | * |
||
| 14 | * @param Link $link Link to remove. |
||
| 15 | * |
||
| 16 | * @return \Illuminate\Http\JsonResponse |
||
| 17 | */ |
||
| 18 | public function destroy(Link $link) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Check the status of a link and return json http code. |
||
| 27 | * |
||
| 28 | * @param Request $request Http request with 'url'. |
||
| 29 | * @param HttpValidator $httpValidator Instance of http validator class. |
||
| 30 | * |
||
| 31 | * @return \Illuminate\Http\JsonResponse |
||
| 32 | */ |
||
| 33 | public function check(Request $request, HttpValidator $httpValidator) |
||
| 41 | } |
||
| 42 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.