@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Tinyissue\Model\Project as ProjectModel; |
15 | 15 | use Tinyissue\Model\Tag as TagModel; |
16 | -use Tinyissue\Model\Tag; |
|
17 | 16 | |
18 | 17 | /** |
19 | 18 | * Project is a class to defines fields & rules for add/edit project form |
@@ -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); |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use Tinyissue\Extensions\Auth\LoggedUser; |
19 | 19 | use Tinyissue\Extensions\Model\CountAttributeTrait; |
20 | 20 | use Tinyissue\Model; |
21 | -use Tinyissue\Model\Traits\Project\Issue\QueueTrait; |
|
22 | 21 | |
23 | 22 | /** |
24 | 23 | * Issue is model class for project issues. |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Illuminate\Support\Collection; |
15 | 15 | use Tinyissue\Model\Message\Queue; |
16 | 16 | use Tinyissue\Model\Project; |
17 | -use Tinyissue\Model\Project\Issue; |
|
18 | 17 | use Tinyissue\Services\SendMessagesAbstract; |
19 | 18 | |
20 | 19 | /** |
@@ -176,7 +176,17 @@ |
||
176 | 176 | ->orderBy('position'); |
177 | 177 | } |
178 | 178 | |
179 | + /** |
|
180 | + * @param string $related |
|
181 | + * @param string $foreignKey |
|
182 | + */ |
|
179 | 183 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
180 | 184 | |
185 | + /** |
|
186 | + * @param string $related |
|
187 | + * @param string $table |
|
188 | + * @param string $foreignKey |
|
189 | + * @param string $otherKey |
|
190 | + */ |
|
181 | 191 | abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null); |
182 | 192 | } |
@@ -82,9 +82,23 @@ |
||
82 | 82 | return $this->belongsToMany('Tinyissue\Model\Project', 'projects_kanban_tags', 'project_id', 'tag_id'); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param string $related |
|
87 | + * @param string $foreignKey |
|
88 | + */ |
|
85 | 89 | abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null); |
86 | 90 | |
91 | + /** |
|
92 | + * @param string $related |
|
93 | + * @param string $foreignKey |
|
94 | + */ |
|
87 | 95 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
88 | 96 | |
97 | + /** |
|
98 | + * @param string $related |
|
99 | + * @param string $table |
|
100 | + * @param string $foreignKey |
|
101 | + * @param string $otherKey |
|
102 | + */ |
|
89 | 103 | abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null); |
90 | 104 | } |
@@ -13,8 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Illuminate\Bus\Dispatcher; |
15 | 15 | use Illuminate\Support\ServiceProvider; |
16 | -use Illuminate\View\View; |
|
17 | -use Tinyissue\Form\ExportIssues; |
|
18 | 16 | |
19 | 17 | /** |
20 | 18 | * ComposerServiceProvider is the view service provider binding data to specific views. |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param Model $model |
29 | 29 | * @param int|User $changeBy |
30 | 30 | * |
31 | - * @return void |
|
31 | + * @return null|boolean |
|
32 | 32 | */ |
33 | 33 | public function queue($name, Model $model, $changeBy) |
34 | 34 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * @param Model $model |
64 | 64 | * @param int|User $changeBy |
65 | 65 | * |
66 | - * @return void |
|
66 | + * @return boolean |
|
67 | 67 | */ |
68 | 68 | public function queueDelete($name, Model $model, $changeBy) |
69 | 69 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @param array $removed |
85 | 85 | * @param UserInterface $changeBy |
86 | 86 | * |
87 | - * @return mixed |
|
87 | + * @return boolean |
|
88 | 88 | */ |
89 | 89 | public function queueIssueTagChanges(Issue $issue, array $added, array $removed, UserInterface $changeBy) |
90 | 90 | { |