1 | <?php |
||
13 | class RepliesController extends Controller |
||
14 | { |
||
15 | /** |
||
16 | * Create a new RepliesController instance. |
||
17 | */ |
||
18 | public function __construct() |
||
22 | |||
23 | /** |
||
24 | * Persist a new reply. |
||
25 | * |
||
26 | * @param Thread $thread |
||
27 | * @return \Illuminate\Http\RedirectResponse |
||
28 | */ |
||
29 | public function store(Request $request, Channel $channel, Thread $thread) |
||
46 | |||
47 | /** |
||
48 | * Update the specified resource in storage. |
||
49 | * |
||
50 | * @param \Illuminate\Http\Request $request |
||
51 | * @param \App\Thread $thread |
||
52 | * @return \Illuminate\Http\Response |
||
53 | */ |
||
54 | public function update(Request $request, Reply $reply) |
||
67 | |||
68 | /** |
||
69 | * Remove the specified resource from storage. |
||
70 | * |
||
71 | * @param \App\Thread $thread |
||
72 | * @return \Illuminate\Http\Response |
||
73 | */ |
||
74 | public function destroy(Reply $reply, Request $request) |
||
83 | } |
||
84 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.