mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-17 18:29:39 -06:00
chore: styleci
This commit is contained in:
@@ -250,7 +250,7 @@ class UserController extends Controller
|
||||
// Style Settings
|
||||
$user->style = (int) $request->input('theme');
|
||||
$css_url = $request->input('custom_css');
|
||||
if (isset($css_url) && !filter_var($css_url, FILTER_VALIDATE_URL)) {
|
||||
if (isset($css_url) && ! filter_var($css_url, FILTER_VALIDATE_URL)) {
|
||||
return redirect()->route('users.show', ['username' => $user->username])
|
||||
->withErrors('The URL for the external CSS stylesheet is invalid, try it again with a valid URL.');
|
||||
}
|
||||
@@ -1993,7 +1993,7 @@ class UserController extends Controller
|
||||
|
||||
if ($zip->open($path.'/'.$zipFileName, ZipArchive::CREATE) === true) {
|
||||
// Match History Results To Torrents
|
||||
$failCSV = '"Name","URL","ID","info_hash"
|
||||
$failCSV = '"Name","URL","ID","info_hash"
|
||||
';
|
||||
$failCount = 0;
|
||||
foreach ($historyTorrents as $historyTorrent) {
|
||||
@@ -2005,7 +2005,7 @@ class UserController extends Controller
|
||||
|
||||
// The Torrent File Exist?
|
||||
if (! file_exists(getcwd().'/files/torrents/'.$torrent->file_name)) {
|
||||
$failCSV .= '"'.$torrent->name.'","'.route('torrent', ['id' => $torrent->id]).'","'.$torrent->id.'","'.$historyTorrent.'"
|
||||
$failCSV .= '"'.$torrent->name.'","'.route('torrent', ['id' => $torrent->id]).'","'.$torrent->id.'","'.$historyTorrent.'"
|
||||
';
|
||||
$failCount++;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user