@@ -32,7 +32,7 @@ discard block |
||
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 |
||
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', |
@@ -88,13 +88,13 @@ |
||
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 | } |
@@ -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 |