mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 01:52:02 -04:00
Add more type hints and work on some code formatting
This commit is contained in:
parent
06b82cdaaa
commit
c3c588cc1b
35 changed files with 343 additions and 167 deletions
|
@ -1,6 +1,9 @@
|
|||
<?
|
||||
/**
|
||||
* @var ?Exception $exception
|
||||
*/
|
||||
|
||||
if(!$exception){
|
||||
if($exception === null){
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -15,8 +18,8 @@ else{
|
|||
?>
|
||||
<ul class="message error">
|
||||
<? foreach($exceptions as $ex){ ?>
|
||||
<li>
|
||||
<p><? $message = $ex->getMessage(); if($message == ''){ $message = 'An error occurred.'; } ?><?= str_replace('CAPTCHA', '<abbr class="acronym">CAPTCHA</abbr>', Formatter::EscapeHtml($message)) ?></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><? $message = $ex->getMessage(); if($message == ''){ $message = 'An error occurred.'; } ?><?= str_replace('CAPTCHA', '<abbr class="acronym">CAPTCHA</abbr>', Formatter::EscapeHtml($message)) ?></p>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue