Completed
Pull Request — master (#85)
by Phecho
03:22
created
app/Http/Controllers/DashboardController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $allIssues = Issue::whereBetween('created_at', [
88 88
             $this->startDate->copy()->subDays(30)->format('Y-m-d').' 00:00:00',
89 89
             $this->startDate->format('Y-m-d').' 23:59:59',
90
-        ])->orderBy('created_at', 'desc')->get()->groupBy(function (Issue $issue) {
90
+        ])->orderBy('created_at', 'desc')->get()->groupBy(function(Issue $issue) {
91 91
             return (new Date($issue->created_at))
92 92
                 ->setTimezone($this->dateTimeZone)->toDateString();
93 93
         });
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         }
103 103
 
104 104
         // Sort the array so it takes into account the added days
105
-        $allIssues = $allIssues->sortBy(function ($value, $key) {
105
+        $allIssues = $allIssues->sortBy(function($value, $key) {
106 106
             return strtotime($key);
107 107
         }, SORT_REGULAR, false);
108 108
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $allSubscribers = Subscriber::whereBetween('created_at', [
120 120
             $this->startDate->copy()->subDays(30)->format('Y-m-d').' 00:00:00',
121 121
             $this->startDate->format('Y-m-d').' 23:59:59',
122
-        ])->orderBy('created_at', 'desc')->get()->groupBy(function (Subscriber $issue) {
122
+        ])->orderBy('created_at', 'desc')->get()->groupBy(function(Subscriber $issue) {
123 123
             return (new Date($issue->created_at))
124 124
                 ->setTimezone($this->dateTimeZone)->toDateString();
125 125
         });
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         }
135 135
 
136 136
         // Sort the array so it takes into account the added days
137
-        $allSubscribers = $allSubscribers->sortBy(function ($value, $key) {
137
+        $allSubscribers = $allSubscribers->sortBy(function($value, $key) {
138 138
             return strtotime($key);
139 139
         }, SORT_REGULAR, false);
140 140
 
Please login to merge, or discard this patch.
app/Http/Controllers/ProjectsController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Routes/HelpRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
app/Http/Routes/ProjectsRoutes.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
app/Http/Routes/GroupsRoutes.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
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_\-]+');
Please login to merge, or discard this patch.
app/Http/Controllers/ExploreController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Models/Owner.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
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
 {
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.