@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | public function map(Router $router) |
65 | 65 | { |
66 | - $router->group(['namespace' => $this->namespace], function (Router $router) { |
|
66 | + $router->group(['namespace' => $this->namespace], function(Router $router) { |
|
67 | 67 | foreach (glob(app_path('Http//Routes').'/*.php') as $file) { |
68 | 68 | $this->app->make('Gitamin\\Http\\Routes\\'.basename($file, '.php'))->map($router); |
69 | 69 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | 'team_id' => $command->team_id, |
55 | 55 | ]; |
56 | 56 | |
57 | - return array_filter($params, function ($val) { |
|
57 | + return array_filter($params, function($val) { |
|
58 | 58 | return $val !== null; |
59 | 59 | }); |
60 | 60 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | 'team_id' => $command->team_id, |
55 | 55 | ]; |
56 | 56 | |
57 | - return array_filter($params, function ($val) { |
|
57 | + return array_filter($params, function($val) { |
|
58 | 58 | return $val !== null; |
59 | 59 | }); |
60 | 60 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | 'middleware' => ['app.hasSetting', 'guest'], |
30 | 30 | 'setting' => 'app_name', |
31 | 31 | 'as' => 'signup.', |
32 | - ], function ($router) { |
|
32 | + ], function($router) { |
|
33 | 33 | $router->get('signup/invite/{code}', [ |
34 | 34 | 'as' => 'invite', |
35 | 35 | 'uses' => 'SignupController@getSignup', |
@@ -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 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | 'middleware' => ['app.hasSetting', 'guest'], |
30 | 30 | 'setting' => 'app_name', |
31 | 31 | 'as' => 'signup.', |
32 | - ], function ($router) { |
|
32 | + ], function($router) { |
|
33 | 33 | $router->get('signup/invite/{code}', [ |
34 | 34 | 'as' => 'invite', |
35 | 35 | 'uses' => 'SignupController@getSignup', |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | 'setting' => 'app_name', |
33 | 33 | 'prefix' => 'projects', |
34 | 34 | 'as' => 'projects.', |
35 | - ], function ($router) { |
|
35 | + ], function($router) { |
|
36 | 36 | $router->get('/', [ |
37 | 37 | 'as' => 'index', |
38 | 38 | 'uses' => 'ProjectsController@index', |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | 'middleware' => ['app.hasSetting'], |
55 | 55 | 'setting' => 'app_name', |
56 | 56 | 'as' => 'projects.', |
57 | - ], function ($router) { |
|
57 | + ], function($router) { |
|
58 | 58 | $router->get('{namespace}/{project}', [ |
59 | 59 | 'as' => 'project_show', |
60 | 60 | 'uses' => 'ProjectsController@show', |
@@ -52,12 +52,12 @@ discard block |
||
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_\-]+'); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | 'uses' => 'Projects\\IssuesController@showAction', |
91 | 91 | ])->where('owner_path', '[a-zA-z.0-9_\-]+')->where('project_path', '[a-zA-z.0-9_\-]+'); |
92 | 92 | |
93 | - //edit |
|
93 | + //edit |
|
94 | 94 | $router->get('{owner_path}/{project_path}/issues/{issue}/edit', [ |
95 | 95 | 'as' => 'issue_edit', |
96 | 96 | 'uses' => 'Projects\\IssuesController@editAction', |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | 'setting' => 'app_name', |
33 | 33 | 'prefix' => 'projects', |
34 | 34 | 'as' => 'projects.', |
35 | - ], function ($router) { |
|
35 | + ], function($router) { |
|
36 | 36 | $router->get('/', [ |
37 | 37 | 'as' => 'index', |
38 | 38 | 'uses' => 'ProjectsController@index', |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | 'middleware' => ['app.hasSetting'], |
55 | 55 | 'setting' => 'app_name', |
56 | 56 | 'as' => 'projects.', |
57 | - ], function ($router) { |
|
57 | + ], function($router) { |
|
58 | 58 | $router->get('{namespace}/{project}', [ |
59 | 59 | 'as' => 'project_show', |
60 | 60 | 'uses' => 'ProjectsController@show', |
@@ -52,12 +52,12 @@ |
||
52 | 52 | 'setting' => 'app_name', |
53 | 53 | 'as' => 'groups.', |
54 | 54 | ], function ($router) { |
55 | - $router->get('{owner_path}', [ |
|
55 | + $router->get('{owner_path}', [ |
|
56 | 56 | 'as' => 'group_show', |
57 | 57 | 'uses' => 'GroupsController@showAction', |
58 | 58 | ])->where('owner_path', '[a-zA-z.0-9_\-]+'); |
59 | 59 | |
60 | - $router->get('{owner_path}/edit', [ |
|
60 | + $router->get('{owner_path}/edit', [ |
|
61 | 61 | 'as' => 'group_edit', |
62 | 62 | 'uses' => 'GroupsController@editAction', |
63 | 63 | ])->where('owner_path', '[a-zA-z.0-9_\-]+'); |
@@ -29,7 +29,6 @@ |
||
29 | 29 | |
30 | 30 | use AltThree\Validator\ValidatingTrait; |
31 | 31 | use Illuminate\Database\Eloquent\Model; |
32 | -use Illuminate\Support\Facades\Auth; |
|
33 | 32 | |
34 | 33 | class Owner extends Model |
35 | 34 | { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | $project = Project::where('owner_id', '=', $this->id)->where('path', '=', $path)->first($columns); |
100 | 100 | |
101 | - if (! $project) { |
|
101 | + if (!$project) { |
|
102 | 102 | throw new ModelNotFoundException(); |
103 | 103 | } |
104 | 104 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | { |
119 | 119 | $owner = static::where('path', $path)->first($columns); |
120 | 120 | |
121 | - if (! $owner) { |
|
121 | + if (!$owner) { |
|
122 | 122 | throw new ModelNotFoundException(); |
123 | 123 | } |
124 | 124 |