Completely type hint template functions and switch to named arguments

This commit is contained in:
Alex Cabal 2025-03-04 16:08:55 -06:00
parent 6108b5e53d
commit 124e8343fc
125 changed files with 542 additions and 450 deletions

View file

@ -4,9 +4,9 @@
* @var string $role
* @var User $user
*/
?><?= Template::EmailHeader(['hasAdminTable' => true, 'letterhead' => true]) ?>
?><?= Template::EmailHeader(hasAdminTable: true, hasLetterhead: true) ?>
<p>Youve been assigned a new ebook project to <strong><?= $role ?></strong>:</p>
<?= Template::ProjectDetailsTable(['project' => $project, 'useFullyQualifiedUrls' => true, 'showArtworkStatus' => false]) ?>
<?= Template::ProjectDetailsTable(project: $project, useFullyQualifiedUrls: true, showArtworkStatus: false) ?>
<p>If youre unable to <?= $role ?> this ebook project, <a href="mailto:<?= EDITOR_IN_CHIEF_EMAIL_ADDRESS ?>">email the Editor-in-Chief</a> and well reassign it.</p>
<ul>
<li>
@ -20,4 +20,4 @@
</p>
</li>
</ul>
<?= Template::EmailFooter(['includeLinks' => false]) ?>
<?= Template::EmailFooter(includeLinks: false) ?>