mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 23:04:57 -04:00
Completely type hint template functions and switch to named arguments
This commit is contained in:
parent
6108b5e53d
commit
124e8343fc
125 changed files with 542 additions and 450 deletions
|
@ -1,11 +1,11 @@
|
|||
<?
|
||||
/**
|
||||
* @var ?Collection $collection
|
||||
* @var array<Ebook> $ebooks
|
||||
* @var ?Collection $collection
|
||||
*/
|
||||
|
||||
$view = $view ?? Enums\ViewType::Grid;
|
||||
$collection = $collection ?? null;
|
||||
$view ??= Enums\ViewType::Grid;
|
||||
$collection ??= null;
|
||||
?>
|
||||
<ol class="ebooks-list<? if($view == Enums\ViewType::List){ ?> list<? }else{ ?> grid<? } ?>"<? if($collection !== null){ ?> typeof="schema:BookSeries" about="<?= $collection->Url ?>"<? } ?>>
|
||||
<? if($collection !== null){ ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue