mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 04:16:38 -04:00
Update PHPStan and Safe PHP, and review codebase for further type correctness
This commit is contained in:
parent
e2e14a3551
commit
9d1b66d19e
35 changed files with 301 additions and 169 deletions
|
@ -3,21 +3,14 @@
|
|||
* @var Artwork $artwork
|
||||
*/
|
||||
?>
|
||||
<? if($artwork !== null){ ?>
|
||||
<? if($artwork->Status !== null){ ?>
|
||||
<?= ucfirst($artwork->Status->value) ?>
|
||||
<? } ?>
|
||||
<? if($artwork->EbookUrl !== null){ ?>
|
||||
— in use
|
||||
<? if($artwork->EbookUrl !== null){ ?>
|
||||
by
|
||||
<? if($artwork->Ebook !== null && $artwork->Ebook->Url !== null){ ?>
|
||||
<i>
|
||||
<a href="<?= $artwork->Ebook->Url ?>"><?= Formatter::EscapeHtml($artwork->Ebook->Title) ?></a>
|
||||
</i><? if($artwork->Ebook->IsPlaceholder()){ ?>(unreleased)<? } ?>
|
||||
<? }else{ ?>
|
||||
<code><?= Formatter::EscapeHtml($artwork->EbookUrl) ?></code> (unreleased)
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
<?= ucfirst($artwork->Status->value) ?>
|
||||
<? if($artwork->EbookUrl !== null){ ?>
|
||||
— in use by
|
||||
<? if($artwork->Ebook !== null && $artwork->Ebook->Url !== null){ ?>
|
||||
<i>
|
||||
<a href="<?= $artwork->Ebook->Url ?>"><?= Formatter::EscapeHtml($artwork->Ebook->Title) ?></a>
|
||||
</i><? if($artwork->Ebook->IsPlaceholder()){ ?>(unreleased)<? } ?>
|
||||
<? }else{ ?>
|
||||
<code><?= Formatter::EscapeHtml($artwork->EbookUrl) ?></code> (unreleased)
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue