Use more standardized phpcs
This commit is contained in:
parent
a043071e3c
commit
c449ca5155
493 changed files with 1116 additions and 3903 deletions
|
@ -29,9 +29,6 @@ class AccountCreated extends Notification implements ShouldQueue
|
|||
|
||||
/**
|
||||
* Create a new notification instance.
|
||||
*
|
||||
* @param \Pterodactyl\Models\User $user
|
||||
* @param string|null $token
|
||||
*/
|
||||
public function __construct(User $user, string $token = null)
|
||||
{
|
||||
|
@ -43,6 +40,7 @@ class AccountCreated extends Notification implements ShouldQueue
|
|||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
|
@ -54,17 +52,18 @@ class AccountCreated extends Notification implements ShouldQueue
|
|||
* Get the mail representation of the notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
*
|
||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||
*/
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
$message = (new MailMessage)
|
||||
$message = (new MailMessage())
|
||||
->greeting('Hello ' . $this->user->name . '!')
|
||||
->line('You are receiving this email because an account has been created for you on ' . config('app.name') . '.')
|
||||
->line('Username: ' . $this->user->username)
|
||||
->line('Email: ' . $this->user->email);
|
||||
|
||||
if (! is_null($this->token)) {
|
||||
if (!is_null($this->token)) {
|
||||
return $message->action('Setup Your Account', url('/auth/password/reset/' . $this->token . '?email=' . urlencode($this->user->email)));
|
||||
}
|
||||
|
||||
|
|
|
@ -25,8 +25,6 @@ class AddedToServer extends Notification implements ShouldQueue
|
|||
|
||||
/**
|
||||
* Create a new notification instance.
|
||||
*
|
||||
* @param array $server
|
||||
*/
|
||||
public function __construct(array $server)
|
||||
{
|
||||
|
@ -37,6 +35,7 @@ class AddedToServer extends Notification implements ShouldQueue
|
|||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
|
@ -48,11 +47,12 @@ class AddedToServer extends Notification implements ShouldQueue
|
|||
* Get the mail representation of the notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
*
|
||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||
*/
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
return (new MailMessage)
|
||||
return (new MailMessage())
|
||||
->greeting('Hello ' . $this->server->user . '!')
|
||||
->line('You have been added as a subuser for the following server, allowing you certain control over the server.')
|
||||
->line('Server Name: ' . $this->server->name)
|
||||
|
|
|
@ -25,7 +25,7 @@ class MailTested extends Notification
|
|||
|
||||
public function toMail()
|
||||
{
|
||||
return (new MailMessage)
|
||||
return (new MailMessage())
|
||||
->subject('Pterodactyl Test Message')
|
||||
->greeting('Hello ' . $this->user->name . '!')
|
||||
->line('This is a test of the Pterodactyl mail system. You\'re good to go!');
|
||||
|
|
|
@ -25,8 +25,6 @@ class RemovedFromServer extends Notification implements ShouldQueue
|
|||
|
||||
/**
|
||||
* Create a new notification instance.
|
||||
*
|
||||
* @param array $server
|
||||
*/
|
||||
public function __construct(array $server)
|
||||
{
|
||||
|
@ -37,6 +35,7 @@ class RemovedFromServer extends Notification implements ShouldQueue
|
|||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
|
@ -48,11 +47,12 @@ class RemovedFromServer extends Notification implements ShouldQueue
|
|||
* Get the mail representation of the notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
*
|
||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||
*/
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
return (new MailMessage)
|
||||
return (new MailMessage())
|
||||
->error()
|
||||
->greeting('Hello ' . $this->server->user . '.')
|
||||
->line('You have been removed as a subuser for the following server.')
|
||||
|
|
|
@ -39,6 +39,7 @@ class SendPasswordReset extends Notification implements ShouldQueue
|
|||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
|
@ -50,11 +51,12 @@ class SendPasswordReset extends Notification implements ShouldQueue
|
|||
* Get the mail representation of the notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
*
|
||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||
*/
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
return (new MailMessage)
|
||||
return (new MailMessage())
|
||||
->subject('Reset Password')
|
||||
->line('You are receiving this email because we received a password reset request for your account.')
|
||||
->action('Reset Password', url('/auth/password/reset/' . $this->token . '?email=' . urlencode($notifiable->email)))
|
||||
|
|
|
@ -60,7 +60,7 @@ class ServerInstalled extends Notification implements ShouldQueue, ReceivesEvent
|
|||
*/
|
||||
public function toMail()
|
||||
{
|
||||
return (new MailMessage)
|
||||
return (new MailMessage())
|
||||
->greeting('Hello ' . $this->user->username . '.')
|
||||
->line('Your server has finished installing and is now ready for you to use.')
|
||||
->line('Server Name: ' . $this->server->name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue