1 | <?php |
||
13 | class MeetingsController extends Controller |
||
14 | { |
||
15 | 45 | public function __construct() |
|
21 | |||
22 | /** |
||
23 | * Display a listing of the resource. |
||
24 | * ?current=1 -> to exclude old planed meetings |
||
25 | * |
||
26 | * @param int $groupId |
||
27 | * @param Request $request needed for get query to get only current planed meetings (to be planned are all retrieved) |
||
28 | * @return mixed |
||
29 | */ |
||
30 | 6 | public function index($groupId, Request $request) |
|
44 | |||
45 | /** |
||
46 | * Display the specified resource. |
||
47 | * |
||
48 | * @param int $groupId |
||
49 | * @param int $meetingId |
||
50 | * @return mixed |
||
51 | */ |
||
52 | 9 | public function show($groupId, $meetingId) |
|
62 | |||
63 | /** |
||
64 | * Store a newly created resource in storage. |
||
65 | * |
||
66 | * @param MeetingRequest $request |
||
67 | * @param int $groupId |
||
68 | * @return static |
||
69 | */ |
||
70 | 12 | public function store(MeetingRequest $request, $groupId) |
|
78 | |||
79 | /** |
||
80 | * Store a newly created resource in storage. |
||
81 | * |
||
82 | * @param \Illuminate\Http\Request $request |
||
83 | * @param int $groupId |
||
84 | * @param int $meetingId |
||
85 | * @return static |
||
86 | */ |
||
87 | public function storeImage(\Illuminate\Http\Request $request, $groupId, $meetingId) |
||
88 | { |
||
89 | $this->validate($request, ['file' => 'required|image']); |
||
90 | $group = Group::findOrFail($groupId); |
||
91 | $this->authorize($group); |
||
92 | $meeting = Meeting::findOrFail($meetingId); |
||
93 | $this->authorize($meeting); |
||
94 | $file = $request->file('file'); |
||
95 | self::putImg($file, $meeting); |
||
96 | return $meeting; |
||
97 | } |
||
98 | |||
99 | private static function putImg($file, Meeting $meeting) |
||
103 | |||
104 | /** |
||
105 | * Store a newly created resource in storage. |
||
106 | * |
||
107 | * @param int $groupId |
||
108 | * @param int $meetingId |
||
109 | * @return static |
||
110 | */ |
||
111 | public function showImage($groupId, $meetingId) |
||
125 | |||
126 | private static function getImg(Meeting $meeting) |
||
133 | |||
134 | /** |
||
135 | * Update the specified resource in storage. |
||
136 | * |
||
137 | * @param MeetingRequest $request |
||
138 | * @param int $meetingId |
||
139 | * @param int $groupId |
||
140 | * @return mixed |
||
141 | */ |
||
142 | 9 | public function update(MeetingRequest $request, $groupId, $meetingId) |
|
155 | |||
156 | /** |
||
157 | * Remove the specified resource from storage. |
||
158 | * |
||
159 | * @param int $groupId |
||
160 | * @param int $meetingId |
||
161 | * @return mixed |
||
162 | */ |
||
163 | 9 | public function destroy($groupId, $meetingId) |
|
172 | } |
||
173 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.