@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $this->mailer->queue([ |
| 55 | 55 | 'html' => 'emails.users.invite-html', |
| 56 | 56 | 'text' => 'emails.users.invite-text', |
| 57 | - ], $mail, function (Message $message) use ($mail) { |
|
| 57 | + ], $mail, function(Message $message) use ($mail) { |
|
| 58 | 58 | $message->to($mail['email'])->subject($mail['subject']); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * Create a new send subscriber verification email handler. |
| 29 | 29 | * |
| 30 | - * @param \Illuminate\Contracts\Mail\Mailer $mailer |
|
| 30 | + * @param MailQueue $mailer |
|
| 31 | 31 | * |
| 32 | 32 | * @return void |
| 33 | 33 | */ |
@@ -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', |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | parent::boot(); |
| 74 | 74 | |
| 75 | - self::creating(function ($user) { |
|
| 75 | + self::creating(function($user) { |
|
| 76 | 76 | if (!$user->api_key) { |
| 77 | 77 | $user->api_key = self::generateApiKey(); |
| 78 | 78 | } |
@@ -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 |
@@ -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 | |
@@ -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', |
@@ -52,12 +52,12 @@ |
||
| 52 | 52 | 'setting' => 'app_name', |
| 53 | 53 | 'as' => 'groups.', |
| 54 | 54 | ], function ($router) { |
| 55 | - $router->get('{namespace}', [ |
|
| 55 | + $router->get('{namespace}', [ |
|
| 56 | 56 | 'as' => 'group_show', |
| 57 | 57 | 'uses' => 'GroupsController@show', |
| 58 | 58 | ])->where('namespace', '[a-zA-z.0-9_\-]+'); |
| 59 | 59 | |
| 60 | - $router->get('{namespace}/edit', [ |
|
| 60 | + $router->get('{namespace}/edit', [ |
|
| 61 | 61 | 'as' => 'group_edit', |
| 62 | 62 | 'uses' => 'GroupsController@edit', |
| 63 | 63 | ])->where('namespace', '[a-zA-z.0-9_\-]+'); |
@@ -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', |
@@ -55,12 +55,12 @@ |
||
| 55 | 55 | 'setting' => 'app_name', |
| 56 | 56 | 'as' => 'projects.', |
| 57 | 57 | ], function ($router) { |
| 58 | - $router->get('{namespace}/{project}', [ |
|
| 58 | + $router->get('{namespace}/{project}', [ |
|
| 59 | 59 | 'as' => 'project_show', |
| 60 | 60 | 'uses' => 'ProjectsController@show', |
| 61 | 61 | ])->where('namespace', '[a-zA-z.0-9_\-]+')->where('project', '[a-zA-z.0-9_\-]+'); |
| 62 | 62 | |
| 63 | - $router->get('{namespace}/{project}/edit', [ |
|
| 63 | + $router->get('{namespace}/{project}/edit', [ |
|
| 64 | 64 | 'as' => 'project_edit', |
| 65 | 65 | 'uses' => 'ProjectsController@edit', |
| 66 | 66 | ])->where('namespace', '[a-zA-z.0-9_\-]+')->where('project', '[a-zA-z.0-9_\-]+'); |
@@ -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', |