Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 7 | ||
Bugs | 2 | Features | 2 |
1 | <?php |
||
19 | public function show($id) |
||
20 | { |
||
21 | $video = $this->videoRepository->getVideo($id); |
||
|
|||
22 | |||
23 | $user = $video->user; |
||
24 | $categories = $video->categories; |
||
25 | $favorites = $video->favorites; |
||
26 | |||
27 | $likesVideo = $this->videoRepository->getLikeStatus($video); |
||
28 | |||
29 | $comments = $this->videoRepository->getAllComments($id); |
||
30 | |||
31 | $this->videoRepository->updateViews($id); |
||
32 | |||
33 | return view('video.video', compact('video', 'categories', 'comments', 'user', 'favorites', 'likesVideo')); |
||
34 | } |
||
35 | } |
||
36 |
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.