@@ -97,7 +97,7 @@ |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
100 | - * @return mixed |
|
100 | + * @return User |
|
101 | 101 | */ |
102 | 102 | private function newUser() |
103 | 103 | { |
@@ -203,7 +203,7 @@ |
||
203 | 203 | * Save and Convert to webm video. |
204 | 204 | * |
205 | 205 | * @param $video |
206 | - * @param $name |
|
206 | + * @param string $name |
|
207 | 207 | */ |
208 | 208 | private function saveAndConvert($video, $name) |
209 | 209 | { |
@@ -77,7 +77,7 @@ |
||
77 | 77 | /** |
78 | 78 | * Check if database contains data. |
79 | 79 | * |
80 | - * @param $data |
|
80 | + * @param \App\Http\Requests\LikeDislikeStoreRequest $data |
|
81 | 81 | * |
82 | 82 | * @return int |
83 | 83 | */ |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function transform($user) |
16 | 16 | { |
17 | 17 | return [ |
18 | - 'id' => (int) $user['id'], |
|
18 | + 'id' => (int)$user['id'], |
|
19 | 19 | 'name' => $user['name'], |
20 | 20 | 'email' => $user['email'], |
21 | 21 | 'avatar' => $user['avatar'], |
@@ -15,8 +15,8 @@ |
||
15 | 15 | public function transform($likeDislike) |
16 | 16 | { |
17 | 17 | return [ |
18 | - 'user_id' => (int) $likeDislike['user_id'], |
|
19 | - 'video_id' => (int) $likeDislike['video_id'], |
|
18 | + 'user_id' => (int)$likeDislike['user_id'], |
|
19 | + 'video_id' => (int)$likeDislike['video_id'], |
|
20 | 20 | 'type' => $likeDislike['type'], |
21 | 21 | ]; |
22 | 22 | } |
@@ -15,9 +15,9 @@ |
||
15 | 15 | public function transform($comment) |
16 | 16 | { |
17 | 17 | return [ |
18 | - 'id' => (int) $comment['id'], |
|
19 | - 'user_id' => (int) $comment['user_id'], |
|
20 | - 'video_id' => (int) $comment['video_id'], |
|
18 | + 'id' => (int)$comment['id'], |
|
19 | + 'user_id' => (int)$comment['user_id'], |
|
20 | + 'video_id' => (int)$comment['video_id'], |
|
21 | 21 | 'comment' => $comment['comment'], |
22 | 22 | ]; |
23 | 23 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | { |
56 | 56 | $router->group([ |
57 | 57 | 'namespace' => $this->namespace, |
58 | - ], function ($router) { |
|
58 | + ], function($router) { |
|
59 | 59 | require app_path('Http/routes-api.php'); |
60 | 60 | }); |
61 | 61 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | { |
74 | 74 | $router->group([ |
75 | 75 | 'namespace' => $this->namespace, 'middleware' => 'web', |
76 | - ], function ($router) { |
|
76 | + ], function($router) { |
|
77 | 77 | require app_path('Http/routes.php'); |
78 | 78 | }); |
79 | 79 | } |