@@ -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 | { |
@@ -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 | */ |
@@ -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 | */ |
@@ -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 | } |
@@ -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 | */ |