Completed
Pull Request — master (#11)
by Phecho
04:11
created
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::where('visible', '>=', $issueVisiblity)->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('scheduled_at', 'desc')->orderBy('created_at', 'desc')->get()->groupBy(function (Issue $issue) use ($dateTimeZone) {
64
+        ])->orderBy('scheduled_at', 'desc')->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/Http/Routes/ApiRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             'namespace'  => 'Api',
30 30
             'prefix'     => 'api/v1',
31 31
             'middleware' => ['accept:application/json', 'timezone', 'auth.api.optional'],
32
-        ], function ($router) {
32
+        ], function($router) {
33 33
             // General
34 34
             $router->get('ping', 'GeneralController@ping');
35 35
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $router->get('issues/{issue}', 'IssueController@getIssue');
45 45
 
46 46
             // Authorization Required
47
-            $router->group(['middleware' => 'auth.api'], function ($router) {
47
+            $router->group(['middleware' => 'auth.api'], function($router) {
48 48
                 $router->get('subscribers', 'SubscriberController@getSubscribers');
49 49
 
50 50
                 $router->post('projects', 'ProjectController@postProjects');
Please login to merge, or discard this patch.
app/Http/Routes/DashboardRoutes.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 'as'     => 'activities.',
92 92
                 'prefix' => 'activities',
93 93
                 ], function ($router) {
94
-                   $router->get('/', [
94
+                    $router->get('/', [
95 95
                     'as'   => 'index',
96 96
                     'uses' => 'ActivityController@showActivities',
97 97
                 ]);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                 'as'     => 'milestones.',
103 103
                 'prefix' => 'milestones',
104 104
                 ], function ($router) {
105
-                   $router->get('/', [
105
+                    $router->get('/', [
106 106
                     'as'   => 'index',
107 107
                     'uses' => 'MilestoneController@showMilestones',
108 108
                 ]);
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 'as'     => 'merge_requests.',
114 114
                 'prefix' => 'merge_requests',
115 115
                 ], function ($router) {
116
-                   $router->get('/', [
116
+                    $router->get('/', [
117 117
                     'as'   => 'index',
118 118
                     'uses' => 'MergeRequestController@showMergeRequests',
119 119
                 ]);
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 'as'     => 'snippets.',
125 125
                 'prefix' => 'snippets',
126 126
                 ], function ($router) {
127
-                   $router->get('/', [
127
+                    $router->get('/', [
128 128
                     'as'   => 'index',
129 129
                     'uses' => 'SnippetController@showSnippets',
130 130
                 ]);
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             'prefix'     => 'dashboard',
31 31
             'namespace'  => 'Dashboard',
32 32
             'as'         => 'dashboard.',
33
-        ], function ($router) {
33
+        ], function($router) {
34 34
             // Dashboard
35 35
             $router->get('/', [
36 36
                 'as'   => 'index',
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             $router->group([
42 42
                 'as'     => 'projects.',
43 43
                 'prefix' => 'projects',
44
-            ], function ($router) {
44
+            ], function($router) {
45 45
                 $router->get('/', [
46 46
                     'as'   => 'index',
47 47
                     'uses' => 'ProjectController@showProjects',
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             $router->group([
68 68
                 'as'     => 'teams.',
69 69
                 'prefix' => 'teams',
70
-            ], function ($router) {
70
+            ], function($router) {
71 71
                 $router->get('/', [
72 72
                     'as'   => 'index',
73 73
                     'uses' => 'TeamController@showProjectTeams',
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             $router->group([
91 91
                 'as'     => 'activities.',
92 92
                 'prefix' => 'activities',
93
-                ], function ($router) {
93
+                ], function($router) {
94 94
                    $router->get('/', [
95 95
                     'as'   => 'index',
96 96
                     'uses' => 'ActivityController@showActivities',
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $router->group([
102 102
                 'as'     => 'milestones.',
103 103
                 'prefix' => 'milestones',
104
-                ], function ($router) {
104
+                ], function($router) {
105 105
                    $router->get('/', [
106 106
                     'as'   => 'index',
107 107
                     'uses' => 'MilestoneController@showMilestones',
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             $router->group([
113 113
                 'as'     => 'merge_requests.',
114 114
                 'prefix' => 'merge_requests',
115
-                ], function ($router) {
115
+                ], function($router) {
116 116
                    $router->get('/', [
117 117
                     'as'   => 'index',
118 118
                     'uses' => 'MergeRequestController@showMergeRequests',
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             $router->group([
124 124
                 'as'     => 'snippets.',
125 125
                 'prefix' => 'snippets',
126
-                ], function ($router) {
126
+                ], function($router) {
127 127
                    $router->get('/', [
128 128
                     'as'   => 'index',
129 129
                     'uses' => 'SnippetController@showSnippets',
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             $router->group([
135 135
                 'as'     => 'issues.',
136 136
                 'prefix' => 'issues',
137
-            ], function ($router) {
137
+            ], function($router) {
138 138
                 $router->get('/', [
139 139
                     'as'   => 'index',
140 140
                     'uses' => 'IssueController@showIssues',
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             $router->group([
160 160
                 'as'     => 'subscribers.',
161 161
                 'prefix' => 'subscribers',
162
-            ], function ($router) {
162
+            ], function($router) {
163 163
                 $router->get('/', [
164 164
                     'as'   => 'index',
165 165
                     'uses' => 'SubscriberController@showSubscribers',
@@ -176,13 +176,13 @@  discard block
 block discarded – undo
176 176
             $router->group([
177 177
                 'as'     => 'group.',
178 178
                 'prefix' => 'group',
179
-            ], function ($router) {
179
+            ], function($router) {
180 180
                 $router->get('/', [
181 181
                     'as'   => 'index',
182 182
                     'uses' => 'GroupController@showGroupView',
183 183
                 ]);
184 184
 
185
-                $router->group(['middleware' => 'admin'], function ($router) {
185
+                $router->group(['middleware' => 'admin'], function($router) {
186 186
                     $router->get('add', [
187 187
                         'as'   => 'add',
188 188
                         'uses' => 'GroupController@showAddGroupMemberView',
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
             $router->group([
204 204
                 'as'     => 'settings.',
205 205
                 'prefix' => 'settings',
206
-            ], function ($router) {
206
+            ], function($router) {
207 207
                 $router->get('general', [
208 208
                     'as'   => 'general',
209 209
                     'uses' => 'SettingsController@showGeneralView',
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
             });
229 229
 
230 230
             // User Settings
231
-            $router->group(['prefix' => 'user'], function ($router) {
231
+            $router->group(['prefix' => 'user'], function($router) {
232 232
                 $router->get('/', [
233 233
                     'as'   => 'user',
234 234
                     'uses' => 'UserController@showUser',
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
              * Internal API.
242 242
              * This should only be used for making requests within the dashboard.
243 243
              */
244
-            $router->group(['prefix' => 'api'], function ($router) {
244
+            $router->group(['prefix' => 'api'], function($router) {
245 245
                 $router->post('projects/teams/order', 'ApiController@postUpdateProjectTeamOrder');
246 246
                 $router->post('projects/order', 'ApiController@postUpdateProjectOrder');
247 247
                 $router->post('projects/{project}', 'ApiController@postUpdateProject');
Please login to merge, or discard this patch.
app/Http/Routes/InstallRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function map(Registrar $router)
27 27
     {
28
-        $router->group(['middleware' => ['app.isInstalled', 'localize']], function ($router) {
28
+        $router->group(['middleware' => ['app.isInstalled', 'localize']], function($router) {
29 29
             $router->controller('install', 'InstallController');
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
app/Http/Routes/RepositoryRoutes.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 'uses' => 'Dashboard\\TeamController@showProjectTeam',
45 45
             ]);
46 46
 
47
-             $router->get('{repo}/issues', [
47
+                $router->get('{repo}/issues', [
48 48
                 'as'   => 'repo_tree',
49 49
                 'uses' => 'Dashboard\\IssueController@showIndex',
50 50
             ])->where('repo', '.*');
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 'uses' => 'RepositoryController@showRepo',
55 55
             ])->where('projectTeam', '[A-Za-z]+');
56 56
 
57
-             $router->get('{repo}/tree/{path}/', [
57
+                $router->get('{repo}/tree/{path}/', [
58 58
                 'as'   => 'repo_tree',
59 59
                 'uses' => 'RepositoryController@showTree',
60 60
             ])->where('repo', '.*')->where('path', '.*');
Please login to merge, or discard this 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/SignupRoutes.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/SubscribeRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
             'middleware' => ['app.hasSetting', 'localize'],
30 30
             'setting'    => 'app_name',
31 31
             'as'         => 'subscribe.',
32
-        ], function ($router) {
33
-            $router->group(['middleware' => 'app.subscribers'], function ($router) {
32
+        ], function($router) {
33
+            $router->group(['middleware' => 'app.subscribers'], function($router) {
34 34
                 $router->get('subscribe', [
35 35
                     'as'   => 'subscribe',
36 36
                     'uses' => 'SubscribeController@showSubscribe',
Please login to merge, or discard this patch.
app/Models/Invite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         parent::boot();
40 40
 
41
-        self::creating(function ($invite) {
41
+        self::creating(function($invite) {
42 42
             if (!$invite->code) {
43 43
                 $invite->code = self::generateInviteCode();
44 44
             }
Please login to merge, or discard this patch.
app/Models/Project.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
      */
175 175
     public function getTagsListAttribute()
176 176
     {
177
-        $tags = $this->tags->map(function ($tag) {
177
+        $tags = $this->tags->map(function($tag) {
178 178
             return $tag->name;
179 179
         });
180 180
 
Please login to merge, or discard this patch.