format
This commit is contained in:
parent
583cf6751a
commit
c11f0dafd0
3 changed files with 22 additions and 6 deletions
|
@ -86,7 +86,9 @@ class Image
|
|||
{
|
||||
if (!is_null($row)) {
|
||||
foreach ($row as $name => $value) {
|
||||
if(is_numeric($name)) continue;
|
||||
if (is_numeric($name)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// some databases use table.name rather than name
|
||||
$name = str_replace("images.", "", $name);
|
||||
|
|
|
@ -1,10 +1,23 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
use \MicroHTML\HTMLElement;
|
||||
function TAGS(...$args) {return new HTMLElement("tags", $args);}
|
||||
function TAG(...$args) {return new HTMLElement("tag", $args);}
|
||||
function POSTS(...$args) {return new HTMLElement("posts", $args);}
|
||||
function POST(...$args) {return new HTMLElement("post", $args);}
|
||||
|
||||
function TAGS(...$args)
|
||||
{
|
||||
return new HTMLElement("tags", $args);
|
||||
}
|
||||
function TAG(...$args)
|
||||
{
|
||||
return new HTMLElement("tag", $args);
|
||||
}
|
||||
function POSTS(...$args)
|
||||
{
|
||||
return new HTMLElement("posts", $args);
|
||||
}
|
||||
function POST(...$args)
|
||||
{
|
||||
return new HTMLElement("post", $args);
|
||||
}
|
||||
|
||||
|
||||
class DanbooruApi extends Extension
|
||||
|
|
|
@ -58,7 +58,8 @@ class PoolCreationEvent extends Event
|
|||
}
|
||||
}
|
||||
|
||||
class PoolDeletionEvent extends Event {
|
||||
class PoolDeletionEvent extends Event
|
||||
{
|
||||
public $pool_id;
|
||||
|
||||
public function __construct(int $pool_id)
|
||||
|
|
Reference in a new issue