mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
CS fixes
This commit is contained in:
@@ -50,9 +50,6 @@ class Books
|
||||
|
||||
public array $failCache;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ColorCLI
|
||||
*/
|
||||
protected ColorCLI $colorCli;
|
||||
|
||||
/**
|
||||
@@ -395,7 +392,6 @@ class Books
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null $amazdata
|
||||
* @return false|int|string
|
||||
*
|
||||
* @throws \Exception
|
||||
|
||||
@@ -55,9 +55,6 @@ class IRCScraper extends IRCClient
|
||||
*/
|
||||
protected mixed $_titleIgnoreRegex;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ManticoreSearch
|
||||
*/
|
||||
protected manticoreSearch $manticoreSearch;
|
||||
|
||||
private ElasticSearchSiteSearch $elasticsearch;
|
||||
|
||||
@@ -28,9 +28,6 @@ class ManticoreSearch
|
||||
|
||||
public Search $search;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ColorCLI
|
||||
*/
|
||||
private ColorCLI $cli;
|
||||
|
||||
/**
|
||||
|
||||
@@ -294,7 +294,6 @@ class Music
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null $amazdata
|
||||
* @return int|mixed
|
||||
*
|
||||
* @throws \Exception
|
||||
|
||||
@@ -474,6 +474,7 @@ class NNTP extends \Net_NNTP_Client
|
||||
$data[$key] = $headerArray;
|
||||
$iterator = 0;
|
||||
}
|
||||
|
||||
// Return the array of headers.
|
||||
return $data;
|
||||
}
|
||||
@@ -568,6 +569,7 @@ class NNTP extends \Net_NNTP_Client
|
||||
if ($body !== '') {
|
||||
return $body;
|
||||
}
|
||||
|
||||
// Return the error.
|
||||
return $newBody;
|
||||
}
|
||||
|
||||
@@ -101,9 +101,6 @@ class NameFixer
|
||||
|
||||
protected string $fullall;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ColorCLI
|
||||
*/
|
||||
public ColorCLI $colorCLI;
|
||||
|
||||
/**
|
||||
@@ -118,9 +115,6 @@ class NameFixer
|
||||
*/
|
||||
public mixed $manticore;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ColorCLI
|
||||
*/
|
||||
protected ColorCLI $colorCli;
|
||||
|
||||
private ElasticSearchSiteSearch $elasticsearch;
|
||||
@@ -474,7 +468,6 @@ class NameFixer
|
||||
* @param $time 1: 24 hours, 2: no time limit
|
||||
* @param $echo 1: change the name, anything else: preview of what could have been changed.
|
||||
* @param $cats 1: other categories, 2: all categories
|
||||
* @param \Blacklight\NNTP $nntp
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
|
||||
@@ -56,9 +56,6 @@ class Nfo
|
||||
|
||||
public const NFO_FOUND = 1; // Release has an NFO.
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ColorCLI
|
||||
*/
|
||||
protected ColorCLI $colorCli;
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,9 +42,6 @@ class ReleaseImage
|
||||
*/
|
||||
public string $vidSavePath;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ColorCLI
|
||||
*/
|
||||
protected ColorCLI $colorCli;
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,9 +42,6 @@ class ReleaseRemover
|
||||
*/
|
||||
protected string $query;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\Releases
|
||||
*/
|
||||
protected Releases $releases;
|
||||
|
||||
/**
|
||||
@@ -52,19 +49,10 @@ class ReleaseRemover
|
||||
*/
|
||||
protected array $result;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\NZB
|
||||
*/
|
||||
private NZB $nzb;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ReleaseImage
|
||||
*/
|
||||
private ReleaseImage $releaseImage;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ColorCLI
|
||||
*/
|
||||
protected ColorCLI $colorCli;
|
||||
|
||||
public function __construct()
|
||||
|
||||
@@ -23,9 +23,6 @@ class Releases extends Release
|
||||
|
||||
public const PASSWD_RAR = 1; // Definitely passworded.
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ManticoreSearch
|
||||
*/
|
||||
public ManticoreSearch $manticoreSearch;
|
||||
|
||||
public int $passwordStatus;
|
||||
|
||||
@@ -19,9 +19,6 @@ class Tmux
|
||||
|
||||
public $tmux_session;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ColorCLI
|
||||
*/
|
||||
protected ColorCLI $colorCli;
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,9 +34,6 @@ class XXX
|
||||
|
||||
protected string $imgSavePath;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ReleaseImage
|
||||
*/
|
||||
protected ReleaseImage $releaseImage;
|
||||
|
||||
protected string|int|null $movieQty;
|
||||
@@ -45,9 +42,6 @@ class XXX
|
||||
|
||||
protected string $cookie;
|
||||
|
||||
/**
|
||||
* @var \Blacklight\ColorCLI
|
||||
*/
|
||||
protected ColorCLI $colorCli;
|
||||
|
||||
public function __construct()
|
||||
@@ -282,9 +276,6 @@ class XXX
|
||||
return array_column($res, 'title');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null $gid
|
||||
*/
|
||||
public function getGenres(bool $activeOnly = false, $gid = null): mixed
|
||||
{
|
||||
if ($activeOnly) {
|
||||
|
||||
@@ -84,6 +84,7 @@ class Utility
|
||||
$options['capath'] = config('nntmux_ssl.ssl_capath');
|
||||
}
|
||||
}
|
||||
|
||||
// If we set the transport to tls and the server falls back to ssl,
|
||||
// the context options would be for tls and would not apply to ssl,
|
||||
// so set both tls and ssl context in case the server does not support tls.
|
||||
|
||||
@@ -268,8 +268,6 @@ if (! function_exists('is_it_json')) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \STS\ZipStream\ZipStream
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
function getStreamingZip(array $guids = []): STS\ZipStream\ZipStream
|
||||
|
||||
@@ -8,8 +8,6 @@ use App\Jobs\SendContactUsEmail;
|
||||
class ContactUsController extends BasePageController
|
||||
{
|
||||
/**
|
||||
* @return null
|
||||
*
|
||||
* @throws \Illuminate\Validation\ValidationException
|
||||
*/
|
||||
public function contact(ContactContactURequest $request)
|
||||
|
||||
@@ -225,9 +225,6 @@ class UsenetGroup extends Model
|
||||
return $res === null ? 0 : $res->count(['id']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null $active
|
||||
*/
|
||||
public static function getGroupsRange(string $groupname = '', $active = null): LengthAwarePaginator
|
||||
{
|
||||
$groups = self::query()->groupBy('id')->orderBy('name');
|
||||
|
||||
@@ -404,7 +404,6 @@ function errorOnSQL()
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \PDOStatement $ps
|
||||
* @return bool|int|string
|
||||
*/
|
||||
function getTableRowCount(PDOStatement $ps, $table)
|
||||
|
||||
Reference in New Issue
Block a user