mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-02-14 17:24:22 +01:00
Improved a bunch of use statements.
This commit is contained in:
parent
7d05e68079
commit
185ead4ed0
20 changed files with 32 additions and 36 deletions
|
@ -22,8 +22,8 @@ namespace Poniverse\Ponyfm\Commands;
|
||||||
|
|
||||||
use Poniverse\Ponyfm\Models\Album;
|
use Poniverse\Ponyfm\Models\Album;
|
||||||
use Poniverse\Ponyfm\Models\Image;
|
use Poniverse\Ponyfm\Models\Image;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\Validator;
|
use Validator;
|
||||||
|
|
||||||
class CreateAlbumCommand extends CommandBase
|
class CreateAlbumCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,8 +26,8 @@ use Poniverse\Ponyfm\Models\Comment;
|
||||||
use Poniverse\Ponyfm\Models\Playlist;
|
use Poniverse\Ponyfm\Models\Playlist;
|
||||||
use Poniverse\Ponyfm\Models\Track;
|
use Poniverse\Ponyfm\Models\Track;
|
||||||
use Poniverse\Ponyfm\Models\User;
|
use Poniverse\Ponyfm\Models\User;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\Validator;
|
use Validator;
|
||||||
|
|
||||||
class CreateCommentCommand extends CommandBase
|
class CreateCommentCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace Poniverse\Ponyfm\Commands;
|
||||||
|
|
||||||
use Notification;
|
use Notification;
|
||||||
use Poniverse\Ponyfm\Models\Playlist;
|
use Poniverse\Ponyfm\Models\Playlist;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\Validator;
|
use Validator;
|
||||||
|
|
||||||
class CreatePlaylistCommand extends CommandBase
|
class CreatePlaylistCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace Poniverse\Ponyfm\Commands;
|
||||||
|
|
||||||
use Poniverse\Ponyfm\Models\PinnedPlaylist;
|
use Poniverse\Ponyfm\Models\PinnedPlaylist;
|
||||||
use Poniverse\Ponyfm\Models\Playlist;
|
use Poniverse\Ponyfm\Models\Playlist;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\Validator;
|
use Validator;
|
||||||
|
|
||||||
class EditPlaylistCommand extends CommandBase
|
class EditPlaylistCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace Poniverse\Ponyfm\Commands;
|
||||||
|
|
||||||
use Poniverse\Ponyfm\Models\Playlist;
|
use Poniverse\Ponyfm\Models\Playlist;
|
||||||
use Poniverse\Ponyfm\Models\Track;
|
use Poniverse\Ponyfm\Models\Track;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\DB;
|
use DB;
|
||||||
|
|
||||||
class RemoveTrackFromPlaylistCommand extends CommandBase
|
class RemoveTrackFromPlaylistCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,8 +23,8 @@ namespace Poniverse\Ponyfm\Commands;
|
||||||
use Poniverse\Ponyfm\Models\Image;
|
use Poniverse\Ponyfm\Models\Image;
|
||||||
use Poniverse\Ponyfm\Models\User;
|
use Poniverse\Ponyfm\Models\User;
|
||||||
use Gate;
|
use Gate;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\Validator;
|
use Validator;
|
||||||
|
|
||||||
class SaveAccountSettingsCommand extends CommandBase
|
class SaveAccountSettingsCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,8 +25,8 @@ use Poniverse\Ponyfm\Contracts\Favouritable;
|
||||||
use Poniverse\Ponyfm\Models\Favourite;
|
use Poniverse\Ponyfm\Models\Favourite;
|
||||||
use Poniverse\Ponyfm\Models\Playlist;
|
use Poniverse\Ponyfm\Models\Playlist;
|
||||||
use Poniverse\Ponyfm\Models\ResourceUser;
|
use Poniverse\Ponyfm\Models\ResourceUser;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\DB;
|
use DB;
|
||||||
use Poniverse\Ponyfm\Models\Track;
|
use Poniverse\Ponyfm\Models\Track;
|
||||||
|
|
||||||
class ToggleFavouriteCommand extends CommandBase
|
class ToggleFavouriteCommand extends CommandBase
|
||||||
|
|
|
@ -23,7 +23,6 @@ namespace Poniverse\Ponyfm\Console\Commands;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use File;
|
use File;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Facades\Cache;
|
|
||||||
use Poniverse\Ponyfm\Models\TrackFile;
|
use Poniverse\Ponyfm\Models\TrackFile;
|
||||||
|
|
||||||
class ClearTrackCache extends Command
|
class ClearTrackCache extends Command
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
|
|
||||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Config;
|
use Config;
|
||||||
use Illuminate\Support\Facades\Redirect;
|
use Redirect;
|
||||||
use View;
|
use View;
|
||||||
|
|
||||||
class AccountController extends Controller
|
class AccountController extends Controller
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Redirect;
|
|
||||||
use View;
|
use View;
|
||||||
|
|
||||||
class AdminController extends Controller
|
class AdminController extends Controller
|
||||||
|
|
|
@ -25,9 +25,9 @@ use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||||
use Poniverse\Ponyfm\Commands\SaveAccountSettingsCommand;
|
use Poniverse\Ponyfm\Commands\SaveAccountSettingsCommand;
|
||||||
use Poniverse\Ponyfm\Models\User;
|
use Poniverse\Ponyfm\Models\User;
|
||||||
use Gate;
|
use Gate;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\Input;
|
use Input;
|
||||||
use Illuminate\Support\Facades\Response;
|
use Response;
|
||||||
|
|
||||||
class AccountController extends ApiControllerBase
|
class AccountController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,8 +24,8 @@ use App;
|
||||||
use Poniverse\Ponyfm\Commands\CreateCommentCommand;
|
use Poniverse\Ponyfm\Commands\CreateCommentCommand;
|
||||||
use Poniverse\Ponyfm\Models\Comment;
|
use Poniverse\Ponyfm\Models\Comment;
|
||||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||||
use Illuminate\Support\Facades\Input;
|
use Input;
|
||||||
use Illuminate\Support\Facades\Response;
|
use Response;
|
||||||
|
|
||||||
class CommentsController extends ApiControllerBase
|
class CommentsController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,9 +22,8 @@ namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||||
|
|
||||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||||
use Poniverse\Ponyfm\Models\Track;
|
use Poniverse\Ponyfm\Models\Track;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\Input;
|
use Response;
|
||||||
use Illuminate\Support\Facades\Response;
|
|
||||||
|
|
||||||
class DashboardController extends ApiControllerBase
|
class DashboardController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,9 +26,9 @@ use Poniverse\Ponyfm\Models\Favourite;
|
||||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||||
use Poniverse\Ponyfm\Models\Playlist;
|
use Poniverse\Ponyfm\Models\Playlist;
|
||||||
use Poniverse\Ponyfm\Models\Track;
|
use Poniverse\Ponyfm\Models\Track;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\Input;
|
use Input;
|
||||||
use Illuminate\Support\Facades\Response;
|
use Response;
|
||||||
|
|
||||||
class FavouritesController extends ApiControllerBase
|
class FavouritesController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||||
|
|
||||||
use Poniverse\Ponyfm\Commands\ToggleFollowingCommand;
|
use Poniverse\Ponyfm\Commands\ToggleFollowingCommand;
|
||||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||||
use Illuminate\Support\Facades\Input;
|
use Input;
|
||||||
|
|
||||||
class FollowController extends ApiControllerBase
|
class FollowController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,7 @@ use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||||
use Poniverse\Ponyfm\Models\License;
|
use Poniverse\Ponyfm\Models\License;
|
||||||
use Poniverse\Ponyfm\Models\ShowSong;
|
use Poniverse\Ponyfm\Models\ShowSong;
|
||||||
use Poniverse\Ponyfm\Models\TrackType;
|
use Poniverse\Ponyfm\Models\TrackType;
|
||||||
use Illuminate\Support\Facades\DB;
|
use DB;
|
||||||
|
|
||||||
class TaxonomiesController extends ApiControllerBase
|
class TaxonomiesController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace Poniverse\Ponyfm\Http\Controllers;
|
||||||
|
|
||||||
use Poniverse\Ponyfm\Models\Image;
|
use Poniverse\Ponyfm\Models\Image;
|
||||||
use Config;
|
use Config;
|
||||||
use Illuminate\Support\Facades\App;
|
use App;
|
||||||
use Illuminate\Support\Facades\Redirect;
|
use Redirect;
|
||||||
use Response;
|
use Response;
|
||||||
|
|
||||||
class ImagesController extends Controller
|
class ImagesController extends Controller
|
||||||
|
|
|
@ -26,7 +26,7 @@ use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||||
use Poniverse\Ponyfm\Models\Track;
|
use Poniverse\Ponyfm\Models\Track;
|
||||||
use Poniverse\Ponyfm\PlaylistDownloader;
|
use Poniverse\Ponyfm\PlaylistDownloader;
|
||||||
use Auth;
|
use Auth;
|
||||||
use Illuminate\Support\Facades\Redirect;
|
use Redirect;
|
||||||
use View;
|
use View;
|
||||||
|
|
||||||
class PlaylistsController extends Controller
|
class PlaylistsController extends Controller
|
||||||
|
|
|
@ -25,7 +25,7 @@ use Poniverse\Ponyfm\Models\Track;
|
||||||
use Poniverse\Ponyfm\Models\TrackFile;
|
use Poniverse\Ponyfm\Models\TrackFile;
|
||||||
use Auth;
|
use Auth;
|
||||||
use Config;
|
use Config;
|
||||||
use Illuminate\Support\Facades\App;
|
use App;
|
||||||
use Redirect;
|
use Redirect;
|
||||||
use Response;
|
use Response;
|
||||||
use View;
|
use View;
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
use Illuminate\Support\Facades\Artisan;
|
|
||||||
|
|
||||||
class UpdateTrackFilesWithFilesize extends Migration
|
class UpdateTrackFilesWithFilesize extends Migration
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue