@@ -30,7 +30,7 @@ |
||
| 30 | 30 | event(new OwnerWasRemovedEvent($owner)); |
| 31 | 31 | |
| 32 | 32 | // Remove the owner id from all project. |
| 33 | - $owner->projects->map(function ($project) { |
|
| 33 | + $owner->projects->map(function($project) { |
|
| 34 | 34 | $project->update(['owner_id' => 0]); |
| 35 | 35 | }); |
| 36 | 36 | |
@@ -76,16 +76,16 @@ |
||
| 76 | 76 | * |
| 77 | 77 | * @return \Illuminate\Http\Response |
| 78 | 78 | */ |
| 79 | - private function feedAction(Owner &$owner, $isRss) |
|
| 79 | + private function feedAction(Owner & $owner, $isRss) |
|
| 80 | 80 | { |
| 81 | 81 | if ($owner->exists) { |
| 82 | - $owner->projects->map(function ($project) { |
|
| 83 | - $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) use ($isRss) { |
|
| 82 | + $owner->projects->map(function($project) { |
|
| 83 | + $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function($issue) use ($isRss) { |
|
| 84 | 84 | $this->feedAddItem($issue, $isRss); |
| 85 | 85 | }); |
| 86 | 86 | }); |
| 87 | 87 | } else { |
| 88 | - Issue::visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) use ($isRss) { |
|
| 88 | + Issue::visible()->orderBy('created_at', 'desc')->get()->map(function($issue) use ($isRss) { |
|
| 89 | 89 | $this->feedAddItem($issue, $isRss); |
| 90 | 90 | }); |
| 91 | 91 | } |
@@ -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 | |