From 79c92da8c14de61dccc015f04c3900aac4bd4179 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 24 Apr 2019 11:01:37 +0200 Subject: Formatting ```bash php-cs-fixer fix --allow-risky=yes --rules=@PSR2,psr4,mb_str_functions.php_unit_construct,php_unit_ordered_covers,trailing_comma_in_multiline_array --rules='{"array_syntax": {"syntax":"short"}}' [tests/|src/] ``` --- includes/pages/admin_user.php | 2 +- includes/pages/guest_login.php | 2 +- includes/view/User_view.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php index 773238ce..a193aff7 100644 --- a/includes/pages/admin_user.php +++ b/includes/pages/admin_user.php @@ -77,7 +77,7 @@ function admin_user() // Gekommen? $html .= ' Gekommen' . "\n"; - if($user_source->state->arrived) { + if ($user_source->state->arrived) { $html .= _('Yes'); } else { $html .= _('No'); diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index a4bf4808..7b6eb9c1 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -150,7 +150,7 @@ function guest_register() $valid = false; error(__('Please enter your planned date of arrival. It should be after the buildup start date and before teardown end date.')); } - } else if ($enable_planned_arrival) { + } elseif ($enable_planned_arrival) { $valid = false; error(__('Please enter your planned date of arrival. It should be after the buildup start date and before teardown end date.')); } diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 1f3c1127..718e89c6 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -28,7 +28,7 @@ function User_settings_view( $enable_dect = config('enable_dect'); $enable_planned_arrival = config('enable_planned_arrival'); - return page_with_title(settings_title(), [ + return page_with_title(settings_title(), [ msg(), div('row', [ div('col-md-6', [ -- cgit v1.2.3-54-g00ecf