From e27e51bdbf2fb099a5295d140f967db57f727c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Sat, 5 Aug 2017 21:13:21 +0200 Subject: [PATCH] [ticket/15289] Fix code style PHPBB3-15289 --- phpBB/includes/acp/acp_storage.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phpBB/includes/acp/acp_storage.php b/phpBB/includes/acp/acp_storage.php index 6adf4b5889..a31bb8a97a 100644 --- a/phpBB/includes/acp/acp_storage.php +++ b/phpBB/includes/acp/acp_storage.php @@ -77,7 +77,7 @@ class acp_storage $vars = array(); extract($phpbb_dispatcher->trigger_event('core.acp_storage_load', compact($vars))); - switch($mode) + switch ($mode) { case 'settings': $this->overview($id, $mode); @@ -213,21 +213,21 @@ class acp_storage // Check options $new_options = $this->get_provider_options($this->get_new_provider($storage_name)); - foreach($new_options as $def_k => $def_v) + foreach ($new_options as $def_k => $def_v) { $value = $this->get_new_def($storage_name, $def_k); switch ($def_v['type']) { case 'email': - if(!filter_var($value, FILTER_VALIDATE_EMAIL)) + if (!filter_var($value, FILTER_VALIDATE_EMAIL)) { $messages[] = $this->lang->lang('STORAGE_FORM_TYPE_EMAIL_INCORRECT_FORMAT'); } case 'text': case 'password': $maxlength = isset($def_v['maxlength']) ? $def_v['maxlength'] : 255; - if(strlen($value) > $maxlength) + if (strlen($value) > $maxlength) { $messages[] = $this->lang->lang('STORAGE_FORM_TYPE_TEXT_TOO_LONG'); } @@ -236,7 +236,7 @@ class acp_storage case 'select': if (!in_array($value, array_values($def_v['options']))) { - $messages[] = $this->lang->lang('STORAGE_FORM_SELECT_NOT_AVAILABLE'); + $messages[] = $this->lang->lang('STORAGE_FORM_TYPE_SELECT_NOT_AVAILABLE'); } break; }