@@ -106,7 +106,7 @@ |
||
106 | 106 | * |
107 | 107 | * @param Tag $tag |
108 | 108 | * |
109 | - * @return mixed |
|
109 | + * @return \Illuminate\Http\RedirectResponse |
|
110 | 110 | */ |
111 | 111 | public function getDelete(Tag $tag) |
112 | 112 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @param string $url |
98 | 98 | * |
99 | - * @return mixed |
|
99 | + * @return string |
|
100 | 100 | */ |
101 | 101 | public function to($url) |
102 | 102 | { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | /** |
143 | 143 | * Returns an array of core groups. |
144 | 144 | * |
145 | - * @return array |
|
145 | + * @return string[] |
|
146 | 146 | */ |
147 | 147 | public static function getCoreGroups() |
148 | 148 | { |
@@ -336,7 +336,7 @@ |
||
336 | 336 | /** |
337 | 337 | * Returns the model that is belong to the queue message. |
338 | 338 | * |
339 | - * @return Issue|Issue\Comment|Note |
|
339 | + * @return \Illuminate\Database\Eloquent\Model |
|
340 | 340 | */ |
341 | 341 | protected function getModel() |
342 | 342 | { |
@@ -98,7 +98,7 @@ |
||
98 | 98 | /** |
99 | 99 | * Returns first status tag id. |
100 | 100 | * |
101 | - * @return int |
|
101 | + * @return string |
|
102 | 102 | */ |
103 | 103 | public function getFirstStatusTagId() |
104 | 104 | { |
@@ -111,7 +111,7 @@ |
||
111 | 111 | /** |
112 | 112 | * Return arguments and name from blade expression. |
113 | 113 | * |
114 | - * @param $expression |
|
114 | + * @param string $expression |
|
115 | 115 | * |
116 | 116 | * @return array |
117 | 117 | */ |
@@ -72,6 +72,9 @@ |
||
72 | 72 | return $this->loggedUser; |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @return null|\Tinyissue\Contracts\Repository\RepositoryInterface |
|
77 | + */ |
|
75 | 78 | protected function getLoggedUserRepository() |
76 | 79 | { |
77 | 80 | if (is_null($this->loggedUserRepository)) { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Eager load relations on the model. |
45 | 45 | * |
46 | - * @param array|string $relations |
|
46 | + * @param string $relations |
|
47 | 47 | * |
48 | 48 | * @return $this |
49 | 49 | */ |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |
183 | - * @param Project $project |
|
183 | + * @param ProjectRepository $project |
|
184 | 184 | * @param string $view |
185 | 185 | * @param null $data |
186 | 186 | * @param bool $status |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | /** |
256 | 256 | * Edit the project. |
257 | 257 | * |
258 | - * @param Project $project |
|
258 | + * @param ProjectRepository $project |
|
259 | 259 | * @param Form $form |
260 | 260 | * |
261 | 261 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | /** |
273 | 273 | * To update project details. |
274 | 274 | * |
275 | - * @param Project $project |
|
275 | + * @param ProjectRepository $project |
|
276 | 276 | * @param FormRequest\Project $request |
277 | 277 | * |
278 | 278 | * @return \Illuminate\Http\RedirectResponse |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | /** |
297 | 297 | * Ajax: returns list of users that are not in the project. |
298 | 298 | * |
299 | - * @param Project $project |
|
299 | + * @param ProjectRepository $project |
|
300 | 300 | * |
301 | 301 | * @return \Symfony\Component\HttpFoundation\Response |
302 | 302 | */ |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | /** |
311 | 311 | * Ajax: add user to the project. |
312 | 312 | * |
313 | - * @param Project $project |
|
313 | + * @param ProjectRepository $project |
|
314 | 314 | * @param Request $request |
315 | 315 | * |
316 | 316 | * @return \Symfony\Component\HttpFoundation\Response |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | /** |
326 | 326 | * Ajax: remove user from the project. |
327 | 327 | * |
328 | - * @param Project $project |
|
328 | + * @param RoleRepository $project |
|
329 | 329 | * @param Request $request |
330 | 330 | * |
331 | 331 | * @return \Symfony\Component\HttpFoundation\Response |
@@ -340,8 +340,8 @@ discard block |
||
340 | 340 | /** |
341 | 341 | * To add a new note to the project. |
342 | 342 | * |
343 | - * @param Project $project |
|
344 | - * @param Note $note |
|
343 | + * @param ProjectRepository $project |
|
344 | + * @param NoteRepository $note |
|
345 | 345 | * @param FormRequest\Note $request |
346 | 346 | * |
347 | 347 | * @return \Illuminate\Http\RedirectResponse |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | /** |
359 | 359 | * Ajax: To update project note. |
360 | 360 | * |
361 | - * @param Project $project |
|
361 | + * @param ProjectRepository $project |
|
362 | 362 | * @param Note $note |
363 | 363 | * @param Request $request |
364 | 364 | * |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | /** |
381 | 381 | * Ajax: to delete a project note. |
382 | 382 | * |
383 | - * @param Project $project |
|
383 | + * @param ProjectRepository $project |
|
384 | 384 | * @param Note $note |
385 | 385 | * |
386 | 386 | * @return \Symfony\Component\HttpFoundation\Response |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | /** |
396 | 396 | * Ajax: generate the issues export file. |
397 | 397 | * |
398 | - * @param Project $project |
|
398 | + * @param ProjectRepository $project |
|
399 | 399 | * @param Exporter $exporter |
400 | 400 | * @param Request $request |
401 | 401 | * |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | /** |
429 | 429 | * Download and then delete an export file. |
430 | 430 | * |
431 | - * @param Project $project |
|
431 | + * @param ProjectRepository $project |
|
432 | 432 | * @param string $file |
433 | 433 | * |
434 | 434 | * @return \Symfony\Component\HttpFoundation\BinaryFileResponse |
@@ -37,6 +37,9 @@ discard block |
||
37 | 37 | parent::__construct($auth); |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param integer $status |
|
42 | + */ |
|
40 | 43 | protected function getIndexViewDataForLoggedUser($status = Project::STATUS_OPEN) |
41 | 44 | { |
42 | 45 | $userRepository = $this->getLoggedUserRepository(); |
@@ -55,6 +58,9 @@ discard block |
||
55 | 58 | ]; |
56 | 59 | } |
57 | 60 | |
61 | + /** |
|
62 | + * @param integer $status |
|
63 | + */ |
|
58 | 64 | protected function getIndexViewDataForPublicProjects($status = Project::STATUS_OPEN) |
59 | 65 | { |
60 | 66 | $projectRepository = $this->app->make(ProjectRepository::class); |