mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
[ticket/12458] Apply Squiz.WhiteSpace.SuperfluousWhitespace.* to legacy code.
* There MUST NOT be trailing whitespace at the end of lines. * There MUST NOT be whitespace before the first content of a file. * There MUST NOT be whitespace after the last content of a file. * Functions MUST NOT contain multiple empty lines in a row. PHPBB3-12458
This commit is contained in:
@@ -71,7 +71,6 @@ function phpbb_insert_forums()
|
||||
$prune_enabled = (int) $src_db->sql_fetchfield('config_value');
|
||||
$src_db->sql_freeresult($result);
|
||||
|
||||
|
||||
// Insert categories
|
||||
$sql = 'SELECT cat_id, cat_title
|
||||
FROM ' . $convert->src_table_prefix . 'categories
|
||||
@@ -571,7 +570,6 @@ function phpbb_convert_authentication($mode)
|
||||
// What we will do is handling all 2.0.x admins as founder to replicate what is common in 2.0.x.
|
||||
// After conversion the main admin need to make sure he is removing permissions and the founder status if wanted.
|
||||
|
||||
|
||||
// Grab user ids of users with user_level of ADMIN
|
||||
$sql = "SELECT user_id
|
||||
FROM {$convert->src_table_prefix}users
|
||||
|
@@ -217,7 +217,6 @@ class install_install extends module
|
||||
'S_LEGEND' => false,
|
||||
));
|
||||
|
||||
|
||||
// Check for getimagesize
|
||||
if (@function_exists('getimagesize'))
|
||||
{
|
||||
@@ -535,7 +534,6 @@ class install_install extends module
|
||||
$url = (!in_array(false, $passed)) ? $this->p_master->module_url . "?mode=$mode&sub=database&language=$language" : $this->p_master->module_url . "?mode=$mode&sub=requirements&language=$language ";
|
||||
$submit = (!in_array(false, $passed)) ? $lang['INSTALL_START'] : $lang['INSTALL_TEST'];
|
||||
|
||||
|
||||
$template->assign_vars(array(
|
||||
'L_SUBMIT' => $submit,
|
||||
'S_HIDDEN' => $s_hidden_fields,
|
||||
|
Reference in New Issue
Block a user