From 5622bce2d52904922a7fd450088bcaed417af7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sat, 8 Dec 2007 14:06:23 +0000 Subject: #198579 by webernet and hswong3i: a huge set of coding style fixes, including: - whitespaces at end of lines - indentation - control structure usage - whitespace in empty lines - phpdoc comment formatting --- modules/user/user.module | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'modules/user') diff --git a/modules/user/user.module b/modules/user/user.module index 8154c02c0..8f65d082b 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -652,21 +652,21 @@ function user_block($op = 'list', $delta = 0, $edit = array()) { global $user; if ($op == 'list') { - $blocks[0]['info'] = t('User login'); - // Not worth caching. - $blocks[0]['cache'] = BLOCK_NO_CACHE; + $blocks[0]['info'] = t('User login'); + // Not worth caching. + $blocks[0]['cache'] = BLOCK_NO_CACHE; - $blocks[1]['info'] = t('Navigation'); - // Menu blocks can't be cached because each menu item can have - // a custom access callback. menu.inc manages its own caching. - $blocks[1]['cache'] = BLOCK_NO_CACHE; + $blocks[1]['info'] = t('Navigation'); + // Menu blocks can't be cached because each menu item can have + // a custom access callback. menu.inc manages its own caching. + $blocks[1]['cache'] = BLOCK_NO_CACHE; - $blocks[2]['info'] = t('Who\'s new'); + $blocks[2]['info'] = t('Who\'s new'); - // Too dynamic to cache. - $blocks[3]['info'] = t('Who\'s online'); - $blocks[3]['cache'] = BLOCK_NO_CACHE; - return $blocks; + // Too dynamic to cache. + $blocks[3]['info'] = t('Who\'s online'); + $blocks[3]['cache'] = BLOCK_NO_CACHE; + return $blocks; } else if ($op == 'configure' && $delta == 2) { $form['user_block_whois_new_count'] = array( @@ -706,8 +706,8 @@ function user_block($op = 'list', $delta = 0, $edit = array()) { case 1: if ($menu = menu_tree()) { - $block['subject'] = $user->uid ? check_plain($user->name) : t('Navigation'); - $block['content'] = $menu; + $block['subject'] = $user->uid ? check_plain($user->name) : t('Navigation'); + $block['content'] = $menu; } return $block; -- cgit v1.2.3