@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Gitamin\Composers; |
13 | 13 | |
14 | 14 | use Gitamin\Facades\Setting; |
15 | -use GrahamCampbell\Markdown\Facades\Markdown; |
|
16 | 15 | use Illuminate\Contracts\View\View; |
17 | 16 | use Illuminate\Support\Facades\Config; |
18 | 17 |
@@ -15,8 +15,6 @@ |
||
15 | 15 | use Illuminate\Routing\Controller; |
16 | 16 | use Illuminate\Support\Facades\Auth; |
17 | 17 | use Illuminate\Support\Facades\Redirect; |
18 | -use Illuminate\Support\Facades\Request; |
|
19 | -use Illuminate\Support\Facades\Session; |
|
20 | 18 | use Illuminate\Support\Facades\View; |
21 | 19 | |
22 | 20 | class AuthController 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 |
@@ -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 |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | $tags = preg_split('/ ?, ?/', $tags); |
208 | 208 | |
209 | 209 | // For every tag, do we need to create it? |
210 | - $projectTags = array_map(function ($taggable) use ($project) { |
|
210 | + $projectTags = array_map(function($taggable) use ($project) { |
|
211 | 211 | return Tag::firstOrCreate(['name' => $taggable])->id; |
212 | 212 | }, $tags); |
213 | 213 | |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | $tags = preg_split('/ ?, ?/', $tags); |
256 | 256 | |
257 | 257 | // For every tag, do we need to create it? |
258 | - $projectTags = array_map(function ($taggable) use ($project) { |
|
258 | + $projectTags = array_map(function($taggable) use ($project) { |
|
259 | 259 | return Tag::firstOrCreate(['name' => $taggable])->id; |
260 | 260 | }, $tags); |
261 | 261 |
@@ -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', |