strict types in templates

This commit is contained in:
El RIDO 2024-10-11 07:14:18 +02:00
parent a36d72e914
commit aafc143a5a
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PrivateBin\I18n; use PrivateBin\I18n;
$isCpct = substr($template, 9, 8) === '-compact'; $isCpct = substr($template, 9, 8) === '-compact';
$isDark = substr($template, 9, 5) === '-dark'; $isDark = substr($template, 9, 5) === '-dark';

View File

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PrivateBin\I18n; use PrivateBin\I18n;
?><!DOCTYPE html> ?><!DOCTYPE html>
<html lang="<?php echo I18n::getLanguage(); ?>"<?php echo I18n::isRtl() ? ' dir="rtl"' : ''; ?>> <html lang="<?php echo I18n::getLanguage(); ?>"<?php echo I18n::isRtl() ? ' dir="rtl"' : ''; ?>>

View File

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PrivateBin\I18n; use PrivateBin\I18n;
?><!DOCTYPE html> ?><!DOCTYPE html>
<html lang="<?php echo I18n::getLanguage(); ?>"<?php echo I18n::isRtl() ? ' dir="rtl"' : ''; ?>> <html lang="<?php echo I18n::getLanguage(); ?>"<?php echo I18n::isRtl() ? ' dir="rtl"' : ''; ?>>

View File

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use PrivateBin\I18n; use PrivateBin\I18n;
?><!DOCTYPE html> ?><!DOCTYPE html>
<html lang="<?php echo I18n::getLanguage(); ?>"<?php echo I18n::isRtl() ? ' dir="rtl"' : ''; ?>> <html lang="<?php echo I18n::getLanguage(); ?>"<?php echo I18n::isRtl() ? ' dir="rtl"' : ''; ?>>