Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function __invoke(Request $request, string $campaignLinkUuid, string $campaignSendUuid) |
||
11 | { |
||
12 | if (! is_null($campaignSendUuid)) { |
||
13 | dispatch(new RegisterClickJob($campaignLinkUuid, $campaignSendUuid)); |
||
14 | } |
||
15 | |||
16 | $redirectUrl = $request->input('redirect'); |
||
17 | |||
18 | return redirect()->to($redirectUrl); |
||
|
|||
19 | } |
||
20 | } |
||
21 |
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.