This commit is contained in:
Shish
2023-11-11 21:49:12 +00:00
parent 848797030e
commit fd1bb21f9d
235 changed files with 1551 additions and 1591 deletions

View File

@ -43,7 +43,7 @@ class TagToolsTest extends ShimmiePHPUnitTestCase
send_event(new UserLoginEvent(User::by_name(self::$admin_name)));
$database->execute(
"INSERT INTO tags(tag, count) VALUES(:tag, :count)",
["tag"=>"tes$ts", "count"=>42]
["tag" => "tes$ts", "count" => 42]
);
// Fix
@ -54,7 +54,7 @@ class TagToolsTest extends ShimmiePHPUnitTestCase
0,
$database->get_one(
"SELECT count FROM tags WHERE tag = :tag",
["tag"=>"tes$ts"]
["tag" => "tes$ts"]
)
);
}

View File

@ -8,7 +8,7 @@ use function MicroHTML\INPUT;
class TagToolsTheme extends Themelet
{
protected function button(string $name, string $action, bool $protected=false): string
protected function button(string $name, string $action, bool $protected = false): string
{
$c_protected = $protected ? " protected" : "";
$html = make_form(make_link("admin/$action"), "POST", false, "admin$c_protected");
@ -39,7 +39,7 @@ class TagToolsTheme extends Themelet
$html = (string)SHM_SIMPLE_FORM(
"admin/set_tag_case",
INPUT(["type"=>'text', "name"=>'tag', "placeholder"=>'Enter tag with correct case', "autocomplete"=>'off']),
INPUT(["type" => 'text', "name" => 'tag', "placeholder" => 'Enter tag with correct case', "autocomplete" => 'off']),
SHM_SUBMIT('Set Tag Case'),
);
$page->add_block(new Block("Set Tag Case", $html));