all the strict_types
This commit is contained in:
parent
d53c61bd04
commit
165eea11b1
13 changed files with 27 additions and 4 deletions
|
@ -15,5 +15,3 @@ return $config->setRules([
|
|||
])
|
||||
->setFinder($finder)
|
||||
;
|
||||
|
||||
?>
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Shimmie Installer
|
||||
*
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
class ImageDownloadingEvent extends Event
|
||||
{
|
||||
public Image $image;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
class DownloadInfo extends ExtensionInfo
|
||||
{
|
||||
public const KEY = "download";
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once "events.php";
|
||||
|
||||
class Download extends Extension
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
class UploadConfig
|
||||
{
|
||||
public const COUNT = "upload_count";
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
define("UNITTEST", true);
|
||||
define("EXTRA_EXTS", str_replace("ext/", "", implode(',', glob('ext/*'))));
|
||||
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
class CustomIndexTheme extends IndexTheme
|
||||
{
|
||||
protected function build_table(array $images, ?string $query): string
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
class CustomTagEditTheme extends TagEditTheme
|
||||
{
|
||||
public function get_tag_editor_html(Image $image): string
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
class Themelet extends BaseThemelet
|
||||
{
|
||||
public function build_thumb_html(Image $image): string
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use MicroHTML\HTMLElement;
|
||||
|
||||
use function MicroHTML\A;
|
||||
|
|
Reference in a new issue