@@ -141,7 +141,6 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * Shows the edit project namespace view. |
| 143 | 143 | * |
| 144 | - * @param \Gitamin\Models\ProjectNamespace $namespace |
|
| 145 | 144 | * |
| 146 | 145 | * @return \Illuminate\View\View |
| 147 | 146 | */ |
@@ -157,7 +156,6 @@ discard block |
||
| 157 | 156 | /** |
| 158 | 157 | * Updates a project namespace. |
| 159 | 158 | * |
| 160 | - * @param \Gitamin\Models\ProjectNamespace $namespace |
|
| 161 | 159 | * |
| 162 | 160 | * @return \Illuminate\Http\RedirectResponse |
| 163 | 161 | */ |
@@ -15,5 +15,5 @@ |
||
| 15 | 15 | |
| 16 | 16 | interface ProjectEventInterface extends EventInterface |
| 17 | 17 | { |
| 18 | - // |
|
| 18 | + // |
|
| 19 | 19 | } |
@@ -116,11 +116,11 @@ |
||
| 116 | 116 | return $this->belongsTo(Group::class, 'owner_id', 'id'); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - /** |
|
| 120 | - * Projects can belong to an owner. |
|
| 121 | - * |
|
| 122 | - * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
| 123 | - */ |
|
| 119 | + /** |
|
| 120 | + * Projects can belong to an owner. |
|
| 121 | + * |
|
| 122 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
| 123 | + */ |
|
| 124 | 124 | public function projectOwner() |
| 125 | 125 | { |
| 126 | 126 | return $this->belongsTo(Owner::class, 'owner_id', 'id'); |
@@ -22,10 +22,10 @@ |
||
| 22 | 22 | |
| 23 | 23 | public function getProject($namespace, $path) |
| 24 | 24 | { |
| 25 | - $project = Project::leftJoin('namespaces', function ($join) { |
|
| 25 | + $project = Project::leftJoin('namespaces', function ($join) { |
|
| 26 | 26 | $join->on('projects.namespace_id', '=', 'namespaces.id'); |
| 27 | 27 | })->where('projects.path', '=', $path)->where('namespaces.path', '=', $namespace)->first(['projects.*']); |
| 28 | 28 | |
| 29 | - return $project; |
|
| 29 | + return $project; |
|
| 30 | 30 | } |
| 31 | 31 | } |