@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * Handle the remove project team command. |
| 21 | 21 | * |
| 22 | - * @param \Gitamin\Commands\ProjectTeam\RemoveProjectTeamCommand $command |
|
| 22 | + * @param RemoveProjectNamespaceCommand $command |
|
| 23 | 23 | * |
| 24 | 24 | * @return void |
| 25 | 25 | */ |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Gitamin\Handlers\Commands\ProjectNamespace; |
| 13 | 13 | |
| 14 | 14 | use Gitamin\Commands\ProjectNamespace\RemoveProjectNamespaceCommand; |
| 15 | -use Gitamin\Events\ProjectNamespace\ProjectNamespaceWasRemovedEvent; |
|
| 16 | 15 | |
| 17 | 16 | class RemoveProjectNamespaceCommandHandler |
| 18 | 17 | { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | event(new ProjectTeamWasRemovedEvent($team)); |
| 31 | 31 | |
| 32 | 32 | // Remove the namespace id from all project. |
| 33 | - $group->projects->map(function ($project) { |
|
| 33 | + $group->projects->map(function($project) { |
|
| 34 | 34 | $project->update(['namespace_id' => 0]); |
| 35 | 35 | }); |
| 36 | 36 | |
@@ -86,7 +86,6 @@ |
||
| 86 | 86 | * @param string $description |
| 87 | 87 | * @param int $visibility_level |
| 88 | 88 | * @param string $path |
| 89 | - * @param int $creator_id |
|
| 90 | 89 | * @param int $namespace_id |
| 91 | 90 | * |
| 92 | 91 | * @return void |
@@ -39,6 +39,6 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function scopeMine($query) |
| 41 | 41 | { |
| 42 | - return $query->where('owner_id', Auth::user()->id); |
|
| 42 | + return $query->where('owner_id', Auth::user()->id); |
|
| 43 | 43 | } |
| 44 | 44 | } |
@@ -130,7 +130,6 @@ discard block |
||
| 130 | 130 | /** |
| 131 | 131 | * Shows the edit project team view. |
| 132 | 132 | * |
| 133 | - * @param \Gitamin\Models\ProjectTeam $team |
|
| 134 | 133 | * |
| 135 | 134 | * @return \Illuminate\View\View |
| 136 | 135 | */ |
@@ -148,7 +147,6 @@ discard block |
||
| 148 | 147 | /** |
| 149 | 148 | * Updates a project team. |
| 150 | 149 | * |
| 151 | - * @param \Gitamin\Models\ProjectTeam $team |
|
| 152 | 150 | * |
| 153 | 151 | * @return \Illuminate\Http\RedirectResponse |
| 154 | 152 | */ |
@@ -13,18 +13,14 @@ |
||
| 13 | 13 | |
| 14 | 14 | use AltThree\Validator\ValidationException; |
| 15 | 15 | use Gitamin\Commands\ProjectNamespace\AddProjectNamespaceCommand; |
| 16 | -use Gitamin\Commands\ProjectNamespace\RemoveProjectNamespaceCommand; |
|
| 17 | 16 | use Gitamin\Commands\ProjectNamespace\UpdateProjectNamespaceCommand; |
| 18 | -use Gitamin\Models\Project; |
|
| 19 | 17 | use Gitamin\Models\ProjectNamespace; |
| 20 | 18 | use Gitamin\Models\Group; |
| 21 | -use Gitamin\Models\Tag; |
|
| 22 | 19 | use Gitamin\Http\Controllers\Controller; |
| 23 | 20 | use GrahamCampbell\Binput\Facades\Binput; |
| 24 | 21 | use Illuminate\Support\Facades\Redirect; |
| 25 | 22 | use Illuminate\Support\Facades\Auth; |
| 26 | 23 | use Illuminate\Support\Facades\View; |
| 27 | -use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
|
| 28 | 24 | |
| 29 | 25 | class GroupsController extends Controller |
| 30 | 26 | { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $router->group([ |
| 31 | 31 | 'middleware' => ['app.hasSetting'], |
| 32 | 32 | 'setting' => 'app_name', |
| 33 | - ], function ($router) { |
|
| 33 | + ], function($router) { |
|
| 34 | 34 | $router->get('/', [ |
| 35 | 35 | 'as' => 'index', |
| 36 | 36 | 'uses' => 'ExploreController@index', |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | }); |
| 40 | 40 | |
| 41 | 41 | //Install Area |
| 42 | - $router->group(['middleware' => ['app.isInstalled', 'localize']], function ($router) { |
|
| 42 | + $router->group(['middleware' => ['app.isInstalled', 'localize']], function($router) { |
|
| 43 | 43 | $router->controller('install', 'InstallController'); |
| 44 | 44 | }); |
| 45 | 45 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | 'setting' => 'app_name', |
| 50 | 50 | 'prefix' => 'explore', |
| 51 | 51 | 'as' => 'explore.', |
| 52 | - ], function ($router) { |
|
| 52 | + ], function($router) { |
|
| 53 | 53 | $router->get('/', [ |
| 54 | 54 | 'as' => 'index', |
| 55 | 55 | 'uses' => 'ExploreController@index', |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $router->group([ |
| 67 | 67 | 'middleware' => 'app.hasSetting', |
| 68 | 68 | 'setting' => 'app_name', |
| 69 | - ], function ($router) { |
|
| 69 | + ], function($router) { |
|
| 70 | 70 | $router->get('/atom/{namespace?}', [ |
| 71 | 71 | 'as' => 'feed.atom', |
| 72 | 72 | 'uses' => 'FeedController@atomAction', |