PSR-2. I'm not a huge fan, but ugly consistency beats no consistency...

This commit is contained in:
Shish
2019-05-28 17:59:38 +01:00
parent 5ec3e89884
commit 34b05cca7c
295 changed files with 27094 additions and 24632 deletions

View File

@@ -1,29 +1,31 @@
<?php
class RotateImageTheme extends Themelet {
/**
* Display a link to rotate an image.
*/
public function get_rotate_html(int $image_id): string {
$html = "
class RotateImageTheme extends Themelet
{
/**
* Display a link to rotate an image.
*/
public function get_rotate_html(int $image_id): string
{
$html = "
".make_form(make_link('rotate/'.$image_id), 'POST')."
<input type='hidden' name='image_id' value='$image_id'>
<input id='rotate_deg' name='rotate_deg' type='number' placeholder='Rotation degrees'>
<input id='rotatebutton' type='submit' value='Rotate'>
</form>
";
return $html;
}
return $html;
}
/**
* Display the error.
*/
public function display_rotate_error(Page $page, string $title, string $message) {
$page->set_title("Rotate Image");
$page->set_heading("Rotate Image");
$page->add_block(new NavBlock());
$page->add_block(new Block($title, $message));
}
/**
* Display the error.
*/
public function display_rotate_error(Page $page, string $title, string $message)
{
$page->set_title("Rotate Image");
$page->set_heading("Rotate Image");
$page->add_block(new NavBlock());
$page->add_block(new Block($title, $message));
}
}