@@ -87,7 +87,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -32,10 +32,10 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * Show the form or adding a new resource. |
|
36 | - * |
|
37 | - * return \Illuminate\Http\Response |
|
38 | - */ |
|
35 | + * Show the form or adding a new resource. |
|
36 | + * |
|
37 | + * return \Illuminate\Http\Response |
|
38 | + */ |
|
39 | 39 | public function new() |
40 | 40 | { |
41 | 41 | $teamId = 1; |
@@ -69,7 +69,7 @@ |
||
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 |
@@ -29,7 +29,7 @@ |
||
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', |
@@ -29,7 +29,7 @@ |
||
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', |
@@ -29,7 +29,7 @@ |
||
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', |
@@ -29,7 +29,7 @@ |
||
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', |
@@ -29,7 +29,7 @@ |
||
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', |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace Gitamin\Http\Controllers\Projects; |
4 | 4 | |
5 | 5 | use Illuminate\Http\Request; |
6 | - |
|
7 | -use Gitamin\Http\Requests; |
|
8 | 6 | use Gitamin\Http\Controllers\Controller; |
9 | 7 | |
10 | 8 | class ProjectController extends Controller |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace Gitamin\Http\Controllers\Projects; |
4 | 4 | |
5 | 5 | use Illuminate\Http\Request; |
6 | - |
|
7 | -use Gitamin\Http\Requests; |
|
8 | 6 | use Gitamin\Http\Controllers\Controller; |
9 | 7 | |
10 | 8 | class ProjectController extends Controller |