From 0e42a12a33b9bb193fa7851628edf018bd922362 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 18 Jun 2022 11:38:26 +0200 Subject: Add phpcs config and do automatic fixups. --- includes/view-helpers/select_field.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'includes/view-helpers/select_field.php') diff --git a/includes/view-helpers/select_field.php b/includes/view-helpers/select_field.php index e72fc40..aa156d0 100644 --- a/includes/view-helpers/select_field.php +++ b/includes/view-helpers/select_field.php @@ -19,13 +19,12 @@ namespace EternalTerror\ViewHelpers; */ function select_field( string $name, - array $opts = [], + array $opts = array(), $selected = null, - string $blank = "Please select...") : string -{ + string $blank = 'Please select...' ) : string { $body = ""; - foreach ($opts as $opt) { - $sel = selected($selected, $opt[0], false); + foreach ( $opts as $opt ) { + $sel = selected( $selected, $opt[0], false ); $body .= ""; } return ""; -- cgit v1.2.3