@@ -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 | } |