summaryrefslogtreecommitdiff
path: root/src/web/_controller/_meta.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/_controller/_meta.php')
-rw-r--r--src/web/_controller/_meta.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/web/_controller/_meta.php b/src/web/_controller/_meta.php
index 801d254..e78f8b3 100644
--- a/src/web/_controller/_meta.php
+++ b/src/web/_controller/_meta.php
@@ -5,7 +5,7 @@ class _meta_controller extends Controller {
parent::__construct($load);
}
- public function robots() {
+ public function robots(): void {
header("Content-Type: text/plain");
$sitemap = $this->main->get_url_full('sitemap.xml');
@@ -18,14 +18,14 @@ class _meta_controller extends Controller {
echo "Sitemap: {$sitemap}\n";
}
- private function sitemap_page($url, $priority) {
+ private function sitemap_page(string $url, string $priority): void {
echo "<url>\n";
echo "<loc>{$this->main->get_url_full($url)}</loc>\n";
echo "<priority>{$priority}</priority>\n";
echo "</url>";
}
- public function sitemap() {
+ public function sitemap(): void {
header("Content-Type: application/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
@@ -46,7 +46,7 @@ class _meta_controller extends Controller {
echo "</urlset>\n";
}
- public function manifest() {
+ public function manifest(): void {
$json = array(
'short_name' => lang('domain'),
'name' => lang('domain'),