From d940d1ecb793b97221d846e6588efb9db1e51e40 Mon Sep 17 00:00:00 2001 From: HDVinnie Date: Tue, 18 Dec 2018 21:43:51 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Console/Commands/AutoNerdStat.php | 25 ++++++++++++------------- app/Helpers/Helpers.php | 1 - app/Http/Controllers/UserController.php | 2 +- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/app/Console/Commands/AutoNerdStat.php b/app/Console/Commands/AutoNerdStat.php index 2fe719c6af..835935f029 100644 --- a/app/Console/Commands/AutoNerdStat.php +++ b/app/Console/Commands/AutoNerdStat.php @@ -18,7 +18,6 @@ use App\User; use App\Torrent; use App\Warning; -use Carbon\Carbon; use Illuminate\Console\Command; use App\Repositories\ChatRepository; @@ -89,18 +88,18 @@ public function handle() // Select A Random Nerd Stat $statArray = [ - "In The Last 24 Hours {$logins} Unique Users Have Logged Into ".config('other.title')."!", - "In The Last 24 Hours {$uploads} Torrents Have Been Uploaded To ".config('other.title')."!", - "In The Last 24 Hours {$users} Users Have Registered To ".config('other.title')."!", - "There Are Currently {$fl} Freeleech Torrents On ".config('other.title')."!", - "There Are Currently {$du} DoubleUpload Torrents On ".config('other.title')."!", - "Currently {$seeders->name} Is The Best Seeded Torrent On ".config('other.title')."!", - "Currently {$leechers->name} Is The Most Leeched Torrent On ".config('other.title')."!", - "Currently {$snatched->name} Is The Most Snatched Torrent On ".config('other.title')."!", - "Currently {$banker->username} Is The Top BON Holder On ".config('other.title')."!", - "Currently There Is {$peers} Peers On ".config('other.title')."!", - "In The Last 24 Hours {$bans} Users Have Been Banned From ".config('other.title')."!", - "In The Last 24 Hours {$warnings} Hit and Run Warnings Have Been Issued On ".config('other.title')."!", + "In The Last 24 Hours {$logins} Unique Users Have Logged Into ".config('other.title').'!', + "In The Last 24 Hours {$uploads} Torrents Have Been Uploaded To ".config('other.title').'!', + "In The Last 24 Hours {$users} Users Have Registered To ".config('other.title').'!', + "There Are Currently {$fl} Freeleech Torrents On ".config('other.title').'!', + "There Are Currently {$du} DoubleUpload Torrents On ".config('other.title').'!', + "Currently {$seeders->name} Is The Best Seeded Torrent On ".config('other.title').'!', + "Currently {$leechers->name} Is The Most Leeched Torrent On ".config('other.title').'!', + "Currently {$snatched->name} Is The Most Snatched Torrent On ".config('other.title').'!', + "Currently {$banker->username} Is The Top BON Holder On ".config('other.title').'!', + "Currently There Is {$peers} Peers On ".config('other.title').'!', + "In The Last 24 Hours {$bans} Users Have Been Banned From ".config('other.title').'!', + "In The Last 24 Hours {$warnings} Hit and Run Warnings Have Been Issued On ".config('other.title').'!', config('other.title')." Birthday Is {$bday}!", config('other.title').' Is King!', ]; diff --git a/app/Helpers/Helpers.php b/app/Helpers/Helpers.php index 83a1364659..09b744ced6 100644 --- a/app/Helpers/Helpers.php +++ b/app/Helpers/Helpers.php @@ -11,7 +11,6 @@ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0 * @author HDVinnie */ - if (! function_exists('appurl')) { function appurl() { diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 70c7bf9d05..6657ab8166 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -808,7 +808,7 @@ public function downloadHistoryTorrents($username, $id) } /** - * Get A Users Graveyard Resurrections + * Get A Users Graveyard Resurrections. * * @param $username * @param $id