From 03120c99e814c5c8ff4596067e8784f897015747 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 11 Jan 2018 15:53:51 +0100 Subject: [PATCH] Use Carbon facade and not Carbon directly --- Changelog | 1 + nntmux/Binaries.php | 2 +- nntmux/Books.php | 2 +- nntmux/Games.php | 2 +- nntmux/Genres.php | 2 +- nntmux/Groups.php | 2 +- nntmux/Movie.php | 2 +- nntmux/Music.php | 2 +- nntmux/NameFixer.php | 2 +- nntmux/ReleaseComments.php | 2 +- nntmux/Releases.php | 2 +- nntmux/XXX.php | 2 +- nntmux/config/openssl.cnf | 1 - nntmux/libraries/Forking.php | 2 +- nntmux/processing/Videos.php | 2 +- nntmux/utility/Time.php | 2 +- 16 files changed, 15 insertions(+), 15 deletions(-) delete mode 100755 nntmux/config/openssl.cnf diff --git a/Changelog b/Changelog index 582a749f7..86c758720 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-01-11 DariusIII + * Chg: Use Carbon facade and not Carbon directly * Chg: Update ReleaseFile model * Chg: Update Console class * Chg: Declare categories table name in Category model diff --git a/nntmux/Binaries.php b/nntmux/Binaries.php index 80305f507..012e70f1a 100755 --- a/nntmux/Binaries.php +++ b/nntmux/Binaries.php @@ -2,8 +2,8 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; -use Carbon\Carbon; use App\Models\Group; use App\Models\Settings; use App\Models\BinaryBlacklist; diff --git a/nntmux/Books.php b/nntmux/Books.php index 9c76342ff..577d4598b 100755 --- a/nntmux/Books.php +++ b/nntmux/Books.php @@ -2,9 +2,9 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; use ApaiIO\ApaiIO; -use Carbon\Carbon; use GuzzleHttp\Client; use App\Models\Release; use App\Models\BookInfo; diff --git a/nntmux/Games.php b/nntmux/Games.php index 89e9ada23..49e46b939 100755 --- a/nntmux/Games.php +++ b/nntmux/Games.php @@ -2,8 +2,8 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; -use Carbon\Carbon; use App\Models\Genre; use App\Models\Category; use App\Models\Settings; diff --git a/nntmux/Genres.php b/nntmux/Genres.php index 206551d0f..72e24a8de 100755 --- a/nntmux/Genres.php +++ b/nntmux/Genres.php @@ -2,8 +2,8 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; -use Carbon\Carbon; use App\Models\Genre; use App\Models\Category; use Illuminate\Support\Facades\Cache; diff --git a/nntmux/Groups.php b/nntmux/Groups.php index 7b38a92d1..5bf9fc508 100755 --- a/nntmux/Groups.php +++ b/nntmux/Groups.php @@ -2,8 +2,8 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; -use Carbon\Carbon; use App\Models\Group; use App\Models\Release; use App\Models\Settings; diff --git a/nntmux/Movie.php b/nntmux/Movie.php index 2df56fea1..50a78874f 100755 --- a/nntmux/Movie.php +++ b/nntmux/Movie.php @@ -2,8 +2,8 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; -use Carbon\Carbon; use Tmdb\ApiToken; use aharen\OMDbAPI; use GuzzleHttp\Client; diff --git a/nntmux/Music.php b/nntmux/Music.php index af79bba6f..b636c0c4f 100755 --- a/nntmux/Music.php +++ b/nntmux/Music.php @@ -2,9 +2,9 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; use ApaiIO\ApaiIO; -use Carbon\Carbon; use App\Models\Genre; use GuzzleHttp\Client; use App\Models\Release; diff --git a/nntmux/NameFixer.php b/nntmux/NameFixer.php index c51f59e03..26d20797e 100755 --- a/nntmux/NameFixer.php +++ b/nntmux/NameFixer.php @@ -2,8 +2,8 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; -use Carbon\Carbon; use App\Models\Predb; use App\Models\Release; use App\Models\Category; diff --git a/nntmux/ReleaseComments.php b/nntmux/ReleaseComments.php index 5d3e8c670..8f06d457b 100755 --- a/nntmux/ReleaseComments.php +++ b/nntmux/ReleaseComments.php @@ -2,8 +2,8 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; -use Carbon\Carbon; use App\Models\User; use App\Models\Release; use App\Models\Settings; diff --git a/nntmux/Releases.php b/nntmux/Releases.php index 453a8f7fe..2aadc9bb1 100755 --- a/nntmux/Releases.php +++ b/nntmux/Releases.php @@ -2,8 +2,8 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; -use Carbon\Carbon; use App\Models\Release; use App\Models\Category; use App\Models\Settings; diff --git a/nntmux/XXX.php b/nntmux/XXX.php index 6bda78415..069027141 100755 --- a/nntmux/XXX.php +++ b/nntmux/XXX.php @@ -2,8 +2,8 @@ namespace nntmux; +use Illuminate\Support\Carbon; use nntmux\db\DB; -use Carbon\Carbon; use App\Models\Genre; use App\Models\Release; use App\Models\XxxInfo; diff --git a/nntmux/config/openssl.cnf b/nntmux/config/openssl.cnf deleted file mode 100755 index 3db25d924..000000000 --- a/nntmux/config/openssl.cnf +++ /dev/null @@ -1 +0,0 @@ -##dummy openssl config file diff --git a/nntmux/libraries/Forking.php b/nntmux/libraries/Forking.php index c5ce993c6..d19673841 100755 --- a/nntmux/libraries/Forking.php +++ b/nntmux/libraries/Forking.php @@ -2,11 +2,11 @@ namespace nntmux\libraries; +use Illuminate\Support\Carbon; use nntmux\Nfo; use nntmux\NZB; use nntmux\NNTP; use nntmux\db\DB; -use Carbon\Carbon; use App\Models\Tmux; use nntmux\ColorCLI; use App\Models\Release; diff --git a/nntmux/processing/Videos.php b/nntmux/processing/Videos.php index e785769fb..25f79c9eb 100755 --- a/nntmux/processing/Videos.php +++ b/nntmux/processing/Videos.php @@ -21,8 +21,8 @@ namespace nntmux\processing; +use Illuminate\Support\Carbon; use nntmux\db\DB; -use Carbon\Carbon; use App\Models\Video; use App\Models\TvInfo; use App\Models\VideoAlias; diff --git a/nntmux/utility/Time.php b/nntmux/utility/Time.php index 9aa0e6d14..1167ae89a 100755 --- a/nntmux/utility/Time.php +++ b/nntmux/utility/Time.php @@ -21,7 +21,7 @@ namespace nntmux\utility; -use Carbon\Carbon; +use Illuminate\Support\Carbon; /** * Class Time -- functions for working with time string and DTOs.