[ticket/13930] Add missing spaces to code

PHPBB3-13930
This commit is contained in:
Marc Alexander 2015-06-08 13:54:50 +02:00
parent d4e0c08915
commit f9389995e7
6 changed files with 15 additions and 15 deletions

View file

@ -1558,7 +1558,7 @@ class mssql_extractor extends base_extractor
{ {
$this->write_data_mssql($table_name); $this->write_data_mssql($table_name);
} }
else if($db->get_sql_layer() === 'mssqlnative') else if ($db->get_sql_layer() === 'mssqlnative')
{ {
$this->write_data_mssqlnative($table_name); $this->write_data_mssqlnative($table_name);
} }

View file

@ -76,7 +76,7 @@ class acp_extensions
{ {
$md_manager->get_metadata('all'); $md_manager->get_metadata('all');
} }
catch(\phpbb\extension\exception $e) catch (\phpbb\extension\exception $e)
{ {
trigger_error($e, E_USER_WARNING); trigger_error($e, E_USER_WARNING);
} }
@ -352,7 +352,7 @@ class acp_extensions
$enabled_extension_meta_data[$name]['S_VERSIONCHECK'] = true; $enabled_extension_meta_data[$name]['S_VERSIONCHECK'] = true;
$enabled_extension_meta_data[$name]['U_VERSIONCHECK_FORCE'] = $this->u_action . '&action=details&versioncheck_force=1&ext_name=' . urlencode($md_manager->get_metadata('name')); $enabled_extension_meta_data[$name]['U_VERSIONCHECK_FORCE'] = $this->u_action . '&action=details&versioncheck_force=1&ext_name=' . urlencode($md_manager->get_metadata('name'));
} }
catch(\phpbb\extension\exception $e) catch (\phpbb\extension\exception $e)
{ {
$this->template->assign_block_vars('disabled', array( $this->template->assign_block_vars('disabled', array(
'META_DISPLAY_NAME' => $this->user->lang('EXTENSION_INVALID_LIST', $name, $e), 'META_DISPLAY_NAME' => $this->user->lang('EXTENSION_INVALID_LIST', $name, $e),
@ -408,7 +408,7 @@ class acp_extensions
$disabled_extension_meta_data[$name]['S_VERSIONCHECK'] = true; $disabled_extension_meta_data[$name]['S_VERSIONCHECK'] = true;
$disabled_extension_meta_data[$name]['U_VERSIONCHECK_FORCE'] = $this->u_action . '&action=details&versioncheck_force=1&ext_name=' . urlencode($md_manager->get_metadata('name')); $disabled_extension_meta_data[$name]['U_VERSIONCHECK_FORCE'] = $this->u_action . '&action=details&versioncheck_force=1&ext_name=' . urlencode($md_manager->get_metadata('name'));
} }
catch(\phpbb\extension\exception $e) catch (\phpbb\extension\exception $e)
{ {
$this->template->assign_block_vars('disabled', array( $this->template->assign_block_vars('disabled', array(
'META_DISPLAY_NAME' => $this->user->lang('EXTENSION_INVALID_LIST', $name, $e), 'META_DISPLAY_NAME' => $this->user->lang('EXTENSION_INVALID_LIST', $name, $e),
@ -467,7 +467,7 @@ class acp_extensions
$available_extension_meta_data[$name]['S_VERSIONCHECK'] = true; $available_extension_meta_data[$name]['S_VERSIONCHECK'] = true;
$available_extension_meta_data[$name]['U_VERSIONCHECK_FORCE'] = $this->u_action . '&action=details&versioncheck_force=1&ext_name=' . urlencode($md_manager->get_metadata('name')); $available_extension_meta_data[$name]['U_VERSIONCHECK_FORCE'] = $this->u_action . '&action=details&versioncheck_force=1&ext_name=' . urlencode($md_manager->get_metadata('name'));
} }
catch(\phpbb\extension\exception $e) catch (\phpbb\extension\exception $e)
{ {
$this->template->assign_block_vars('disabled', array( $this->template->assign_block_vars('disabled', array(
'META_DISPLAY_NAME' => $this->user->lang('EXTENSION_INVALID_LIST', $name, $e), 'META_DISPLAY_NAME' => $this->user->lang('EXTENSION_INVALID_LIST', $name, $e),

View file

@ -995,7 +995,7 @@ class acp_styles
// Assign template variables // Assign template variables
$this->template->assign_block_vars('styles_list', $row); $this->template->assign_block_vars('styles_list', $row);
foreach($actions as $action) foreach ($actions as $action)
{ {
$this->template->assign_block_vars('styles_list.actions', $action); $this->template->assign_block_vars('styles_list.actions', $action);
} }

View file

@ -966,7 +966,7 @@ function get_remote_avatar_dim($src, $axis)
$protocol = (isset($url_info['scheme'])) ? $url_info['scheme'] : 'http'; $protocol = (isset($url_info['scheme'])) ? $url_info['scheme'] : 'http';
if (empty($port)) if (empty($port))
{ {
switch(strtolower($protocol)) switch (strtolower($protocol))
{ {
case 'ftp': case 'ftp':
$port = 21; $port = 21;

View file

@ -52,11 +52,11 @@ class ucp_notifications
$notification_methods = $phpbb_notifications->get_subscription_methods(); $notification_methods = $phpbb_notifications->get_subscription_methods();
foreach($phpbb_notifications->get_subscription_types() as $group => $subscription_types) foreach ($phpbb_notifications->get_subscription_types() as $group => $subscription_types)
{ {
foreach($subscription_types as $type => $data) foreach ($subscription_types as $type => $data)
{ {
foreach($notification_methods as $method => $method_data) foreach ($notification_methods as $method => $method_data)
{ {
if ($request->is_set_post(str_replace('.', '_', $type . '_' . $method_data['id'])) && (!isset($subscriptions[$type]) || !in_array($method_data['id'], $subscriptions[$type]))) if ($request->is_set_post(str_replace('.', '_', $type . '_' . $method_data['id'])) && (!isset($subscriptions[$type]) || !in_array($method_data['id'], $subscriptions[$type])))
{ {
@ -180,13 +180,13 @@ class ucp_notifications
{ {
$notification_methods = $phpbb_notifications->get_subscription_methods(); $notification_methods = $phpbb_notifications->get_subscription_methods();
foreach($phpbb_notifications->get_subscription_types() as $group => $subscription_types) foreach ($phpbb_notifications->get_subscription_types() as $group => $subscription_types)
{ {
$template->assign_block_vars($block, array( $template->assign_block_vars($block, array(
'GROUP_NAME' => $user->lang($group), 'GROUP_NAME' => $user->lang($group),
)); ));
foreach($subscription_types as $type => $data) foreach ($subscription_types as $type => $data)
{ {
$template->assign_block_vars($block, array( $template->assign_block_vars($block, array(
'TYPE' => $type, 'TYPE' => $type,
@ -197,7 +197,7 @@ class ucp_notifications
'SUBSCRIBED' => (isset($subscriptions[$type])) ? true : false, 'SUBSCRIBED' => (isset($subscriptions[$type])) ? true : false,
)); ));
foreach($notification_methods as $method => $method_data) foreach ($notification_methods as $method => $method_data)
{ {
$template->assign_block_vars($block . '.notification_methods', array( $template->assign_block_vars($block . '.notification_methods', array(
'METHOD' => $method_data['id'], 'METHOD' => $method_data['id'],
@ -227,7 +227,7 @@ class ucp_notifications
{ {
$notification_methods = $phpbb_notifications->get_subscription_methods(); $notification_methods = $phpbb_notifications->get_subscription_methods();
foreach($notification_methods as $method => $method_data) foreach ($notification_methods as $method => $method_data)
{ {
$template->assign_block_vars($block, array( $template->assign_block_vars($block, array(
'METHOD' => $method_data['id'], 'METHOD' => $method_data['id'],

View file

@ -588,7 +588,7 @@ $quickmod_array = array(
'topic_logs' => array('VIEW_TOPIC_LOGS', $auth->acl_get('m_', $forum_id)), 'topic_logs' => array('VIEW_TOPIC_LOGS', $auth->acl_get('m_', $forum_id)),
); );
foreach($quickmod_array as $option => $qm_ary) foreach ($quickmod_array as $option => $qm_ary)
{ {
if (!empty($qm_ary[1])) if (!empty($qm_ary[1]))
{ {