@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | public function getProject($namespace, $path) |
| 23 | 23 | { |
| 24 | - $project = Project::leftJoin('namespaces', function ($join) { |
|
| 24 | + $project = Project::leftJoin('namespaces', function($join) { |
|
| 25 | 25 | $join->on('projects.namespace_id', '=', 'namespaces.id'); |
| 26 | 26 | })->where('projects.path', '=', $path)->where('namespaces.path', '=', $namespace)->first(['projects.*']); |
| 27 | 27 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $tags = preg_split('/ ?, ?/', $tags); |
| 75 | 75 | |
| 76 | 76 | // For every tag, do we need to create it? |
| 77 | - $projectTags = array_map(function ($taggable) use ($project) { |
|
| 77 | + $projectTags = array_map(function($taggable) use ($project) { |
|
| 78 | 78 | return Tag::firstOrCreate(['name' => $taggable])->id; |
| 79 | 79 | }, $tags); |
| 80 | 80 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function showAction($owner, $project_path) |
| 96 | 96 | { |
| 97 | - $project = Project::leftJoin('owners', function ($join) { |
|
| 97 | + $project = Project::leftJoin('owners', function($join) { |
|
| 98 | 98 | $join->on('projects.owner_id', '=', 'owners.id'); |
| 99 | 99 | })->where('projects.path', '=', $project_path)->where('owners.path', '=', $owner)->first(['projects.*']); |
| 100 | 100 | |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function editAction($namespace, $project_path) |
| 122 | 122 | { |
| 123 | - $project = Project::leftJoin('owners', function ($join) { |
|
| 123 | + $project = Project::leftJoin('owners', function($join) { |
|
| 124 | 124 | $join->on('projects.owner_id', '=', 'owners.id'); |
| 125 | 125 | })->where('owners.path', '=', $project_path)->where('owners.path', '=', $namespace)->first(['projects.*']); |
| 126 | 126 | |
@@ -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 | } |