@@ -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 | { |
@@ -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)) { |
@@ -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); |
@@ -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 | } |
@@ -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 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * @param Project $project |
| 30 | 30 | * @param UserInterface $user |
| 31 | 31 | * |
| 32 | - * @return Eloquent\Model |
|
| 32 | + * @return boolean |
|
| 33 | 33 | */ |
| 34 | 34 | public function upload(array $input, Project $project, UserInterface $user) |
| 35 | 35 | { |