mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
Apply fixes from StyleCI
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user