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

@ -15,5 +15,3 @@ return $config->setRules([
])
->setFinder($finder)
;
?>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,10 +1,12 @@
<?php
declare(strict_types=1);
class CustomHomeTheme extends HomeTheme
{
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();
$hh = $page->get_all_html_headers();
$page->set_data(

View file

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

View file

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

View file

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

View file

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