drop php7.3 support, make use of 7.4 features
This commit is contained in:
@@ -5,7 +5,7 @@ class TranscodeVideoTheme extends Themelet
|
||||
/*
|
||||
* Display a link to resize an image
|
||||
*/
|
||||
public function get_transcode_html(Image $image, array $options)
|
||||
public function get_transcode_html(Image $image, array $options): string
|
||||
{
|
||||
$html = "
|
||||
".make_form(
|
||||
@@ -25,7 +25,7 @@ class TranscodeVideoTheme extends Themelet
|
||||
return $html;
|
||||
}
|
||||
|
||||
public function get_transcode_picker_html(array $options)
|
||||
public function get_transcode_picker_html(array $options): string
|
||||
{
|
||||
$html = "<select id='transcode_format' name='transcode_format' required='required' >";
|
||||
foreach ($options as $display=>$value) {
|
||||
@@ -35,7 +35,7 @@ class TranscodeVideoTheme extends Themelet
|
||||
return $html."</select>";
|
||||
}
|
||||
|
||||
public function display_transcode_error(Page $page, string $title, string $message)
|
||||
public function display_transcode_error(Page $page, string $title, string $message): void
|
||||
{
|
||||
$page->set_title("Transcode Video");
|
||||
$page->set_heading("Transcode Video");
|
||||
|
Reference in New Issue
Block a user