1 | <?php |
||
9 | class ProjectController extends Controller |
||
10 | { |
||
11 | /** |
||
12 | * Return all projects. |
||
13 | * |
||
14 | * @return \Illuminate\Http\JsonResponse |
||
15 | */ |
||
16 | public function index() |
||
20 | |||
21 | /** |
||
22 | * Show an individual project in the manager. |
||
23 | * |
||
24 | * @param string $slug Slug of the project to show. |
||
25 | * |
||
26 | * @return \Illuminate\Http\Response |
||
27 | */ |
||
28 | public function show($slug) |
||
43 | |||
44 | /** |
||
45 | * Return the project create page. |
||
46 | * |
||
47 | * @return \Illuminate\Http\Response |
||
48 | */ |
||
49 | public function create() |
||
53 | |||
54 | /** |
||
55 | * Add a new project to the portfolio. |
||
56 | * |
||
57 | * @param AddProjectRequest $request Form request. |
||
58 | * |
||
59 | * @return \Illuminate\Http\Response |
||
60 | */ |
||
61 | public function store(AddProjectRequest $request) |
||
71 | |||
72 | /** |
||
73 | * Return the project edit form view. |
||
74 | * |
||
75 | * @param string $slug Slug for the project to edit. |
||
76 | * |
||
77 | * @return \Illuminate\Http\Response |
||
78 | */ |
||
79 | public function edit($slug) |
||
93 | |||
94 | /** |
||
95 | * Update a project. |
||
96 | * |
||
97 | * @param \Illuminate\Http\Request $request Request data. |
||
98 | * @param string $slug Slug of project to update. |
||
99 | * |
||
100 | * @return \Illuminate\Http\Response |
||
101 | */ |
||
102 | public function update(Request $request, $slug) |
||
118 | |||
119 | /** |
||
120 | * Remove a project from the portfolio. |
||
121 | * |
||
122 | * @param \Illuminate\Http\Request $request Request data. |
||
123 | * @param string $slug Slug of project to remove. |
||
124 | * |
||
125 | * @return \Illuminate\Http\Response |
||
126 | */ |
||
127 | public function destroy(Request $request, $slug) |
||
143 | } |
||
144 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.