Completed
Pull Request — master (#43)
by Phecho
04:27
created
app/Http/Routes/DefaultRoutes.php 1 patch
Spacing   +5 added lines, -5 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@indexAction',
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $router->group([
72 72
             'middleware' => 'app.hasSetting',
73 73
             'setting'    => 'app_name',
74
-        ], function ($router) {
74
+        ], function($router) {
75 75
             $router->get('/atom/{namespace?}', [
76 76
                 'as'   => 'feed.atom',
77 77
                 'uses' => 'FeedController@atomAction',
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             'middleware' => ['app.hasSetting'],
88 88
             'setting'    => 'app_name',
89 89
             'as'         => 'profile.',
90
-        ], function ($router) {
90
+        ], function($router) {
91 91
             $router->get('profile', [
92 92
                 'as'   => 'index',
93 93
                 'uses' => 'ProfilesController@indexAction',
Please login to merge, or discard this patch.
app/Http/Controllers/Dashboard/GroupsController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Http/Controllers/GroupsController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
app/Http/Controllers/Projects/IssuesController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use Gitamin\Commands\Issue\AddIssueCommand;
15 15
 use Gitamin\Http\Controllers\Controller;
16
-use Gitamin\Models\Issue;
17
-use Gitamin\Models\Project;
18 16
 use GrahamCampbell\Binput\Facades\Binput;
19 17
 use Illuminate\Support\Facades\Auth;
20 18
 use Illuminate\Support\Facades\Redirect;
Please login to merge, or discard this patch.
app/Http/Controllers/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function getProject($namespace, $path)
23 23
     {
24
-        $project = Project::leftJoin('namespaces', function ($join) {
24
+        $project = Project::leftJoin('namespaces', function($join) {
25 25
             $join->on('projects.namespace_id', '=', 'namespaces.id');
26 26
         })->where('projects.path', '=', $path)->where('namespaces.path', '=', $namespace)->first(['projects.*']);
27 27
 
Please login to merge, or discard this patch.
app/Http/Controllers/ProjectsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $tags = preg_split('/ ?, ?/', $tags);
75 75
 
76 76
         // For every tag, do we need to create it?
77
-        $projectTags = array_map(function ($taggable) use ($project) {
77
+        $projectTags = array_map(function($taggable) use ($project) {
78 78
             return Tag::firstOrCreate(['name' => $taggable])->id;
79 79
         }, $tags);
80 80
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function showAction($owner, $project_path)
96 96
     {
97
-        $project = Project::leftJoin('owners', function ($join) {
97
+        $project = Project::leftJoin('owners', function($join) {
98 98
             $join->on('projects.owner_id', '=', 'owners.id');
99 99
         })->where('projects.path', '=', $project_path)->where('owners.path', '=', $owner)->first(['projects.*']);
100 100
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function editAction($namespace, $project_path)
122 122
     {
123
-        $project = Project::leftJoin('owners', function ($join) {
123
+        $project = Project::leftJoin('owners', function($join) {
124 124
             $join->on('projects.owner_id', '=', 'owners.id');
125 125
         })->where('owners.path', '=', $project_path)->where('owners.path', '=', $namespace)->first(['projects.*']);
126 126
 
Please login to merge, or discard this patch.
app/Commands/Owner/UpdateOwnerCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Commands/Project/AddProjectCommand.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
app/Http/Controllers/Api/OwnerController.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @param \Symfony\Component\HttpFoundation\Request $request
32 32
      *
33
-     * @return \Illuminate\Http\JsonResponse
33
+     * @return \Illuminate\Http\Response
34 34
      */
35 35
     public function getTeams(Request $request)
36 36
     {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @param \Gitamin\Models\ProjectTeam $team
46 46
      *
47
-     * @return \Illuminate\Http\JsonResponse
47
+     * @return \Illuminate\Http\Response
48 48
      */
49 49
     public function getTeam(ProjectTeam $team)
50 50
     {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * Create a new project team.
56 56
      *
57
-     * @return \Illuminate\Http\JsonResponse
57
+     * @return \Illuminate\Http\Response
58 58
      */
59 59
     public function postTeams()
60 60
     {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      *
77 77
      * @param \Gitamin\Models\ProjectTeam $team
78 78
      *
79
-     * @return \Illuminate\Http\JsonResponse
79
+     * @return \Illuminate\Http\Response
80 80
      */
81 81
     public function putTeam(ProjectTeam $team)
82 82
     {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      *
100 100
      * @param \Gitamin\Models\ProjectTeam $team
101 101
      *
102
-     * @return \Illuminate\Http\JsonResponse
102
+     * @return \Illuminate\Http\Response
103 103
      */
104 104
     public function deleteTeam(ProjectTeam $team)
105 105
     {
Please login to merge, or discard this patch.