@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $tags = preg_split('/ ?, ?/', $tags); |
| 70 | 70 | |
| 71 | 71 | // For every tag, do we need to create it? |
| 72 | - $projectTags = array_map(function ($taggable) use ($project) { |
|
| 72 | + $projectTags = array_map(function($taggable) use ($project) { |
|
| 73 | 73 | return Tag::firstOrCreate(['name' => $taggable])->id; |
| 74 | 74 | }, $tags); |
| 75 | 75 | |
@@ -87,7 +87,6 @@ |
||
| 87 | 87 | /** |
| 88 | 88 | * Display the specified resource. |
| 89 | 89 | * |
| 90 | - * @param string $owner |
|
| 91 | 90 | * @param string $project_path |
| 92 | 91 | * |
| 93 | 92 | * @return \Illuminate\Http\Response |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public static function findByPath($owner_path, $project_path, $columns = ['projects.*']) |
| 163 | 163 | { |
| 164 | - $project = static::leftJoin('owners', function ($join) { |
|
| 164 | + $project = static::leftJoin('owners', function($join) { |
|
| 165 | 165 | $join->on('projects.owner_id', '=', 'owners.id'); |
| 166 | 166 | })->where('projects.path', '=', $project_path)->where('owners.path', '=', $owner_path)->first($columns); |
| 167 | 167 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | */ |
| 216 | 216 | public function getTagsListAttribute() |
| 217 | 217 | { |
| 218 | - $tags = $this->tags->map(function ($tag) { |
|
| 218 | + $tags = $this->tags->map(function($tag) { |
|
| 219 | 219 | return $tag->name; |
| 220 | 220 | }); |
| 221 | 221 | |