Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class StartController extends Controller |
||
11 | { |
||
12 | /** |
||
13 | * Redirect the browser to the appropriate shop site |
||
14 | */ |
||
15 | public function index(Request $request) |
||
|
|||
16 | { |
||
17 | if (Auth::user() != null && Auth::user()->hasPermission('SELL_TICKETS')) { |
||
18 | return redirect()->route('retail.sell.events'); |
||
19 | } |
||
20 | |||
21 | return redirect()->route('ts.events'); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Change the current locale to the given value |
||
26 | */ |
||
27 | public function changeLocale($locale) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Return the currently stored logo |
||
35 | */ |
||
36 | public function getLogo() |
||
46 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.