mirror of
https://github.com/standardebooks/web.git
synced 2025-07-17 11:56:38 -04:00
Fix some PHPStan errors
This commit is contained in:
parent
7071504034
commit
fe247568bb
3 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,7 @@ require_once('Core.php');
|
||||||
|
|
||||||
$ebooks = [];
|
$ebooks = [];
|
||||||
$author = '';
|
$author = '';
|
||||||
|
$authorUrl = '';
|
||||||
|
|
||||||
try{
|
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/
|
$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/
|
||||||
|
|
|
@ -20,6 +20,8 @@ try{
|
||||||
$queryString = '';
|
$queryString = '';
|
||||||
$feedUrl = null;
|
$feedUrl = null;
|
||||||
$feedTitle = '';
|
$feedTitle = '';
|
||||||
|
$collectionName = '';
|
||||||
|
$collectionType = '';
|
||||||
|
|
||||||
if($page <= 0){
|
if($page <= 0){
|
||||||
$page = 1;
|
$page = 1;
|
||||||
|
|
|
@ -6,6 +6,8 @@ $collection = HttpInput::Str(GET, 'collection', false);
|
||||||
$name = null;
|
$name = null;
|
||||||
$target = null;
|
$target = null;
|
||||||
$feedTypes = ['opds', 'atom', 'rss'];
|
$feedTypes = ['opds', 'atom', 'rss'];
|
||||||
|
$feedTitle = '';
|
||||||
|
$feedUrl = '';
|
||||||
$title = '';
|
$title = '';
|
||||||
$description = '';
|
$description = '';
|
||||||
$label = null;
|
$label = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue