@@ -78,7 +78,6 @@ |
||
| 78 | 78 | * @param string $path |
| 79 | 79 | * @param int $creator_id |
| 80 | 80 | * @param int $owner_id |
| 81 | - * @param bool $issues_enabled |
|
| 82 | 81 | * |
| 83 | 82 | * @return void |
| 84 | 83 | */ |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | /** |
| 72 | 72 | * Generates a feed of all issues. |
| 73 | 73 | * |
| 74 | - * @param \Gitamin\Models\Owner|null $owner |
|
| 74 | + * @param Owner $owner |
|
| 75 | 75 | * @param bool $isRss |
| 76 | 76 | * |
| 77 | 77 | * @return \Illuminate\Http\Response |
@@ -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 | } |
@@ -137,7 +137,6 @@ discard block |
||
| 137 | 137 | /** |
| 138 | 138 | * Shows the edit project namespace view. |
| 139 | 139 | * |
| 140 | - * @param \Gitamin\Models\Owner $namespace |
|
| 141 | 140 | * |
| 142 | 141 | * @return \Illuminate\View\View |
| 143 | 142 | */ |
@@ -153,7 +152,6 @@ discard block |
||
| 153 | 152 | /** |
| 154 | 153 | * Updates a project namespace. |
| 155 | 154 | * |
| 156 | - * @param \Gitamin\Models\Owner $namespace |
|
| 157 | 155 | * |
| 158 | 156 | * @return \Illuminate\Http\RedirectResponse |
| 159 | 157 | */ |
@@ -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 | |
@@ -52,12 +52,12 @@ |
||
| 52 | 52 | 'setting' => 'app_name', |
| 53 | 53 | 'as' => 'projects.', |
| 54 | 54 | ], function ($router) { |
| 55 | - $router->get('{owner_path}/{project_path}', [ |
|
| 55 | + $router->get('{owner_path}/{project_path}', [ |
|
| 56 | 56 | 'as' => 'project_show', |
| 57 | 57 | 'uses' => 'ProjectsController@showAction', |
| 58 | 58 | ])->where('owner_path', '[a-zA-z.0-9_\-]+')->where('project_path', '[a-zA-z.0-9_\-]+'); |
| 59 | 59 | |
| 60 | - $router->get('{owner_path}/{project_path}/edit', [ |
|
| 60 | + $router->get('{owner_path}/{project_path}/edit', [ |
|
| 61 | 61 | 'as' => 'project_edit', |
| 62 | 62 | 'uses' => 'ProjectsController@editAction', |
| 63 | 63 | ])->where('owner_path', '[a-zA-z.0-9_\-]+')->where('project_path', '[a-zA-z.0-9_\-]+'); |