chore: styleci

This commit is contained in:
HDVinnie
2020-04-24 16:50:21 -04:00
parent d66c18aaa7
commit 12294fd94a
6 changed files with 8 additions and 8 deletions

View File

@@ -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 {