mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 13:07:59 +01:00
Global Facades
This commit is contained in:
parent
b8fa6cb1f7
commit
2a62eaa50a
94 changed files with 202 additions and 202 deletions
|
@ -22,9 +22,9 @@ namespace App\Commands;
|
|||
|
||||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use DB;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class AddTrackToPlaylistCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -23,9 +23,9 @@ namespace App\Commands;
|
|||
use App\Models\Album;
|
||||
use App\Models\Image;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Gate;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class CreateAlbumCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
namespace App\Commands;
|
||||
|
||||
use App\Models\Announcement;
|
||||
use Gate;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class CreateAnnouncementCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -25,9 +25,9 @@ use App\Models\Comment;
|
|||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Notification;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class CreateCommentCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
namespace App\Commands;
|
||||
|
||||
use App\Models\Genre;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Str;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class CreateGenreCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
namespace App\Commands;
|
||||
|
||||
use App\Models\Playlist;
|
||||
use Auth;
|
||||
use Notification;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class CreatePlaylistCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
namespace App\Commands;
|
||||
|
||||
use App\Models\ShowSong;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Str;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class CreateShowSongCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
namespace App\Commands;
|
||||
|
||||
use App\Models\User;
|
||||
use Gate;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class CreateUserCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
namespace App\Commands;
|
||||
|
||||
use App\Models\Album;
|
||||
use Auth;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
|
||||
class DeleteAlbumCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -22,9 +22,9 @@ namespace App\Commands;
|
|||
|
||||
use App\Jobs\DeleteGenre;
|
||||
use App\Models\Genre;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class DeleteGenreCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
namespace App\Commands;
|
||||
|
||||
use App\Models\Playlist;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class DeletePlaylistCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -22,9 +22,9 @@ namespace App\Commands;
|
|||
|
||||
use App\Jobs\DeleteShowSong;
|
||||
use App\Models\ShowSong;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class DeleteShowSongCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
namespace App\Commands;
|
||||
|
||||
use App\Models\Track;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
|
||||
class DeleteTrackCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -23,10 +23,10 @@ namespace App\Commands;
|
|||
use App\Models\Album;
|
||||
use App\Models\Image;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use DB;
|
||||
use Gate;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class EditAlbumCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Commands;
|
|||
|
||||
use App\Models\PinnedPlaylist;
|
||||
use App\Models\Playlist;
|
||||
use Auth;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class EditPlaylistCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -26,9 +26,9 @@ use App\Models\Playlist;
|
|||
use App\Models\Track;
|
||||
use App\Models\TrackType;
|
||||
use App\Models\User;
|
||||
use DB;
|
||||
use Gate;
|
||||
use Notification;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
|
||||
class EditTrackCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -26,7 +26,7 @@ use App\Models\Track;
|
|||
use App\Models\TrackFile;
|
||||
use AudioCache;
|
||||
use FFmpegMovie;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Support\Str;
|
||||
use SplFileInfo;
|
||||
|
|
|
@ -34,7 +34,7 @@ use App\Models\ResourceUser;
|
|||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class MergeAccountsCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -28,8 +28,8 @@ use App\Models\TrackType;
|
|||
use App\Models\User;
|
||||
use AudioCache;
|
||||
use Carbon\Carbon;
|
||||
use Config;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use getID3;
|
||||
use Illuminate\Support\Str;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Commands;
|
|||
|
||||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class RemoveTrackFromPlaylistCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -22,10 +22,10 @@ namespace App\Commands;
|
|||
|
||||
use App\Jobs\UpdateTagsForRenamedGenre;
|
||||
use App\Models\Genre;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Support\Str;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class RenameGenreCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -22,10 +22,10 @@ namespace App\Commands;
|
|||
|
||||
use App\Jobs\UpdateTagsForRenamedShowSong;
|
||||
use App\Models\ShowSong;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Support\Str;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class RenameShowSongCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -22,9 +22,9 @@ namespace App\Commands;
|
|||
|
||||
use App\Models\Image;
|
||||
use App\Models\User;
|
||||
use DB;
|
||||
use Gate;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class SaveAccountSettingsCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -26,9 +26,9 @@ use App\Models\Favourite;
|
|||
use App\Models\Playlist;
|
||||
use App\Models\ResourceUser;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use DB;
|
||||
use Notification;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
|
||||
class ToggleFavouriteCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Commands;
|
|||
|
||||
use App\Models\Follower;
|
||||
use App\Models\ResourceUser;
|
||||
use Auth;
|
||||
use Notification;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
|
||||
class ToggleFollowingCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -22,13 +22,13 @@ namespace App\Commands;
|
|||
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Carbon\Carbon;
|
||||
use Config;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class UploadTrackCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace App\Console\Commands;
|
|||
use App\Models\ShowSong;
|
||||
use App\Models\Track;
|
||||
use App\Models\TrackType;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Console\Commands;
|
|||
|
||||
use App\Models\TrackFile;
|
||||
use Carbon\Carbon;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class ClearTrackCache extends Command
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\Image;
|
||||
use Config;
|
||||
use DB;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use getID3;
|
||||
use Illuminate\Console\Command;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
|
|
|
@ -8,11 +8,11 @@ use App\Models\Genre;
|
|||
use App\Models\Image;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Carbon\Carbon;
|
||||
use Config;
|
||||
use DB;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use getID3;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Str;
|
||||
|
|
|
@ -33,7 +33,7 @@ use App\Models\ResourceUser;
|
|||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Console\Commands;
|
|||
|
||||
use App\Models\Image;
|
||||
use App\Models\ResourceLogItem;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Exception;
|
||||
use Illuminate\Console\Command;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\TrackFile;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class RebuildFilesizes extends Command
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace App\Console\Commands;
|
|||
use App\Jobs\EncodeTrackFile;
|
||||
use App\Models\Track;
|
||||
use App\Models\TrackFile;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\ResourceLogItem;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class RefreshCache extends Command
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\TrackFile;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class VersionFiles extends Command
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Config;
|
||||
use Redirect;
|
||||
use View;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\Redirect;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class AccountController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use View;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class AdminController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,13 +20,13 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use App\AlbumDownloader;
|
||||
use App\Models\Album;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use Redirect;
|
||||
use View;
|
||||
use Illuminate\Support\Facades\Redirect;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class AlbumsController extends Controller
|
||||
{
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Http\Controllers\Api\Mobile;
|
|||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Track;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class TracksController extends Controller
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@ use App\Commands\UploadTrackCommand;
|
|||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Image;
|
||||
use App\Models\Track;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class TracksController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -24,10 +24,10 @@ use App\Commands\SaveAccountSettingsCommand;
|
|||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Image;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Gate;
|
||||
use Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class AccountController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -29,11 +29,11 @@ use App\Models\Image;
|
|||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class AlbumsController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -24,8 +24,8 @@ use App\Commands\CreateAnnouncementCommand;
|
|||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Announcement;
|
||||
use Carbon\Carbon;
|
||||
use Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class AnnouncementsController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use App;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use App\Commands\CreateUserCommand;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Album;
|
||||
|
@ -31,10 +31,10 @@ use App\Models\Image;
|
|||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use ColorThief\ColorThief;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Helpers;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class ArtistsController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -20,12 +20,12 @@
|
|||
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use App;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use App\Commands\CreateCommentCommand;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Comment;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class CommentsController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Http\Controllers\Api\Web;
|
|||
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class DashboardController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -26,9 +26,9 @@ use App\Models\Album;
|
|||
use App\Models\Favourite;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class FavouritesController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -26,7 +26,7 @@ use App\Commands\RenameGenreCommand;
|
|||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Genre;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class GenresController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -23,8 +23,8 @@ namespace App\Http\Controllers\Api\Web;
|
|||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Image;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class ImagesController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@ use App\Models\Notification;
|
|||
use App\Models\Subscription;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Minishlink\WebPush\WebPush;
|
||||
|
||||
|
|
|
@ -31,10 +31,10 @@ use App\Models\Playlist;
|
|||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class PlaylistsController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@ use App\Http\Controllers\ApiControllerBase;
|
|||
use App\Library\Search;
|
||||
use Elasticsearch;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class SearchController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -26,7 +26,7 @@ use App\Commands\RenameShowSongCommand;
|
|||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\ShowSong;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class ShowSongsController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -23,13 +23,13 @@ namespace App\Http\Controllers\Api\Web;
|
|||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use Cache;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Support\Str;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class StatsController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@ use App\Models\Genre;
|
|||
use App\Models\License;
|
||||
use App\Models\ShowSong;
|
||||
use App\Models\TrackType;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class TaxonomiesController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -32,11 +32,11 @@ use App\Models\Track;
|
|||
use App\Models\TrackFile;
|
||||
use App\Models\TrackType;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
|
||||
class TracksController extends ApiControllerBase
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Commands\CommandBase;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
abstract class ApiControllerBase extends Controller
|
||||
{
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use App\Models\User;
|
||||
use Redirect;
|
||||
use View;
|
||||
use Illuminate\Support\Facades\Redirect;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class ArtistsController extends Controller
|
||||
{
|
||||
|
|
|
@ -22,15 +22,15 @@ namespace App\Http\Controllers;
|
|||
|
||||
use App\Models\Activity;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
|
||||
use League\OAuth2\Client\Token\AccessToken;
|
||||
use Log;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Poniverse\Lib\Client;
|
||||
use Redirect;
|
||||
use Request;
|
||||
use Illuminate\Support\Facades\Redirect;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
|
||||
class AuthController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use View;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class ContentController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use View;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,11 +20,11 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use App\Models\Image;
|
||||
use Config;
|
||||
use Redirect;
|
||||
use Response;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\Redirect;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
class ImagesController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,12 +20,12 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use App\Models\Email;
|
||||
use App\Models\EmailSubscription;
|
||||
use Auth;
|
||||
use DB;
|
||||
use View;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class NotificationsController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,14 +20,14 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use App\PlaylistDownloader;
|
||||
use Auth;
|
||||
use Redirect;
|
||||
use View;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Redirect;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class PlaylistsController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use View;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class StatsController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,16 +20,16 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use App\Models\TrackFile;
|
||||
use Auth;
|
||||
use Config;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Http\Request;
|
||||
use Redirect;
|
||||
use Response;
|
||||
use View;
|
||||
use Illuminate\Support\Facades\Redirect;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class TracksController extends Controller
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use View;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class UploaderController extends Controller
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
|
||||
class Authorize
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Http\Middleware;
|
|||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
use Log;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class DisabledAccountCheck
|
||||
{
|
||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Jobs;
|
|||
|
||||
use App\Models\Genre;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use SerializesModels;
|
||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Jobs;
|
|||
|
||||
use App\Models\ShowSong;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use SerializesModels;
|
||||
|
|
|
@ -25,13 +25,13 @@ use App\Exceptions\InvalidEncodeOptionsException;
|
|||
use App\Models\Track;
|
||||
use App\Models\TrackFile;
|
||||
use Carbon\Carbon;
|
||||
use Config;
|
||||
use DB;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Log;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Symfony\Component\Process\Exception\ProcessFailedException;
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
|
||||
namespace App\Jobs;
|
||||
|
||||
use App;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Bus\Queueable;
|
||||
|
||||
abstract class Job
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Jobs;
|
|||
|
||||
use App\Contracts\Searchable;
|
||||
use App\Jobs\Job;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
|
|
|
@ -22,12 +22,12 @@ namespace App\Jobs;
|
|||
|
||||
use App\Models\Genre;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use Cache;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Log;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use SerializesModels;
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,11 +22,11 @@ namespace App\Jobs;
|
|||
|
||||
use App\Models\ShowSong;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use Cache;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Log;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use SerializesModels;
|
||||
|
||||
/**
|
||||
|
|
|
@ -26,7 +26,7 @@ use App\Models\Comment;
|
|||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Config;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Minishlink\WebPush\WebPush;
|
||||
|
||||
class NativeDriver extends AbstractDriver
|
||||
|
|
|
@ -30,8 +30,8 @@ use App\Models\Playlist;
|
|||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Carbon\Carbon;
|
||||
use Log;
|
||||
use Mail;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
|
||||
class PonyfmDriver extends AbstractDriver
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@ use App\Models\Album;
|
|||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Elasticsearch\Client;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
|
|
|
@ -27,11 +27,11 @@ use App\Exceptions\TrackFileNotFoundException;
|
|||
use App\Traits\IndexedInElasticsearchTrait;
|
||||
use App\Traits\SlugTrait;
|
||||
use App\Traits\TrackCollection;
|
||||
use Auth;
|
||||
use Cache;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Exception;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Helpers;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
namespace App\Models;
|
||||
|
||||
use App\Contracts\Commentable;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
namespace App\Models;
|
||||
|
||||
use App\Traits\SlugTrait;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\Relation;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use Config;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use External;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
|
|
@ -27,9 +27,9 @@ use App\Exceptions\TrackFileNotFoundException;
|
|||
use App\Traits\IndexedInElasticsearchTrait;
|
||||
use App\Traits\SlugTrait;
|
||||
use App\Traits\TrackCollection;
|
||||
use Auth;
|
||||
use Cache;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Helpers;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
|
|
@ -20,11 +20,11 @@
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Request;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
|
||||
/**
|
||||
* App\Models\ResourceLogItem.
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
|
|
|
@ -27,13 +27,13 @@ use App\Exceptions\TrackFileNotFoundException;
|
|||
use App\Models\ResourceLogItem;
|
||||
use App\Traits\IndexedInElasticsearchTrait;
|
||||
use App\Traits\SlugTrait;
|
||||
use Auth;
|
||||
use Cache;
|
||||
use Config;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Exception;
|
||||
use External;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use getid3_writetags;
|
||||
use Helpers;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
@ -42,7 +42,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
|||
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Support\Str;
|
||||
use Log;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Venturecraft\Revisionable\RevisionableTrait;
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use App;
|
||||
use Config;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Helpers;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
|
|
@ -23,9 +23,9 @@ namespace App\Models;
|
|||
use App\Contracts\Commentable;
|
||||
use App\Contracts\Searchable;
|
||||
use App\Traits\IndexedInElasticsearchTrait;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Gravatar;
|
||||
use Illuminate\Auth\Authenticatable;
|
||||
use Illuminate\Auth\Passwords\CanResetPassword;
|
||||
|
@ -38,7 +38,7 @@ use Illuminate\Database\Eloquent\Relations\MorphMany;
|
|||
use Illuminate\Foundation\Auth\Access\Authorizable;
|
||||
use Illuminate\Support\Str;
|
||||
use League\OAuth2\Client\Token\AccessToken;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Venturecraft\Revisionable\RevisionableTrait;
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,7 +25,7 @@ use Illuminate\Foundation\Application;
|
|||
use Illuminate\Support\ServiceProvider;
|
||||
use PfmValidator;
|
||||
use Poniverse;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ use App\Policies\GenrePolicy;
|
|||
use App\Policies\ShowSongPolicy;
|
||||
use App\Policies\TrackPolicy;
|
||||
use App\Policies\UserPolicy;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
|
||||
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Traits;
|
|||
|
||||
use App\Contracts\Searchable;
|
||||
use App\Jobs\UpdateSearchIndexForEntity;
|
||||
use Config;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Elasticsearch;
|
||||
use Elasticsearch\Common\Exceptions\Missing404Exception;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace App\Traits;
|
|||
use App\Jobs\EncodeTrackFile;
|
||||
use App\Models\Track;
|
||||
use App\Models\TrackFile;
|
||||
use File;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\Relation;
|
||||
|
|
Loading…
Reference in a new issue