Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2022-01-10 16:14:26 +00:00
parent 7ff788b323
commit b40e9a950d
6 changed files with 14 additions and 15 deletions
-1
View File
@@ -14,7 +14,6 @@
namespace App\Console\Commands;
use App\Models\History;
use App\Models\PrivateMessage;
use App\Models\Warning;
use App\Notifications\UserPreWarning;
use Carbon\Carbon;
-1
View File
@@ -14,7 +14,6 @@
namespace App\Console\Commands;
use App\Models\History;
use App\Models\PrivateMessage;
use App\Models\Warning;
use App\Notifications\UserWarning;
use Carbon\Carbon;
+5 -4
View File
@@ -3,7 +3,6 @@
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
@@ -24,7 +23,8 @@ class UserBan extends Notification
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @param mixed $notifiable
*
* @return array
*/
public function via($notifiable)
@@ -35,14 +35,15 @@ class UserBan extends Notification
/**
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @param mixed $notifiable
*
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
$discordUrl = config('other.discord-link');
return (new MailMessage)
return (new MailMessage())
->greeting('You have been banned 😭')
->line('You have been banned from '.config('other.title').' for '.$this->ban->ban_reason)
->action('Need Support?', $discordUrl)
+7 -5
View File
@@ -3,7 +3,6 @@
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
@@ -24,7 +23,8 @@ class UserMaxWarningsReached extends Notification
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @param mixed $notifiable
*
* @return array
*/
public function via($notifiable)
@@ -35,14 +35,15 @@ class UserMaxWarningsReached extends Notification
/**
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @param mixed $notifiable
*
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
$profileUrl = \href_profile($this->user);
return (new MailMessage)
return (new MailMessage())
->greeting('Max Hit and Run Warnings Reached!')
->line('You have hit the limit on active Hit and Run Warnings! Your download privilliges have been revoked!')
->action('View Unsatfied Torrents to seed off your warnings or wait until they expire!', $profileUrl)
@@ -52,7 +53,8 @@ class UserMaxWarningsReached extends Notification
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @param mixed $notifiable
*
* @return array
*/
public function toArray($notifiable)
+1 -2
View File
@@ -5,7 +5,6 @@ namespace App\Notifications;
use App\Models\Torrent;
use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
@@ -35,7 +34,7 @@ class UserPreWarning extends Notification
{
$profileUrl = \href_profile($this->user);
return (new MailMessage)
return (new MailMessage())
->greeting('Hit and Run Pre Warning!')
->line('You have revieved a hit and run pre warning on one or more torrents!')
->action('View Unsatfied Torrents to seed off your warnings or wait until they expire!', $profileUrl)
+1 -2
View File
@@ -5,7 +5,6 @@ namespace App\Notifications;
use App\Models\Torrent;
use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
@@ -35,7 +34,7 @@ class UserWarning extends Notification
{
$profileUrl = \href_profile($this->user);
return (new MailMessage)
return (new MailMessage())
->greeting('Hit and Run Warning!')
->line('You have revieved a hit and run warning on one or more torrents!')
->action('View Unsatfied Torrents to seed off your warnings or wait until they expire!', $profileUrl)