From bab65321a90ec803d53c666b6c2b4ea142507612 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 31 Jan 2019 19:18:57 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- Blacklight/AniDB.php | 2 +- Blacklight/Binaries.php | 8 ++-- Blacklight/Books.php | 20 +++++----- Blacklight/Categorize.php | 2 +- Blacklight/Console.php | 24 ++++++------ Blacklight/Contents.php | 2 +- Blacklight/Games.php | 12 +++--- Blacklight/Genres.php | 4 +- Blacklight/Movie.php | 30 +++++++-------- Blacklight/Music.php | 22 +++++------ Blacklight/NNTP.php | 2 +- Blacklight/NZBContents.php | 2 +- Blacklight/NZBGet.php | 4 +- Blacklight/NZBVortex.php | 2 +- Blacklight/NameFixer.php | 6 +-- Blacklight/Nfo.php | 6 +-- Blacklight/Regexes.php | 8 ++-- Blacklight/ReleaseExtra.php | 6 +-- Blacklight/ReleaseImage.php | 2 +- Blacklight/Releases.php | 6 +-- Blacklight/SABnzbd.php | 2 +- Blacklight/SphinxSearch.php | 2 +- Blacklight/XXX.php | 10 ++--- Blacklight/db/populate/AniDB.php | 6 +-- Blacklight/http/API.php | 4 +- Blacklight/http/RSS.php | 8 ++-- Blacklight/libraries/Forking.php | 8 ++-- Blacklight/libraries/TraktAPI.php | 2 +- Blacklight/processing/PostProcess.php | 28 +++++++------- Blacklight/processing/ProcessReleases.php | 26 ++++++------- Blacklight/processing/Videos.php | 4 +- Blacklight/processing/post/AniDB.php | 6 +-- .../processing/post/ProcessAdditional.php | 38 +++++++++---------- Blacklight/processing/tv/TMDB.php | 6 +-- Blacklight/processing/tv/TV.php | 12 +++--- Blacklight/processing/tv/TVDB.php | 4 +- Blacklight/processing/tv/TraktTv.php | 2 +- Blacklight/utility/Utility.php | 4 +- app/Console/Commands/InstallNntmux.php | 4 +- app/Console/Commands/TmuxUIStart.php | 2 +- app/Console/Commands/TmuxUIStop.php | 2 +- app/Console/Commands/UpdateNNTmux.php | 2 +- app/Console/Commands/UpdateNNTmuxGit.php | 2 +- app/Extensions/helper/helpers.php | 8 ++-- app/Http/Controllers/Admin/AjaxController.php | 8 ++-- .../Controllers/Admin/AnidbController.php | 4 +- .../Controllers/Admin/BlacklistController.php | 2 +- app/Http/Controllers/Admin/BookController.php | 4 +- .../Controllers/Admin/CategoryController.php | 2 +- .../Admin/CategoryRegexesController.php | 4 +- .../Admin/CollectionRegexesController.php | 4 +- .../Controllers/Admin/CommentsController.php | 2 +- .../Controllers/Admin/ConsoleController.php | 6 +-- .../Controllers/Admin/ContentController.php | 2 +- .../Admin/FailedReleasesController.php | 2 +- app/Http/Controllers/Admin/GameController.php | 2 +- .../Controllers/Admin/GroupController.php | 2 +- .../Controllers/Admin/MovieController.php | 8 ++-- .../Controllers/Admin/MusicController.php | 6 +-- app/Http/Controllers/Admin/NzbController.php | 6 +-- .../Controllers/Admin/PredbController.php | 2 +- .../Admin/ReleaseNamingRegexesController.php | 4 +- .../Controllers/Admin/ReleasesController.php | 4 +- app/Http/Controllers/Admin/RoleController.php | 2 +- .../Controllers/Admin/SharingController.php | 2 +- .../Controllers/Admin/ShowsController.php | 4 +- app/Http/Controllers/Admin/SiteController.php | 10 ++--- app/Http/Controllers/Admin/TmuxController.php | 2 +- app/Http/Controllers/Admin/UserController.php | 6 +-- app/Http/Controllers/AdultController.php | 4 +- app/Http/Controllers/AnimeController.php | 2 +- app/Http/Controllers/Api/ApiController.php | 10 ++--- app/Http/Controllers/Api/ApiV2Controller.php | 20 +++++----- .../Auth/ForgotPasswordController.php | 8 ++-- app/Http/Controllers/Auth/LoginController.php | 8 ++-- .../Controllers/Auth/RegisterController.php | 20 +++++----- .../Auth/ResetPasswordController.php | 6 +-- app/Http/Controllers/BasePageController.php | 10 ++--- app/Http/Controllers/BooksController.php | 4 +- app/Http/Controllers/BtcPaymentController.php | 2 +- app/Http/Controllers/ConsoleController.php | 6 +-- app/Http/Controllers/ContactUsController.php | 2 +- app/Http/Controllers/Controller.php | 4 +- app/Http/Controllers/DetailsController.php | 24 ++++++------ .../Controllers/FailedReleasesController.php | 2 +- app/Http/Controllers/FileListController.php | 2 +- app/Http/Controllers/ForumController.php | 2 +- app/Http/Controllers/GamesController.php | 2 +- app/Http/Controllers/GetNzbController.php | 8 ++-- app/Http/Controllers/MovieController.php | 4 +- app/Http/Controllers/MusicController.php | 6 +-- app/Http/Controllers/MyMoviesController.php | 4 +- app/Http/Controllers/MyShowsController.php | 4 +- app/Http/Controllers/NfoController.php | 2 +- app/Http/Controllers/ProfileController.php | 18 ++++----- app/Http/Controllers/QueueController.php | 4 +- app/Http/Controllers/RssController.php | 6 +-- app/Http/Controllers/SearchController.php | 2 +- .../Controllers/SendReleaseController.php | 2 +- app/Http/Controllers/SeriesController.php | 4 +- app/Http/Middleware/TrustProxies.php | 2 +- app/Jobs/SendAccountChangedEmail.php | 8 ++-- app/Jobs/SendAccountDeletedEmail.php | 10 ++--- app/Jobs/SendAccountExpiredEmail.php | 8 ++-- app/Jobs/SendContactUsEmail.php | 6 +-- app/Jobs/SendInviteEmail.php | 6 +-- app/Jobs/SendPasswordForgottenEmail.php | 8 ++-- app/Jobs/SendPasswordResetEmail.php | 8 ++-- app/Mail/AccountChange.php | 2 +- app/Mail/AccountDeleted.php | 2 +- app/Mail/AccountExpired.php | 2 +- app/Mail/PasswordReset.php | 2 +- app/Mail/SendInvite.php | 2 +- app/Models/AnidbEpisode.php | 2 +- app/Models/AnidbTitle.php | 2 +- app/Models/BookInfo.php | 2 +- app/Models/Category.php | 2 +- app/Models/ConsoleInfo.php | 2 +- app/Models/DnzbFailure.php | 2 +- app/Models/GamesInfo.php | 2 +- app/Models/Group.php | 8 ++-- app/Models/MusicInfo.php | 2 +- app/Models/ParHash.php | 2 +- app/Models/Predb.php | 4 +- app/Models/Release.php | 2 +- app/Models/ReleaseFile.php | 2 +- app/Models/ReleaseRegex.php | 2 +- app/Models/Settings.php | 2 +- app/Models/SteamApp.php | 2 +- app/Models/TvEpisode.php | 2 +- app/Models/User.php | 16 ++++---- app/Models/UserRequest.php | 2 +- app/Models/VideoAlias.php | 2 +- app/Providers/BroadcastServiceProvider.php | 2 +- app/Providers/EventServiceProvider.php | 2 +- app/Providers/RouteServiceProvider.php | 2 +- app/Support/Database/Builder.php | 2 +- app/Transformers/ApiTransformer.php | 2 +- app/Transformers/DetailsTransformer.php | 2 +- misc/run_me_once/add_tags_to_releases.php | 2 +- misc/run_me_once/updateUserRoles.php | 2 +- misc/sphinxsearch/populate_rt_indexes.php | 2 +- misc/testing/DB/add_movieinfo_id.php | 2 +- misc/testing/Dev/clean_nzbs.php | 4 +- misc/testing/Dev/test-ReleaseCleaner.php | 2 +- misc/testing/NZB/nzb-reorg.php | 2 +- misc/testing/PostProc/check_covers.php | 2 +- misc/testing/PostProc/check_previews.php | 6 +-- misc/testing/PostProc/getConsole.php | 2 +- misc/testing/PostProc/getGameCovers.php | 2 +- misc/testing/PostProc/getImdb.php | 2 +- misc/testing/PostProc/getMovieCovers.php | 4 +- misc/testing/PostProc/getTraktData.php | 4 +- misc/testing/PostProc/getXXXCovers.php | 2 +- misc/testing/PostProc/updateConsoleImages.php | 2 +- misc/testing/PostProc/updateGamesImages.php | 2 +- misc/testing/PostProc/updateMovieImages.php | 2 +- misc/testing/PostProc/updateMusicImages.php | 2 +- misc/testing/Releases/fixReleaseNames.php | 2 +- misc/testing/Releases/recategorize.php | 4 +- misc/testing/Tests/test_amazon_API.php | 4 +- misc/testing/Tests/test_tvdb_API.php | 6 +-- misc/update/backfill.php | 2 +- misc/update/postprocess.php | 2 +- misc/update/tmux/bin/groupfixrelnames.php | 10 ++--- misc/update/tmux/bin/update_groups.php | 8 ++-- misc/update/tmux/monitor.php | 6 +-- misc/update/update_binaries.php | 2 +- 168 files changed, 449 insertions(+), 449 deletions(-) diff --git a/Blacklight/AniDB.php b/Blacklight/AniDB.php index 6d4c42237..67227b77c 100755 --- a/Blacklight/AniDB.php +++ b/Blacklight/AniDB.php @@ -2,8 +2,8 @@ namespace Blacklight; -use App\Models\AnidbTitle; use App\Models\Category; +use App\Models\AnidbTitle; use Illuminate\Support\Facades\DB; /** diff --git a/Blacklight/Binaries.php b/Blacklight/Binaries.php index d451ce15b..3a8e1dfe5 100755 --- a/Blacklight/Binaries.php +++ b/Blacklight/Binaries.php @@ -2,15 +2,15 @@ namespace Blacklight; -use App\Models\BinaryBlacklist; -use App\Models\Collection; use App\Models\Group; use App\Models\Settings; -use Illuminate\Database\QueryException; +use App\Models\Collection; +use Illuminate\Support\Str; use Illuminate\Support\Carbon; +use App\Models\BinaryBlacklist; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; -use Illuminate\Support\Str; +use Illuminate\Database\QueryException; /** * Class Binaries. diff --git a/Blacklight/Books.php b/Blacklight/Books.php index 26ddbad27..c123e2b19 100755 --- a/Blacklight/Books.php +++ b/Blacklight/Books.php @@ -3,21 +3,21 @@ namespace Blacklight; use ApaiIO\ApaiIO; -use ApaiIO\Configuration\Country; -use ApaiIO\Configuration\GenericConfiguration; -use ApaiIO\Operations\Search; -use ApaiIO\Request\GuzzleRequest; -use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject; +use GuzzleHttp\Client; +use App\Models\Release; use App\Models\BookInfo; use App\Models\Category; -use App\Models\Release; use App\Models\Settings; +use ApaiIO\Operations\Search; +use DariusIII\ItunesApi\iTunes; +use ApaiIO\Configuration\Country; +use ApaiIO\Request\GuzzleRequest; +use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Cache; +use ApaiIO\Configuration\GenericConfiguration; +use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject; use DariusIII\ItunesApi\Exceptions\EbookNotFoundException; use DariusIII\ItunesApi\Exceptions\SearchNoResultsException; -use DariusIII\ItunesApi\iTunes; -use GuzzleHttp\Client; -use Illuminate\Support\Facades\Cache; -use Illuminate\Support\Facades\DB; /** * Class Books. diff --git a/Blacklight/Categorize.php b/Blacklight/Categorize.php index 03bb9bfb5..98889f960 100755 --- a/Blacklight/Categorize.php +++ b/Blacklight/Categorize.php @@ -2,8 +2,8 @@ namespace Blacklight; -use App\Models\Category; use App\Models\Group; +use App\Models\Category; use App\Models\Settings; /** diff --git a/Blacklight/Console.php b/Blacklight/Console.php index fdaed51c3..aca17c161 100755 --- a/Blacklight/Console.php +++ b/Blacklight/Console.php @@ -3,22 +3,22 @@ namespace Blacklight; use ApaiIO\ApaiIO; -use ApaiIO\Configuration\Country; -use ApaiIO\Configuration\GenericConfiguration; -use ApaiIO\Operations\Search; -use ApaiIO\Request\GuzzleRequest; -use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject; -use App\Models\Category; -use App\Models\ConsoleInfo; use App\Models\Genre; -use App\Models\Release; -use App\Models\Settings; use GuzzleHttp\Client; -use GuzzleHttp\Exception\ClientException; +use App\Models\Release; +use App\Models\Category; +use App\Models\Settings; +use App\Models\ConsoleInfo; +use ApaiIO\Operations\Search; use Illuminate\Support\Carbon; -use Illuminate\Support\Facades\Cache; -use Illuminate\Support\Facades\DB; +use ApaiIO\Configuration\Country; +use ApaiIO\Request\GuzzleRequest; use Messerli90\IGDB\Facades\IGDB; +use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Cache; +use GuzzleHttp\Exception\ClientException; +use ApaiIO\Configuration\GenericConfiguration; +use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject; /** * Class Console. diff --git a/Blacklight/Contents.php b/Blacklight/Contents.php index 222a3a8c6..0715f352a 100755 --- a/Blacklight/Contents.php +++ b/Blacklight/Contents.php @@ -2,8 +2,8 @@ namespace Blacklight; -use App\Models\Content; use App\Models\User; +use App\Models\Content; use Illuminate\Support\Arr; /** diff --git a/Blacklight/Games.php b/Blacklight/Games.php index af7a012b7..3c121e339 100755 --- a/Blacklight/Games.php +++ b/Blacklight/Games.php @@ -2,18 +2,18 @@ namespace Blacklight; -use App\Models\Category; -use App\Models\GamesInfo; use App\Models\Genre; use App\Models\Release; +use App\Models\Category; use App\Models\Settings; +use App\Models\GamesInfo; +use Illuminate\Support\Carbon; use DBorsatto\GiantBomb\Client; use DBorsatto\GiantBomb\Config; -use GuzzleHttp\Exception\ClientException; -use Illuminate\Support\Carbon; -use Illuminate\Support\Facades\Cache; -use Illuminate\Support\Facades\DB; use Messerli90\IGDB\Facades\IGDB; +use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Cache; +use GuzzleHttp\Exception\ClientException; /** * Class Games. diff --git a/Blacklight/Genres.php b/Blacklight/Genres.php index 3459434d7..2926e5840 100755 --- a/Blacklight/Genres.php +++ b/Blacklight/Genres.php @@ -2,11 +2,11 @@ namespace Blacklight; -use App\Models\Category; use App\Models\Genre; +use App\Models\Category; use Illuminate\Support\Arr; -use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Cache; /** * Class Genres. diff --git a/Blacklight/Movie.php b/Blacklight/Movie.php index cb3b2e7ca..0e3b83611 100755 --- a/Blacklight/Movie.php +++ b/Blacklight/Movie.php @@ -2,28 +2,28 @@ namespace Blacklight; +use Imdb\Title; +use Imdb\Config; use aharen\OMDbAPI; -use App\Models\Category; -use App\Models\MovieInfo; -use App\Models\Release; -use App\Models\Settings; -use Blacklight\libraries\FanartTV; -use Blacklight\processing\tv\TraktTv; -use Blacklight\utility\Utility; -use DariusIII\ItunesApi\Exceptions\MovieNotFoundException; -use DariusIII\ItunesApi\Exceptions\SearchNoResultsException; -use DariusIII\ItunesApi\iTunes; +use Imdb\TitleSearch; use GuzzleHttp\Client; +use App\Models\Release; +use App\Models\Category; +use App\Models\Settings; +use App\Models\MovieInfo; use Illuminate\Support\Arr; use Illuminate\Support\Carbon; -use Illuminate\Support\Facades\Cache; +use Tmdb\Laravel\Facades\Tmdb; +use Blacklight\utility\Utility; +use DariusIII\ItunesApi\iTunes; +use Blacklight\libraries\FanartTV; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; -use Imdb\Config; -use Imdb\Title; -use Imdb\TitleSearch; use Tmdb\Exception\TmdbApiException; -use Tmdb\Laravel\Facades\Tmdb; +use Blacklight\processing\tv\TraktTv; +use Illuminate\Support\Facades\Cache; +use DariusIII\ItunesApi\Exceptions\MovieNotFoundException; +use DariusIII\ItunesApi\Exceptions\SearchNoResultsException; /** * Class Movie. diff --git a/Blacklight/Music.php b/Blacklight/Music.php index f9cb2e17f..41279417f 100755 --- a/Blacklight/Music.php +++ b/Blacklight/Music.php @@ -3,23 +3,23 @@ namespace Blacklight; use ApaiIO\ApaiIO; -use ApaiIO\Configuration\GenericConfiguration; -use ApaiIO\Operations\Search; -use ApaiIO\Request\GuzzleRequest; -use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject; -use App\Models\Category; use App\Models\Genre; -use App\Models\MusicInfo; +use GuzzleHttp\Client; use App\Models\Release; +use App\Models\Category; use App\Models\Settings; +use App\Models\MusicInfo; +use ApaiIO\Operations\Search; +use DariusIII\ItunesApi\iTunes; +use ApaiIO\Request\GuzzleRequest; +use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Cache; +use ApaiIO\Configuration\GenericConfiguration; +use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject; use DariusIII\ItunesApi\Exceptions\AlbumNotFoundException; +use DariusIII\ItunesApi\Exceptions\TrackNotFoundException; use DariusIII\ItunesApi\Exceptions\ArtistNotFoundException; use DariusIII\ItunesApi\Exceptions\SearchNoResultsException; -use DariusIII\ItunesApi\Exceptions\TrackNotFoundException; -use DariusIII\ItunesApi\iTunes; -use GuzzleHttp\Client; -use Illuminate\Support\Facades\Cache; -use Illuminate\Support\Facades\DB; /** * Class Music. diff --git a/Blacklight/NNTP.php b/Blacklight/NNTP.php index 29c780717..dce3b5652 100755 --- a/Blacklight/NNTP.php +++ b/Blacklight/NNTP.php @@ -2,9 +2,9 @@ namespace Blacklight; -use App\Extensions\util\PhpYenc; use App\Models\Settings; use Blacklight\utility\Utility; +use App\Extensions\util\PhpYenc; /* * Class for connecting to the usenet, retrieving articles and article headers, diff --git a/Blacklight/NZBContents.php b/Blacklight/NZBContents.php index b8ab23c97..b8afa418a 100755 --- a/Blacklight/NZBContents.php +++ b/Blacklight/NZBContents.php @@ -4,8 +4,8 @@ namespace Blacklight; use App\Models\Release; use App\Models\Settings; -use Blacklight\processing\PostProcess; use Blacklight\utility\Utility; +use Blacklight\processing\PostProcess; /** * Gets information contained within the NZB. diff --git a/Blacklight/NZBGet.php b/Blacklight/NZBGet.php index 4248a26bf..05d74f6a7 100755 --- a/Blacklight/NZBGet.php +++ b/Blacklight/NZBGet.php @@ -2,10 +2,10 @@ namespace Blacklight; -use App\Models\Release; -use Blacklight\utility\Utility; use GuzzleHttp\Client; +use App\Models\Release; use GuzzleHttp\Psr7\Request; +use Blacklight\utility\Utility; /** * Transfers data between an NZBGet server and a nntmux website. diff --git a/Blacklight/NZBVortex.php b/Blacklight/NZBVortex.php index 8798cd4bc..16d53f6d5 100755 --- a/Blacklight/NZBVortex.php +++ b/Blacklight/NZBVortex.php @@ -2,8 +2,8 @@ namespace Blacklight; -use App\Models\User; use Page; +use App\Models\User; /** * Class NZBVortex. diff --git a/Blacklight/NameFixer.php b/Blacklight/NameFixer.php index 46dddfb78..bd83f4a80 100755 --- a/Blacklight/NameFixer.php +++ b/Blacklight/NameFixer.php @@ -2,13 +2,13 @@ namespace Blacklight; -use App\Models\Category; use App\Models\Group; use App\Models\Predb; use App\Models\Release; -use Blacklight\processing\PostProcess; -use Blacklight\utility\Utility; +use App\Models\Category; use Illuminate\Support\Arr; +use Blacklight\utility\Utility; +use Blacklight\processing\PostProcess; /** * Class NameFixer. diff --git a/Blacklight/Nfo.php b/Blacklight/Nfo.php index 02775bcff..9822e3f71 100755 --- a/Blacklight/Nfo.php +++ b/Blacklight/Nfo.php @@ -4,14 +4,14 @@ namespace Blacklight; use App\Models\Group; use App\Models\Release; -use App\Models\ReleaseNfo; use App\Models\Settings; -use Blacklight\processing\PostProcess; +use App\Models\ReleaseNfo; +use dariusiii\rarinfo\SfvInfo; use Blacklight\utility\Utility; use dariusiii\rarinfo\Par2Info; -use dariusiii\rarinfo\SfvInfo; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; +use Blacklight\processing\PostProcess; /** * Class Nfo. diff --git a/Blacklight/Regexes.php b/Blacklight/Regexes.php index 254f23e64..bb6906d4f 100755 --- a/Blacklight/Regexes.php +++ b/Blacklight/Regexes.php @@ -2,13 +2,13 @@ namespace Blacklight; -use App\Models\Category; -use App\Models\CategoryRegex; -use App\Models\CollectionRegex; use App\Models\Group; use App\Models\Release; -use App\Models\ReleaseNamingRegex; +use App\Models\Category; use Illuminate\Support\Arr; +use App\Models\CategoryRegex; +use App\Models\CollectionRegex; +use App\Models\ReleaseNamingRegex; use Illuminate\Support\Facades\DB; /** diff --git a/Blacklight/ReleaseExtra.php b/Blacklight/ReleaseExtra.php index c28b56774..316876fbe 100755 --- a/Blacklight/ReleaseExtra.php +++ b/Blacklight/ReleaseExtra.php @@ -3,10 +3,10 @@ namespace Blacklight; use App\Models\AudioData; -use App\Models\ReleaseExtraFull; -use App\Models\ReleaseSubtitle; -use App\Models\ReleaseUnique; use App\Models\VideoData; +use App\Models\ReleaseUnique; +use App\Models\ReleaseSubtitle; +use App\Models\ReleaseExtraFull; use Illuminate\Support\Facades\DB; use Mhor\MediaInfo\Container\MediaInfoContainer; diff --git a/Blacklight/ReleaseImage.php b/Blacklight/ReleaseImage.php index 7be1f565a..2e5d6f081 100755 --- a/Blacklight/ReleaseImage.php +++ b/Blacklight/ReleaseImage.php @@ -3,11 +3,11 @@ namespace Blacklight; use Illuminate\Support\Facades\File; +use Intervention\Image\Facades\Image; use Intervention\Image\Exception\ImageException; use Intervention\Image\Exception\NotFoundException; use Intervention\Image\Exception\NotReadableException; use Intervention\Image\Exception\NotWritableException; -use Intervention\Image\Facades\Image; /** * Resize/save/delete images to disk. diff --git a/Blacklight/Releases.php b/Blacklight/Releases.php index a435a16ae..983846cba 100755 --- a/Blacklight/Releases.php +++ b/Blacklight/Releases.php @@ -2,16 +2,16 @@ namespace Blacklight; -use App\Models\Category; use App\Models\Group; use App\Models\Release; +use App\Models\Category; use App\Models\Settings; -use Blacklight\utility\Utility; use Chumper\Zipper\Zipper; use Illuminate\Support\Arr; -use Illuminate\Support\Facades\Cache; +use Blacklight\utility\Utility; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; +use Illuminate\Support\Facades\Cache; /** * Class Releases. diff --git a/Blacklight/SABnzbd.php b/Blacklight/SABnzbd.php index c1562c6d3..dc2a7e5eb 100755 --- a/Blacklight/SABnzbd.php +++ b/Blacklight/SABnzbd.php @@ -2,8 +2,8 @@ namespace Blacklight; -use App\Models\Settings; use GuzzleHttp\Client; +use App\Models\Settings; /** * Class SABnzbd. diff --git a/Blacklight/SphinxSearch.php b/Blacklight/SphinxSearch.php index 64e866d92..ce2e8ff47 100755 --- a/Blacklight/SphinxSearch.php +++ b/Blacklight/SphinxSearch.php @@ -4,10 +4,10 @@ namespace Blacklight; use App\Models\Predb; use App\Models\Release; -use Foolz\SphinxQL\Drivers\Pdo\Connection; use Foolz\SphinxQL\Helper; use Foolz\SphinxQL\SphinxQL; use Illuminate\Support\Facades\DB; +use Foolz\SphinxQL\Drivers\Pdo\Connection; /** * Class SphinxSearch. diff --git a/Blacklight/XXX.php b/Blacklight/XXX.php index 2af5c391b..c777e9e1e 100755 --- a/Blacklight/XXX.php +++ b/Blacklight/XXX.php @@ -2,18 +2,18 @@ namespace Blacklight; -use App\Models\Category; use App\Models\Genre; use App\Models\Release; -use App\Models\Settings; use App\Models\XxxInfo; +use App\Models\Category; +use App\Models\Settings; +use Illuminate\Support\Facades\DB; use Blacklight\processing\adult\ADE; use Blacklight\processing\adult\ADM; use Blacklight\processing\adult\AEBN; -use Blacklight\processing\adult\Hotmovies; -use Blacklight\processing\adult\Popporn; use Illuminate\Support\Facades\Cache; -use Illuminate\Support\Facades\DB; +use Blacklight\processing\adult\Popporn; +use Blacklight\processing\adult\Hotmovies; /** * Class XXX. diff --git a/Blacklight/db/populate/AniDB.php b/Blacklight/db/populate/AniDB.php index 102c15f0f..155572dd7 100755 --- a/Blacklight/db/populate/AniDB.php +++ b/Blacklight/db/populate/AniDB.php @@ -2,11 +2,11 @@ namespace Blacklight\db\populate; -use App\Models\AnidbEpisode; -use App\Models\AnidbInfo; -use App\Models\AnidbTitle; use App\Models\Settings; use Blacklight\ColorCLI; +use App\Models\AnidbInfo; +use App\Models\AnidbTitle; +use App\Models\AnidbEpisode; use Blacklight\ReleaseImage; use Illuminate\Support\Carbon; diff --git a/Blacklight/http/API.php b/Blacklight/http/API.php index 5bc5e4a1c..ab5c22a4d 100755 --- a/Blacklight/http/API.php +++ b/Blacklight/http/API.php @@ -21,9 +21,9 @@ namespace Blacklight\http; -use App\Models\AudioData; -use App\Models\Category; use App\Models\Group; +use App\Models\Category; +use App\Models\AudioData; use Blacklight\utility\Utility; /** diff --git a/Blacklight/http/RSS.php b/Blacklight/http/RSS.php index 147e2c52c..a9bac4780 100755 --- a/Blacklight/http/RSS.php +++ b/Blacklight/http/RSS.php @@ -2,14 +2,14 @@ namespace Blacklight\http; -use App\Models\Category; +use Blacklight\NZB; use App\Models\Release; +use App\Models\Category; +use Blacklight\Releases; use App\Models\UserMovie; use App\Models\UserSerie; -use Blacklight\NZB; -use Blacklight\Releases; -use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Cache; /** * Class RSS -- contains specific functions for RSS. diff --git a/Blacklight/libraries/Forking.php b/Blacklight/libraries/Forking.php index f6641eef5..1238ac3b8 100755 --- a/Blacklight/libraries/Forking.php +++ b/Blacklight/libraries/Forking.php @@ -2,15 +2,15 @@ namespace Blacklight\libraries; +use Blacklight\Nfo; +use Blacklight\NZB; +use Blacklight\NNTP; use App\Models\Settings; use Blacklight\ColorCLI; -use Blacklight\Nfo; -use Blacklight\NNTP; -use Blacklight\NZB; -use Blacklight\processing\PostProcess; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; +use Blacklight\processing\PostProcess; /** * Class Forking. diff --git a/Blacklight/libraries/TraktAPI.php b/Blacklight/libraries/TraktAPI.php index 885fda0e0..1ee916883 100755 --- a/Blacklight/libraries/TraktAPI.php +++ b/Blacklight/libraries/TraktAPI.php @@ -3,8 +3,8 @@ namespace Blacklight\libraries; use GuzzleHttp\Client; -use GuzzleHttp\Exception\RequestException; use Illuminate\Support\Str; +use GuzzleHttp\Exception\RequestException; /** * Class TraktAPI diff --git a/Blacklight/processing/PostProcess.php b/Blacklight/processing/PostProcess.php index 0a7a47cca..c85151ea9 100755 --- a/Blacklight/processing/PostProcess.php +++ b/Blacklight/processing/PostProcess.php @@ -2,29 +2,29 @@ namespace Blacklight\processing; -use App\Models\Category; +use Blacklight\Nfo; +use Blacklight\XXX; +use Blacklight\NNTP; use App\Models\Group; -use App\Models\Release; -use App\Models\ReleaseFile; -use App\Models\Settings; use Blacklight\Books; -use Blacklight\Console; use Blacklight\Games; use Blacklight\Movie; use Blacklight\Music; +use App\Models\Release; +use Blacklight\Console; +use Blacklight\Sharing; +use App\Models\Category; +use App\Models\Settings; use Blacklight\NameFixer; -use Blacklight\Nfo; -use Blacklight\NNTP; -use Blacklight\processing\post\AniDB; -use Blacklight\processing\post\ProcessAdditional; +use App\Models\ReleaseFile; +use Illuminate\Support\Carbon; +use dariusiii\rarinfo\Par2Info; use Blacklight\processing\tv\TMDB; -use Blacklight\processing\tv\TraktTv; use Blacklight\processing\tv\TVDB; use Blacklight\processing\tv\TVMaze; -use Blacklight\Sharing; -use Blacklight\XXX; -use dariusiii\rarinfo\Par2Info; -use Illuminate\Support\Carbon; +use Blacklight\processing\post\AniDB; +use Blacklight\processing\tv\TraktTv; +use Blacklight\processing\post\ProcessAdditional; class PostProcess { diff --git a/Blacklight/processing/ProcessReleases.php b/Blacklight/processing/ProcessReleases.php index 257f9097a..ded823c00 100755 --- a/Blacklight/processing/ProcessReleases.php +++ b/Blacklight/processing/ProcessReleases.php @@ -2,24 +2,24 @@ namespace Blacklight\processing; -use App\Models\Category; +use Blacklight\NZB; +use Blacklight\NNTP; use App\Models\Group; use App\Models\Predb; -use App\Models\Release; -use App\Models\ReleaseRegex; -use App\Models\ReleasesGroups; -use App\Models\Settings; -use Blacklight\Categorize; -use Blacklight\ColorCLI; -use Blacklight\ConsoleTools; use Blacklight\Genres; -use Blacklight\NNTP; -use Blacklight\NZB; -use Blacklight\ReleaseCleaning; -use Blacklight\ReleaseImage; +use App\Models\Release; +use App\Models\Category; +use App\Models\Settings; +use Blacklight\ColorCLI; use Blacklight\Releases; -use Illuminate\Support\Facades\DB; +use Blacklight\Categorize; use Illuminate\Support\Str; +use App\Models\ReleaseRegex; +use Blacklight\ConsoleTools; +use Blacklight\ReleaseImage; +use App\Models\ReleasesGroups; +use Blacklight\ReleaseCleaning; +use Illuminate\Support\Facades\DB; class ProcessReleases { diff --git a/Blacklight/processing/Videos.php b/Blacklight/processing/Videos.php index 32ce0e211..ca49510a5 100755 --- a/Blacklight/processing/Videos.php +++ b/Blacklight/processing/Videos.php @@ -21,11 +21,11 @@ namespace Blacklight\processing; -use App\Models\TvInfo; use App\Models\Video; +use App\Models\TvInfo; use App\Models\VideoAlias; -use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Cache; /** * Parent class for TV/Film and any similar classes to inherit from. diff --git a/Blacklight/processing/post/AniDB.php b/Blacklight/processing/post/AniDB.php index e435e58ec..37e738fbd 100755 --- a/Blacklight/processing/post/AniDB.php +++ b/Blacklight/processing/post/AniDB.php @@ -2,13 +2,13 @@ namespace Blacklight\processing\post; -use App\Models\AnidbEpisode; +use Blacklight\NZB; use App\Models\Category; use App\Models\Settings; use Blacklight\ColorCLI; -use Blacklight\db\populate\AniDB as PaDb; -use Blacklight\NZB; +use App\Models\AnidbEpisode; use Illuminate\Support\Facades\DB; +use Blacklight\db\populate\AniDB as PaDb; class AniDB { diff --git a/Blacklight/processing/post/ProcessAdditional.php b/Blacklight/processing/post/ProcessAdditional.php index f6e7bd64a..ed392b8d5 100755 --- a/Blacklight/processing/post/ProcessAdditional.php +++ b/Blacklight/processing/post/ProcessAdditional.php @@ -2,35 +2,35 @@ namespace Blacklight\processing\post; -use App\Models\Category; +use FFMpeg\FFMpeg; +use Blacklight\Nfo; +use Blacklight\NZB; +use FFMpeg\FFProbe; +use Blacklight\NNTP; use App\Models\Group; use App\Models\Release; -use App\Models\ReleaseFile; +use App\Models\Category; use App\Models\Settings; -use Blacklight\Categorize; use Blacklight\ColorCLI; +use Blacklight\Releases; use Blacklight\NameFixer; -use Blacklight\Nfo; -use Blacklight\NNTP; -use Blacklight\NZB; +use Blacklight\Categorize; +use App\Models\ReleaseFile; use Blacklight\ReleaseExtra; use Blacklight\ReleaseImage; -use Blacklight\Releases; use Blacklight\SphinxSearch; -use Blacklight\utility\Utility; -use dariusiii\rarinfo\ArchiveInfo; -use dariusiii\rarinfo\Par2Info; -use FFMpeg\Coordinate\Dimension; -use FFMpeg\Coordinate\TimeCode; -use FFMpeg\FFMpeg; -use FFMpeg\FFProbe; -use FFMpeg\Filters\Video\ResizeFilter; -use FFMpeg\Format\Audio\Vorbis; use FFMpeg\Format\Video\Ogg; -use Illuminate\Support\Facades\DB; -use Illuminate\Support\Facades\File; -use Illuminate\Support\Facades\Log; use Mhor\MediaInfo\MediaInfo; +use Blacklight\utility\Utility; +use dariusiii\rarinfo\Par2Info; +use FFMpeg\Coordinate\TimeCode; +use FFMpeg\Format\Audio\Vorbis; +use FFMpeg\Coordinate\Dimension; +use dariusiii\rarinfo\ArchiveInfo; +use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Log; +use Illuminate\Support\Facades\File; +use FFMpeg\Filters\Video\ResizeFilter; class ProcessAdditional { diff --git a/Blacklight/processing/tv/TMDB.php b/Blacklight/processing/tv/TMDB.php index 5c90b27f2..f842f445d 100755 --- a/Blacklight/processing/tv/TMDB.php +++ b/Blacklight/processing/tv/TMDB.php @@ -2,12 +2,12 @@ namespace Blacklight\processing\tv; +use Tmdb\Client; +use Tmdb\ApiToken; use App\Models\Settings; use Blacklight\ReleaseImage; -use Tmdb\ApiToken; -use Tmdb\Client; -use Tmdb\Exception\TmdbApiException; use Tmdb\Helper\ImageHelper; +use Tmdb\Exception\TmdbApiException; use Tmdb\Repository\ConfigurationRepository; class TMDB extends TV diff --git a/Blacklight/processing/tv/TV.php b/Blacklight/processing/tv/TV.php index 9b85b68b0..24159097c 100755 --- a/Blacklight/processing/tv/TV.php +++ b/Blacklight/processing/tv/TV.php @@ -2,15 +2,15 @@ namespace Blacklight\processing\tv; -use App\Models\Category; -use App\Models\Release; -use App\Models\Settings; -use App\Models\TvEpisode; -use App\Models\TvInfo; use App\Models\Video; +use App\Models\TvInfo; +use App\Models\Release; +use App\Models\Category; +use App\Models\Settings; use Blacklight\ColorCLI; -use Blacklight\processing\Videos; +use App\Models\TvEpisode; use Blacklight\utility\Country; +use Blacklight\processing\Videos; use Illuminate\Support\Facades\DB; /** diff --git a/Blacklight/processing/tv/TVDB.php b/Blacklight/processing/tv/TVDB.php index aae1419be..76f9f2dfe 100755 --- a/Blacklight/processing/tv/TVDB.php +++ b/Blacklight/processing/tv/TVDB.php @@ -3,9 +3,9 @@ namespace Blacklight\processing\tv; use Blacklight\ReleaseImage; -use CanIHaveSomeCoffee\TheTVDbAPI\Exception\ResourceNotFoundException; -use CanIHaveSomeCoffee\TheTVDbAPI\Exception\UnauthorizedException; use CanIHaveSomeCoffee\TheTVDbAPI\TheTVDbAPI; +use CanIHaveSomeCoffee\TheTVDbAPI\Exception\UnauthorizedException; +use CanIHaveSomeCoffee\TheTVDbAPI\Exception\ResourceNotFoundException; /** * Class TVDB -- functions used to post process releases against TVDB. diff --git a/Blacklight/processing/tv/TraktTv.php b/Blacklight/processing/tv/TraktTv.php index edad0c0b8..78423a2bb 100755 --- a/Blacklight/processing/tv/TraktTv.php +++ b/Blacklight/processing/tv/TraktTv.php @@ -3,9 +3,9 @@ namespace Blacklight\processing\tv; use App\Models\Settings; -use Blacklight\libraries\TraktAPI; use Blacklight\ReleaseImage; use Blacklight\utility\Time; +use Blacklight\libraries\TraktAPI; /** * Class TraktTv. diff --git a/Blacklight/utility/Utility.php b/Blacklight/utility/Utility.php index 90ad5ff55..547be337c 100755 --- a/Blacklight/utility/Utility.php +++ b/Blacklight/utility/Utility.php @@ -3,10 +3,10 @@ namespace Blacklight\utility; use App\Models\Settings; -use Illuminate\Contracts\Pagination\LengthAwarePaginator; +use Illuminate\Support\Str; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; -use Illuminate\Support\Str; +use Illuminate\Contracts\Pagination\LengthAwarePaginator; /** * Class Utility. diff --git a/app/Console/Commands/InstallNntmux.php b/app/Console/Commands/InstallNntmux.php index c4ad896e8..998e11788 100644 --- a/app/Console/Commands/InstallNntmux.php +++ b/app/Console/Commands/InstallNntmux.php @@ -2,11 +2,11 @@ namespace App\Console\Commands; -use App\Models\Settings; use App\Models\User; +use App\Models\Settings; +use Illuminate\Support\Str; use Illuminate\Console\Command; use Illuminate\Support\Facades\File; -use Illuminate\Support\Str; use Symfony\Component\Process\Process; class InstallNntmux extends Command diff --git a/app/Console/Commands/TmuxUIStart.php b/app/Console/Commands/TmuxUIStart.php index 47e1f27b7..71055d55a 100644 --- a/app/Console/Commands/TmuxUIStart.php +++ b/app/Console/Commands/TmuxUIStart.php @@ -2,9 +2,9 @@ namespace App\Console\Commands; +use Blacklight\Tmux; use App\Models\Settings; use Blacklight\ColorCLI; -use Blacklight\Tmux; use Illuminate\Console\Command; class TmuxUIStart extends Command diff --git a/app/Console/Commands/TmuxUIStop.php b/app/Console/Commands/TmuxUIStop.php index c26db52b1..c9aead1f4 100644 --- a/app/Console/Commands/TmuxUIStop.php +++ b/app/Console/Commands/TmuxUIStop.php @@ -2,8 +2,8 @@ namespace App\Console\Commands; -use App\Models\Settings; use Blacklight\Tmux; +use App\Models\Settings; use Illuminate\Console\Command; use Symfony\Component\Process\Process; diff --git a/app/Console/Commands/UpdateNNTmux.php b/app/Console/Commands/UpdateNNTmux.php index 9be20e755..80a599184 100644 --- a/app/Console/Commands/UpdateNNTmux.php +++ b/app/Console/Commands/UpdateNNTmux.php @@ -4,8 +4,8 @@ namespace App\Console\Commands; use Blacklight\Tmux; use Illuminate\Console\Command; -use Illuminate\Support\Facades\App; use Ytake\LaravelSmarty\Smarty; +use Illuminate\Support\Facades\App; class UpdateNNTmux extends Command { diff --git a/app/Console/Commands/UpdateNNTmuxGit.php b/app/Console/Commands/UpdateNNTmuxGit.php index 371a3a9d8..510c6b648 100644 --- a/app/Console/Commands/UpdateNNTmuxGit.php +++ b/app/Console/Commands/UpdateNNTmuxGit.php @@ -2,8 +2,8 @@ namespace App\Console\Commands; -use App\Extensions\util\Git; use Blacklight\Tmux; +use App\Extensions\util\Git; use Illuminate\Console\Command; class UpdateNNTmuxGit extends Command diff --git a/app/Extensions/helper/helpers.php b/app/Extensions/helper/helpers.php index 3b840b63b..6ccc7a1d6 100644 --- a/app/Extensions/helper/helpers.php +++ b/app/Extensions/helper/helpers.php @@ -1,16 +1,16 @@ getPdo(); diff --git a/misc/testing/PostProc/getGameCovers.php b/misc/testing/PostProc/getGameCovers.php index 27d2b37ef..4588c0f8e 100644 --- a/misc/testing/PostProc/getGameCovers.php +++ b/misc/testing/PostProc/getGameCovers.php @@ -4,8 +4,8 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use Blacklight\ColorCLI; use Blacklight\Games; +use Blacklight\ColorCLI; $pdo = DB::connection()->getPdo(); $game = new Games(['Echo' => true]); diff --git a/misc/testing/PostProc/getImdb.php b/misc/testing/PostProc/getImdb.php index 1cffa5109..45cb4bde6 100644 --- a/misc/testing/PostProc/getImdb.php +++ b/misc/testing/PostProc/getImdb.php @@ -3,8 +3,8 @@ //This script will update all records in the movieinfo table require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use Blacklight\ColorCLI; use Blacklight\Movie; +use Blacklight\ColorCLI; use Illuminate\Support\Facades\DB; $pdo = DB::connection()->getPdo(); diff --git a/misc/testing/PostProc/getMovieCovers.php b/misc/testing/PostProc/getMovieCovers.php index a0fca34ca..3cdba1711 100644 --- a/misc/testing/PostProc/getMovieCovers.php +++ b/misc/testing/PostProc/getMovieCovers.php @@ -3,9 +3,9 @@ //This script will update all records in the movieinfo table where there is no cover require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\MovieInfo; -use Blacklight\ColorCLI; use Blacklight\Movie; +use Blacklight\ColorCLI; +use App\Models\MovieInfo; $movie = new Movie(['Echo' => true]); $colorCli = new ColorCLI(); diff --git a/misc/testing/PostProc/getTraktData.php b/misc/testing/PostProc/getTraktData.php index b65b66b83..9c90e1d17 100644 --- a/misc/testing/PostProc/getTraktData.php +++ b/misc/testing/PostProc/getTraktData.php @@ -3,9 +3,9 @@ //This script will update all records in the movieinfo table where there is no cover require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\MovieInfo; -use Blacklight\ColorCLI; use Blacklight\Movie; +use Blacklight\ColorCLI; +use App\Models\MovieInfo; use Blacklight\processing\tv\TraktTv; $movie = new Movie(['Echo' => true]); diff --git a/misc/testing/PostProc/getXXXCovers.php b/misc/testing/PostProc/getXXXCovers.php index 8c0d1d343..d8f5244ec 100644 --- a/misc/testing/PostProc/getXXXCovers.php +++ b/misc/testing/PostProc/getXXXCovers.php @@ -3,8 +3,8 @@ //This script will update all records in the xxxinfo table where there is no cover require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use Blacklight\ColorCLI; use Blacklight\XXX; +use Blacklight\ColorCLI; $movie = new XXX(); $c = new ColorCLI(); diff --git a/misc/testing/PostProc/updateConsoleImages.php b/misc/testing/PostProc/updateConsoleImages.php index e48d602e5..22a6aee5b 100644 --- a/misc/testing/PostProc/updateConsoleImages.php +++ b/misc/testing/PostProc/updateConsoleImages.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\ConsoleInfo; use Blacklight\ColorCLI; +use App\Models\ConsoleInfo; use Illuminate\Support\Facades\File; $covers = $updated = $deleted = 0; diff --git a/misc/testing/PostProc/updateGamesImages.php b/misc/testing/PostProc/updateGamesImages.php index 17d6d278b..99421dda2 100644 --- a/misc/testing/PostProc/updateGamesImages.php +++ b/misc/testing/PostProc/updateGamesImages.php @@ -2,9 +2,9 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\GamesInfo; use App\Models\Settings; use Blacklight\ColorCLI; +use App\Models\GamesInfo; use Blacklight\utility\Utility; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; diff --git a/misc/testing/PostProc/updateMovieImages.php b/misc/testing/PostProc/updateMovieImages.php index 94b6fea0f..0cce5d47b 100644 --- a/misc/testing/PostProc/updateMovieImages.php +++ b/misc/testing/PostProc/updateMovieImages.php @@ -2,9 +2,9 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\MovieInfo; use App\Models\Settings; use Blacklight\ColorCLI; +use App\Models\MovieInfo; use Blacklight\utility\Utility; use Illuminate\Support\Facades\File; diff --git a/misc/testing/PostProc/updateMusicImages.php b/misc/testing/PostProc/updateMusicImages.php index 15dafd306..f7bb3c216 100644 --- a/misc/testing/PostProc/updateMusicImages.php +++ b/misc/testing/PostProc/updateMusicImages.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\MusicInfo; use Blacklight\ColorCLI; +use App\Models\MusicInfo; use Illuminate\Support\Facades\File; $covers = $updated = $deleted = 0; diff --git a/misc/testing/Releases/fixReleaseNames.php b/misc/testing/Releases/fixReleaseNames.php index a20588518..7b2c8b484 100755 --- a/misc/testing/Releases/fixReleaseNames.php +++ b/misc/testing/Releases/fixReleaseNames.php @@ -9,10 +9,10 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; +use Blacklight\NNTP; use App\Models\Settings; use Blacklight\ColorCLI; use Blacklight\NameFixer; -use Blacklight\NNTP; $namefixer = new NameFixer(); $colorCli = new ColorCLI(); diff --git a/misc/testing/Releases/recategorize.php b/misc/testing/Releases/recategorize.php index 4a6b7ba5a..44a939205 100644 --- a/misc/testing/Releases/recategorize.php +++ b/misc/testing/Releases/recategorize.php @@ -2,10 +2,10 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\Category; use App\Models\Release; -use Blacklight\Categorize; +use App\Models\Category; use Blacklight\ColorCLI; +use Blacklight\Categorize; use Blacklight\ConsoleTools; use Illuminate\Support\Facades\DB; diff --git a/misc/testing/Tests/test_amazon_API.php b/misc/testing/Tests/test_amazon_API.php index 5699d2d86..17454f1a8 100644 --- a/misc/testing/Tests/test_amazon_API.php +++ b/misc/testing/Tests/test_amazon_API.php @@ -3,9 +3,9 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; use ApaiIO\ApaiIO; -use ApaiIO\Configuration\GenericConfiguration; -use ApaiIO\Operations\Search; use App\Models\Settings; +use ApaiIO\Operations\Search; +use ApaiIO\Configuration\GenericConfiguration; $pubkey = Settings::settingValue('APIs..amazonpubkey'); $privkey = Settings::settingValue('APIs..amazonprivkey'); diff --git a/misc/testing/Tests/test_tvdb_API.php b/misc/testing/Tests/test_tvdb_API.php index 9865d1bf2..2236b5539 100755 --- a/misc/testing/Tests/test_tvdb_API.php +++ b/misc/testing/Tests/test_tvdb_API.php @@ -2,11 +2,11 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; +use Blacklight\processing\tv\TVDB; +use Adrenth\Thetvdb\Exception\UnauthorizedException; +use Adrenth\Thetvdb\Exception\RequestFailedException; use Adrenth\Thetvdb\Exception\InvalidArgumentException; use Adrenth\Thetvdb\Exception\InvalidJsonInResponseException; -use Adrenth\Thetvdb\Exception\RequestFailedException; -use Adrenth\Thetvdb\Exception\UnauthorizedException; -use Blacklight\processing\tv\TVDB; $c = new Blacklight\ColorCLI(); $tvdb = new TVDB(); diff --git a/misc/update/backfill.php b/misc/update/backfill.php index a73777a69..4951b78e8 100644 --- a/misc/update/backfill.php +++ b/misc/update/backfill.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use Blacklight\Backfill; use Blacklight\NNTP; +use Blacklight\Backfill; // Create the connection here and pass $nntp = new NNTP(); diff --git a/misc/update/postprocess.php b/misc/update/postprocess.php index 1384693d1..5e7398116 100644 --- a/misc/update/postprocess.php +++ b/misc/update/postprocess.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\Settings; use Blacklight\NNTP; +use App\Models\Settings; use Blacklight\processing\PostProcess; /** diff --git a/misc/update/tmux/bin/groupfixrelnames.php b/misc/update/tmux/bin/groupfixrelnames.php index b0cc5140b..45aadbb77 100644 --- a/misc/update/tmux/bin/groupfixrelnames.php +++ b/misc/update/tmux/bin/groupfixrelnames.php @@ -2,18 +2,18 @@ require_once dirname(__DIR__, 4).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\Category; +use Blacklight\Nfo; +use Blacklight\NZB; +use Blacklight\NNTP; use App\Models\Predb; use App\Models\Release; +use App\Models\Category; use App\Models\Settings; use Blacklight\ColorCLI; use Blacklight\NameFixer; -use Blacklight\Nfo; -use Blacklight\NNTP; -use Blacklight\NZB; use Blacklight\NZBContents; -use Blacklight\processing\PostProcess; use Illuminate\Support\Facades\DB; +use Blacklight\processing\PostProcess; $colorCli = new ColorCLI(); if (! isset($argv[1])) { diff --git a/misc/update/tmux/bin/update_groups.php b/misc/update/tmux/bin/update_groups.php index 4891a838f..8def3ddcb 100644 --- a/misc/update/tmux/bin/update_groups.php +++ b/misc/update/tmux/bin/update_groups.php @@ -2,12 +2,12 @@ require_once dirname(__DIR__, 4).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\Group; -use App\Models\ShortGroup; -use Blacklight\ColorCLI; -use Blacklight\ConsoleTools; use Blacklight\NNTP; +use App\Models\Group; +use Blacklight\ColorCLI; +use App\Models\ShortGroup; use Illuminate\Support\Arr; +use Blacklight\ConsoleTools; use Illuminate\Support\Facades\DB; $start = now(); diff --git a/misc/update/tmux/monitor.php b/misc/update/tmux/monitor.php index 23b8a92fd..a0af497e0 100644 --- a/misc/update/tmux/monitor.php +++ b/misc/update/tmux/monitor.php @@ -2,13 +2,13 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use App\Models\Category; +use Blacklight\Tmux; use App\Models\Release; +use Blacklight\TmuxRun; +use App\Models\Category; use App\Models\Settings; use Blacklight\ColorCLI; -use Blacklight\Tmux; use Blacklight\TmuxOutput; -use Blacklight\TmuxRun; use Illuminate\Support\Arr; use Illuminate\Support\Facades\DB; diff --git a/misc/update/update_binaries.php b/misc/update/update_binaries.php index f3d53d023..d41c89f90 100644 --- a/misc/update/update_binaries.php +++ b/misc/update/update_binaries.php @@ -2,11 +2,11 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; +use Blacklight\NNTP; use App\Models\Group; use App\Models\Settings; use Blacklight\Binaries; use Blacklight\ColorCLI; -use Blacklight\NNTP; $maxHeaders = (int) Settings::settingValue('..max_headers_iteration') ?: 1000000; $colorCli = new ColorCLI();