mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 12:26:39 -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,4 +1,12 @@
|
|||
<?
|
||||
/**
|
||||
* @var string $title
|
||||
* @var string $description
|
||||
* @var DateTimeImmutable $updated
|
||||
* @var string $url
|
||||
* @var array<Ebook> $entries
|
||||
*/
|
||||
|
||||
// Note that the XSL stylesheet gets stripped during `se clean` when we generate the feed.
|
||||
// `se clean` will also start adding empty namespaces everywhere if we include the stylesheet declaration first.
|
||||
// We have to add it programmatically when saving the feed file.
|
||||
|
@ -10,7 +18,7 @@ print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
|
|||
<description><?= Formatter::EscapeXml($description) ?></description>
|
||||
<language>en-US</language>
|
||||
<copyright>https://creativecommons.org/publicdomain/zero/1.0/</copyright>
|
||||
<lastBuildDate><?= $updated ?></lastBuildDate>
|
||||
<lastBuildDate><?= $updated->format('r'); ?></lastBuildDate>
|
||||
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
|
||||
<atom:link href="<?= SITE_URL . Formatter::EscapeXml($url) ?>" rel="self" type="application/rss+xml"/>
|
||||
<atom:link href="<?= SITE_URL ?>/ebooks/opensearch" rel="search" type="application/opensearchdescription+xml" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue