mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-05 18:19:59 -05:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
@@ -40,7 +40,7 @@ class PlaylistController extends Controller
|
||||
/**
|
||||
* Display All Playlists.
|
||||
*/
|
||||
public function index(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
public function index(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
|
||||
{
|
||||
$playlists = Playlist::with('user')->withCount('torrents')->where('is_private', '=', 0)->orderBy('name', 'ASC')->paginate(24);
|
||||
|
||||
@@ -50,7 +50,7 @@ class PlaylistController extends Controller
|
||||
/**
|
||||
* Show Playlist Create Form.
|
||||
*/
|
||||
public function create(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
public function create(): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
|
||||
{
|
||||
return \view('playlist.create');
|
||||
}
|
||||
@@ -112,7 +112,7 @@ class PlaylistController extends Controller
|
||||
*
|
||||
* @param \App\Playlist $id
|
||||
*/
|
||||
public function show($id): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
public function show($id): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
|
||||
{
|
||||
$playlist = Playlist::findOrFail($id);
|
||||
|
||||
@@ -151,7 +151,7 @@ class PlaylistController extends Controller
|
||||
*
|
||||
* @param \App\Playlist $id
|
||||
*/
|
||||
public function edit($id): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
public function edit($id): \Illuminate\Contracts\View\Factory | \Illuminate\View\View
|
||||
{
|
||||
$user = \auth()->user();
|
||||
$playlist = Playlist::findOrFail($id);
|
||||
@@ -164,7 +164,8 @@ class PlaylistController extends Controller
|
||||
/**
|
||||
* Update A Playlist.
|
||||
*
|
||||
* @param \App\Playlist $id
|
||||
* @param \App\Playlist $id
|
||||
*
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*/
|
||||
public function update(Request $request, $id)
|
||||
@@ -233,7 +234,7 @@ class PlaylistController extends Controller
|
||||
*
|
||||
* @param $id
|
||||
*/
|
||||
public function downloadPlaylist($id): \Illuminate\Http\RedirectResponse|\Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||
public function downloadPlaylist($id): \Illuminate\Http\RedirectResponse | \Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||
{
|
||||
// Extend The Maximum Execution Time
|
||||
\set_time_limit(300);
|
||||
|
||||
Reference in New Issue
Block a user