Fix some PHPStan errors

This commit is contained in:
Alex Cabal 2022-07-24 19:33:32 -05:00
parent 7071504034
commit fe247568bb
3 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,7 @@ require_once('Core.php');
$ebooks = [];
$author = '';
$authorUrl = '';
try{
$urlPath = trim(str_replace('.', '', HttpInput::Str(GET, 'url-path', true) ?? ''), '/'); // Contains the portion of the URL (without query string) that comes after https://standardebooks.org/ebooks/

View file

@ -20,6 +20,8 @@ try{
$queryString = '';
$feedUrl = null;
$feedTitle = '';
$collectionName = '';
$collectionType = '';
if($page <= 0){
$page = 1;

View file

@ -6,6 +6,8 @@ $collection = HttpInput::Str(GET, 'collection', false);
$name = null;
$target = null;
$feedTypes = ['opds', 'atom', 'rss'];
$feedTitle = '';
$feedUrl = '';
$title = '';
$description = '';
$label = null;