1 | <?php |
||
12 | class TerminalController extends AuthorizedController |
||
13 | { |
||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | protected $resource = 'terminal'; |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | protected $resourceAbilityMap = [ |
||
23 | 'index' => 'run', |
||
24 | 'execute' => 'run', |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * Show the form for create/update of the given resource. |
||
29 | * |
||
30 | * @return \Illuminate\Http\Response |
||
|
|||
31 | */ |
||
32 | public function index(Terminal $terminal, Request $request) |
||
70 | |||
71 | /** |
||
72 | * Process the form for store/update of the given resource. |
||
73 | * |
||
74 | * @param \Illuminate\Http\Request $request |
||
75 | * |
||
76 | * @return \Illuminate\Http\Response |
||
77 | */ |
||
78 | public function execute(Terminal $terminal, Request $request) |
||
89 | |||
90 | /** |
||
91 | * Render exception. |
||
92 | * |
||
93 | * @param \Exception $exception |
||
94 | * |
||
95 | * @return \Illuminate\Http\Response |
||
96 | */ |
||
97 | protected function renderException(Exception $exception) |
||
101 | } |
||
102 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.