all the strict_types

This commit is contained in:
Shish 2023-01-10 21:21:26 +00:00
parent d53c61bd04
commit 165eea11b1
13 changed files with 27 additions and 4 deletions

View file

@ -14,6 +14,4 @@ return $config->setRules([
'array_syntax' => ['syntax' => 'short'], 'array_syntax' => ['syntax' => 'short'],
]) ])
->setFinder($finder) ->setFinder($finder)
; ;
?>

View file

@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* Shimmie Installer * Shimmie Installer
* *

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
class ImageDownloadingEvent extends Event class ImageDownloadingEvent extends Event
{ {
public Image $image; public Image $image;

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
class DownloadInfo extends ExtensionInfo class DownloadInfo extends ExtensionInfo
{ {
public const KEY = "download"; public const KEY = "download";

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
require_once "events.php"; require_once "events.php";
class Download extends Extension class Download extends Extension

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
class UploadConfig class UploadConfig
{ {
public const COUNT = "upload_count"; public const COUNT = "upload_count";

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
define("UNITTEST", true); define("UNITTEST", true);
define("EXTRA_EXTS", str_replace("ext/", "", implode(',', glob('ext/*')))); define("EXTRA_EXTS", str_replace("ext/", "", implode(',', glob('ext/*'))));

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
// custom routing for stand-alone mode, basically // custom routing for stand-alone mode, basically
// .htaccess for the built-in php web server // .htaccess for the built-in php web server
if (PHP_SAPI !== 'cli-server') { if (PHP_SAPI !== 'cli-server') {

View file

@ -1,10 +1,12 @@
<?php <?php
declare(strict_types=1);
class CustomHomeTheme extends HomeTheme class CustomHomeTheme extends HomeTheme
{ {
public function display_page(Page $page, string $sitename, string $base_href, string $theme_name, string $body): void public function display_page(Page $page, string $sitename, string $base_href, string $theme_name, string $body): void
{ {
$page->set_mode("data"); $page->set_mode(PageMode::DATA);
$page->add_auto_html_headers(); $page->add_auto_html_headers();
$hh = $page->get_all_html_headers(); $hh = $page->get_all_html_headers();
$page->set_data( $page->set_data(

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
class CustomIndexTheme extends IndexTheme class CustomIndexTheme extends IndexTheme
{ {
protected function build_table(array $images, ?string $query): string protected function build_table(array $images, ?string $query): string

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
class CustomTagEditTheme extends TagEditTheme class CustomTagEditTheme extends TagEditTheme
{ {
public function get_tag_editor_html(Image $image): string public function get_tag_editor_html(Image $image): string

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
class Themelet extends BaseThemelet class Themelet extends BaseThemelet
{ {
public function build_thumb_html(Image $image): string public function build_thumb_html(Image $image): string

View file

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
use MicroHTML\HTMLElement; use MicroHTML\HTMLElement;
use function MicroHTML\A; use function MicroHTML\A;