From 2f4f00f13ae664caa21b076e17bd1900a777586a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Arag=C3=B3n?= Date: Thu, 5 Apr 2018 16:50:42 -0500 Subject: [PATCH] format code --- main/auth/inscription.php | 8 ++++---- main/inc/lib/legal.lib.php | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/main/auth/inscription.php b/main/auth/inscription.php index 47bad883ed..c64801a6e4 100755 --- a/main/auth/inscription.php +++ b/main/auth/inscription.php @@ -137,7 +137,7 @@ if ($user_already_registered_show_terms === false) { 'email', sprintf( get_lang('UsernameMaxXCharacters'), - (string)USERNAME_MAX_LENGTH + (string) USERNAME_MAX_LENGTH ), 'maxlength', USERNAME_MAX_LENGTH @@ -169,7 +169,7 @@ if ($user_already_registered_show_terms === false) { 'username', sprintf( get_lang('UsernameMaxXCharacters'), - (string)USERNAME_MAX_LENGTH + (string) USERNAME_MAX_LENGTH ), 'maxlength', USERNAME_MAX_LENGTH @@ -461,7 +461,7 @@ if (api_is_multiple_url_enabled()) { } if (file_exists($home.'register_top_'.$user_selected_language.'.html')) { - $home_top_temp = @(string)file_get_contents($home.'register_top_'.$user_selected_language.'.html'); + $home_top_temp = @(string) file_get_contents($home.'register_top_'.$user_selected_language.'.html'); $open = str_replace('{rel_path}', api_get_path(REL_PATH), $home_top_temp); $open = api_to_system_encoding($open, api_detect_encoding(strip_tags($open))); if (!empty($open)) { @@ -491,7 +491,7 @@ if (api_get_setting('allow_terms_conditions') == 'true') { if (api_get_setting('show_terms_if_profile_completed') === 'true') { $userInfo = api_get_user_info(); if ($userInfo && $userInfo['status'] != ANONYMOUS) { - if ((int)$userInfo['profile_completed'] !== 1) { + if ((int) $userInfo['profile_completed'] !== 1) { api_not_allowed(true); } } diff --git a/main/inc/lib/legal.lib.php b/main/inc/lib/legal.lib.php index 87b67b47a1..1475b03678 100755 --- a/main/inc/lib/legal.lib.php +++ b/main/inc/lib/legal.lib.php @@ -215,7 +215,9 @@ class LegalManager switch ($term_preview['type']) { case 0: if (!empty($term_preview['content'])) { - $preview = '
'; + $preview = '
+ +
'; } $preview .= get_lang('ByClickingRegisterYouAgreeTermsAndConditions'); $courseInfo = api_get_course_info();