@@ -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', |
@@ -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 | |
@@ -11,9 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Gitamin\Models; |
| 13 | 13 | |
| 14 | -use Illuminate\Support\Facades\Auth; |
|
| 15 | -use Illuminate\Database\Eloquent\Model; |
|
| 16 | - |
|
| 17 | 14 | class Group extends ProjectNamespace |
| 18 | 15 | { |
| 19 | 16 | protected $table = 'namespaces'; |
@@ -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 | } |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Illuminate\Foundation\Bus\DispatchesJobs; |
| 15 | 15 | use Illuminate\Routing\Controller as BaseController; |
| 16 | 16 | use Gitamin\Models\Project; |
| 17 | -use Gitamin\Models\ProjectNamespace; |
|
| 18 | 17 | |
| 19 | 18 | |
| 20 | 19 | class Controller extends BaseController |
@@ -23,10 +23,10 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function getProject($namespace, $path) |
| 25 | 25 | { |
| 26 | - $project = Project::leftJoin('namespaces', function($join) { |
|
| 26 | + $project = Project::leftJoin('namespaces', function($join) { |
|
| 27 | 27 | $join->on('projects.namespace_id', '=', 'namespaces.id'); |
| 28 | 28 | })->where('projects.path', '=', $path)->where('namespaces.path', '=', $namespace)->first(['projects.*']); |
| 29 | 29 | |
| 30 | - return $project; |
|
| 30 | + return $project; |
|
| 31 | 31 | } |
| 32 | 32 | } |
@@ -78,7 +78,6 @@ |
||
| 78 | 78 | /** |
| 79 | 79 | * Display the specified resource. |
| 80 | 80 | * |
| 81 | - * @param int $id |
|
| 82 | 81 | * @return \Illuminate\Http\Response |
| 83 | 82 | */ |
| 84 | 83 | public function show($namespace, $project, Issue $issue) |
@@ -3,19 +3,12 @@ |
||
| 3 | 3 | namespace Gitamin\Http\Controllers\Projects; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | -use Illuminate\Foundation\Bus\DispatchesJobs; |
|
| 7 | 6 | use Illuminate\Support\Facades\Redirect; |
| 8 | 7 | use Illuminate\Support\Facades\Auth; |
| 9 | 8 | use Illuminate\Support\Facades\View; |
| 10 | 9 | use Gitamin\Http\Controllers\Controller; |
| 11 | 10 | use GrahamCampbell\Binput\Facades\Binput; |
| 12 | 11 | use Gitamin\Commands\Issue\AddIssueCommand; |
| 13 | -use Gitamin\Commands\Issue\RemoveIssueCommand; |
|
| 14 | -use Gitamin\Commands\Issue\UpdateIssueCommand; |
|
| 15 | -use Gitamin\Models\Project; |
|
| 16 | -use Gitamin\Models\ProjectNamespace; |
|
| 17 | -use Gitamin\Models\Group; |
|
| 18 | -use Gitamin\Models\Tag; |
|
| 19 | 12 | use Gitamin\Models\Issue; |
| 20 | 13 | |
| 21 | 14 | class IssuesController extends Controller |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $project = $this->getProject($namespace, $project_path); |
| 60 | 60 | $issueData = Binput::get('issue'); |
| 61 | 61 | |
| 62 | - try { |
|
| 62 | + try { |
|
| 63 | 63 | $issueData['author_id'] = Auth::user()->id; |
| 64 | 64 | $issueData['project_id'] = $project->id; |
| 65 | 65 | $issue = $this->dispatchFromArray(AddIssueCommand::class, $issueData); |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | { |
| 126 | 126 | $statuses = trans('gitamin.issues.status'); |
| 127 | 127 | |
| 128 | - return $statuses[rand(0,2)]; |
|
| 128 | + return $statuses[rand(0, 2)]; |
|
| 129 | 129 | //return $statuses[$this->state]; |
| 130 | 130 | } |
| 131 | 131 | |