@@ -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_\-]+'); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $allIssues = Issue::whereBetween('created_at', [ |
| 62 | 62 | $startDate->copy()->subDays($daysToShow)->format('Y-m-d').' 00:00:00', |
| 63 | 63 | $startDate->format('Y-m-d').' 23:59:59', |
| 64 | - ])->orderBy('created_at', 'desc')->get()->groupBy(function (Issue $issue) use ($dateTimeZone) { |
|
| 64 | + ])->orderBy('created_at', 'desc')->get()->groupBy(function(Issue $issue) use ($dateTimeZone) { |
|
| 65 | 65 | // If it's scheduled, get the scheduled at date. |
| 66 | 66 | if ($issue->is_scheduled) { |
| 67 | 67 | return (new Date($issue->scheduled_at)) |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | // Sort the array so it takes into account the added days |
| 85 | - $allIssues = $allIssues->sortBy(function ($value, $key) { |
|
| 85 | + $allIssues = $allIssues->sortBy(function($value, $key) { |
|
| 86 | 86 | return strtotime($key); |
| 87 | 87 | }, SORT_REGULAR, true)->all(); |
| 88 | 88 | |
@@ -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 | { |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Gitamin\Http\Controllers; |
| 13 | 13 | |
| 14 | 14 | use Gitamin\Facades\Setting; |
| 15 | -use Gitamin\Models\Project; |
|
| 16 | 15 | use Gitter\Client; |
| 17 | 16 | use Illuminate\Routing\Controller; |
| 18 | 17 | use Illuminate\Support\Facades\View; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Gitamin\Http\Controllers; |
| 13 | 13 | |
| 14 | 14 | use Gitamin\Facades\Setting; |
| 15 | -use Gitamin\Models\Project; |
|
| 16 | 15 | use Gitter\Client; |
| 17 | 16 | use Illuminate\Routing\Controller; |
| 18 | 17 | use Illuminate\Support\Facades\View; |
@@ -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 | */ |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | /** |
| 66 | 66 | * Create an add project owner command instance. |
| 67 | 67 | * |
| 68 | - * @param \Gitamin\Models\ProjectNamepsace $owner |
|
| 68 | + * @param Owner $owner |
|
| 69 | 69 | * @param string $name |
| 70 | 70 | * @param string $path |
| 71 | 71 | * @param int $user_id |
@@ -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 | */ |