Completed
Pull Request — master (#17)
by Phecho
42:37
created
app/Http/Controllers/FeedController.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * Generates an Atom feed of all issues.
54 54
      *
55
-     * @param \Gitamin\Models\ProjectTeam|null $namespace
55
+     * @param null|ProjectNamespace $namespace
56 56
      *
57 57
      * @return \Illuminate\Http\Response
58 58
      */
@@ -66,7 +66,6 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * Generates an Rss feed of all issues.
68 68
      *
69
-     * @param \Gitamin\Models\ProjectTeam|null $group
70 69
      *
71 70
      * @return \Illuminate\Http\Response
72 71
      */
@@ -81,7 +80,7 @@  discard block
 block discarded – undo
81 80
     /**
82 81
      * Generates an Atom feed of all issues.
83 82
      *
84
-     * @param \Gitamin\Models\ProjectTeam|null $namespace
83
+     * @param null|ProjectNamespace $namespace
85 84
      *
86 85
      * @return \Illuminate\Http\Response
87 86
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,13 +88,13 @@
 block discarded – undo
88 88
     public function feedAction(ProjectNamespace $namespace = null)
89 89
     {
90 90
         if ($namespace->exists) {
91
-            $namespace->projects->map(function ($project) {
92
-                $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) {
91
+            $namespace->projects->map(function($project) {
92
+                $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function($issue) {
93 93
                     $this->feedAddItem($issue);
94 94
                 });
95 95
             });
96 96
         } else {
97
-            Issue::visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) {
97
+            Issue::visible()->orderBy('created_at', 'desc')->get()->map(function($issue) {
98 98
                 $this->feedAddItem($issue);
99 99
             });
100 100
         }
Please login to merge, or discard this patch.
app/Http/Controllers/GroupsController.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -130,7 +130,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -13,18 +13,14 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
app/Http/Controllers/ProjectsController.php 2 patches
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,6 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * Show the form for editing the specified resource.
110 110
      *
111
-     * @param  int  $id
112 111
      * @return \Illuminate\Http\Response
113 112
      */
114 113
     public function edit($namespace, $project_path)
@@ -127,8 +126,6 @@  discard block
 block discarded – undo
127 126
     /**
128 127
      * Update the specified resource in storage.
129 128
      *
130
-     * @param  \Illuminate\Http\Request  $request
131
-     * @param  int  $id
132 129
      * @return \Illuminate\Http\Response
133 130
      */
134 131
     public function update($namespace, $project_path)
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -10,13 +10,10 @@
 block discarded – undo
10 10
 use GrahamCampbell\Binput\Facades\Binput;
11 11
 use AltThree\Validator\ValidationException;
12 12
 use Gitamin\Commands\Project\AddProjectCommand;
13
-use Gitamin\Commands\Project\RemoveProjectCommand;
14 13
 use Gitamin\Commands\Project\UpdateProjectCommand;
15 14
 use Gitamin\Models\Project;
16
-use Gitamin\Models\ProjectNamespace;
17 15
 use Gitamin\Models\Group;
18 16
 use Gitamin\Models\Tag;
19
-
20 17
 use Gitamin\Http\Controllers\Controller;
21 18
 
22 19
 class ProjectsController extends Controller
Please login to merge, or discard this patch.
app/Http/Routes/DefaultRoutes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.