Update controllers

This commit is contained in:
DariusIII
2022-10-23 23:18:00 +02:00
parent 05907009ae
commit 4d188afb52
65 changed files with 195 additions and 183 deletions
+3 -4
View File
@@ -8,11 +8,11 @@ use Blacklight\NZB;
class FileListController extends BasePageController
{
/**
* @param $guid
* @param string $guid
*
* @throws \Exception
*/
public function show($guid)
public function show(string $guid): void
{
$this->setPrefs();
$nzb = new NZB();
@@ -31,8 +31,7 @@ class FileListController extends BasePageController
ob_start();
@readgzfile($nzbpath);
$nzbfile = ob_get_contents();
ob_end_clean();
$nzbfile = ob_get_clean();
$ret = $nzb->nzbFileList($nzbfile);