diff --git a/Blacklight/Books.php b/Blacklight/Books.php index 259a26b43..20d6e9705 100755 --- a/Blacklight/Books.php +++ b/Blacklight/Books.php @@ -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 diff --git a/Blacklight/IRCScraper.php b/Blacklight/IRCScraper.php index 5693acbf9..abbd46f18 100755 --- a/Blacklight/IRCScraper.php +++ b/Blacklight/IRCScraper.php @@ -55,9 +55,6 @@ class IRCScraper extends IRCClient */ protected mixed $_titleIgnoreRegex; - /** - * @var \Blacklight\ManticoreSearch - */ protected manticoreSearch $manticoreSearch; private ElasticSearchSiteSearch $elasticsearch; diff --git a/Blacklight/ManticoreSearch.php b/Blacklight/ManticoreSearch.php index 51f14664b..572ebefb9 100644 --- a/Blacklight/ManticoreSearch.php +++ b/Blacklight/ManticoreSearch.php @@ -28,9 +28,6 @@ class ManticoreSearch public Search $search; - /** - * @var \Blacklight\ColorCLI - */ private ColorCLI $cli; /** diff --git a/Blacklight/Music.php b/Blacklight/Music.php index c284e33e1..928c9e89f 100755 --- a/Blacklight/Music.php +++ b/Blacklight/Music.php @@ -294,7 +294,6 @@ class Music } /** - * @param null $amazdata * @return int|mixed * * @throws \Exception diff --git a/Blacklight/NNTP.php b/Blacklight/NNTP.php index c97350b2a..bf517ea20 100755 --- a/Blacklight/NNTP.php +++ b/Blacklight/NNTP.php @@ -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; } diff --git a/Blacklight/NameFixer.php b/Blacklight/NameFixer.php index 289233254..70c533e1d 100755 --- a/Blacklight/NameFixer.php +++ b/Blacklight/NameFixer.php @@ -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 */ diff --git a/Blacklight/Nfo.php b/Blacklight/Nfo.php index ec144cce9..7294c5de2 100755 --- a/Blacklight/Nfo.php +++ b/Blacklight/Nfo.php @@ -56,9 +56,6 @@ class Nfo public const NFO_FOUND = 1; // Release has an NFO. - /** - * @var \Blacklight\ColorCLI - */ protected ColorCLI $colorCli; /** diff --git a/Blacklight/ReleaseImage.php b/Blacklight/ReleaseImage.php index c62e0e9fe..45edee999 100755 --- a/Blacklight/ReleaseImage.php +++ b/Blacklight/ReleaseImage.php @@ -42,9 +42,6 @@ class ReleaseImage */ public string $vidSavePath; - /** - * @var \Blacklight\ColorCLI - */ protected ColorCLI $colorCli; /** diff --git a/Blacklight/ReleaseRemover.php b/Blacklight/ReleaseRemover.php index 241a3a274..6759ea4b6 100755 --- a/Blacklight/ReleaseRemover.php +++ b/Blacklight/ReleaseRemover.php @@ -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() diff --git a/Blacklight/Releases.php b/Blacklight/Releases.php index 42b5954ca..93a87f981 100644 --- a/Blacklight/Releases.php +++ b/Blacklight/Releases.php @@ -23,9 +23,6 @@ class Releases extends Release public const PASSWD_RAR = 1; // Definitely passworded. - /** - * @var \Blacklight\ManticoreSearch - */ public ManticoreSearch $manticoreSearch; public int $passwordStatus; diff --git a/Blacklight/Tmux.php b/Blacklight/Tmux.php index e742903c7..7d1696036 100755 --- a/Blacklight/Tmux.php +++ b/Blacklight/Tmux.php @@ -19,9 +19,6 @@ class Tmux public $tmux_session; - /** - * @var \Blacklight\ColorCLI - */ protected ColorCLI $colorCli; /** diff --git a/Blacklight/XXX.php b/Blacklight/XXX.php index 065f869f9..6064aaddd 100755 --- a/Blacklight/XXX.php +++ b/Blacklight/XXX.php @@ -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) { diff --git a/Blacklight/utility/Utility.php b/Blacklight/utility/Utility.php index d178ddaf2..a955974ab 100755 --- a/Blacklight/utility/Utility.php +++ b/Blacklight/utility/Utility.php @@ -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. diff --git a/app/Extensions/helper/helpers.php b/app/Extensions/helper/helpers.php index 5454cf937..c83c25107 100644 --- a/app/Extensions/helper/helpers.php +++ b/app/Extensions/helper/helpers.php @@ -268,8 +268,6 @@ if (! function_exists('is_it_json')) { } /** - * @return \STS\ZipStream\ZipStream - * * @throws \Exception */ function getStreamingZip(array $guids = []): STS\ZipStream\ZipStream diff --git a/app/Http/Controllers/ContactUsController.php b/app/Http/Controllers/ContactUsController.php index 4560938c0..515a39ed9 100644 --- a/app/Http/Controllers/ContactUsController.php +++ b/app/Http/Controllers/ContactUsController.php @@ -8,8 +8,6 @@ use App\Jobs\SendContactUsEmail; class ContactUsController extends BasePageController { /** - * @return null - * * @throws \Illuminate\Validation\ValidationException */ public function contact(ContactContactURequest $request) diff --git a/app/Models/UsenetGroup.php b/app/Models/UsenetGroup.php index d0ec99cdd..79003efbd 100644 --- a/app/Models/UsenetGroup.php +++ b/app/Models/UsenetGroup.php @@ -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'); diff --git a/misc/update/tmux/monitor.php b/misc/update/tmux/monitor.php index 42d3bfa5c..c4124d255 100644 --- a/misc/update/tmux/monitor.php +++ b/misc/update/tmux/monitor.php @@ -404,7 +404,6 @@ function errorOnSQL() } /** - * @param \PDOStatement $ps * @return bool|int|string */ function getTableRowCount(PDOStatement $ps, $table)