Ran phpcs and fixed a few errors and warnings

This commit is contained in:
Sarven Capadisli 2009-10-12 12:58:51 +00:00
parent 44a5cd2805
commit 410883d146

View File

@ -86,13 +86,11 @@ class MobileProfilePlugin extends WAP20Plugin
$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) {
$this->serveMobile = true;
}
else {
} else {
// If they like the WAP 2.0 mimetype, serve them MP
if (strstr('application/vnd.wap.xhtml+xml', $type) !== false) {
$this->serveMobile = true;
}
else {
} else {
// If they are a mobile device that supports WAP 2.0,
// serve them MP
@ -204,7 +202,6 @@ class MobileProfilePlugin extends WAP20Plugin
function setMobileFeatures($useragent)
{
/* List of devices that support input type="file" */
$mobiledeviceInputFileType = array(
'nokia'
);
@ -243,8 +240,7 @@ class MobileProfilePlugin extends WAP20Plugin
if (file_exists(theme_file('css/mp-screen.css'))) {
$action->cssLink('css/mp-screen.css', null, 'screen');
}
else {
} else {
$action->element('link', array('rel' => 'stylesheet',
'type' => 'text/css',
'href' => common_path('plugins/MobileProfile/mp-screen.css') . '?version=' . STATUSNET_VERSION,
@ -253,8 +249,7 @@ class MobileProfilePlugin extends WAP20Plugin
if (file_exists(theme_file('css/mp-handheld.css'))) {
$action->cssLink('css/mp-handheld.css', null, 'handheld');
}
else {
} else {
$action->element('link', array('rel' => 'stylesheet',
'type' => 'text/css',
'href' => common_path('plugins/MobileProfile/mp-handheld.css') . '?version=' . STATUSNET_VERSION,
@ -303,7 +298,8 @@ class MobileProfilePlugin extends WAP20Plugin
}
function _showPrimaryNav($action) {
function _showPrimaryNav($action)
{
$user = common_current_user();
$connect = '';
if (common_config('xmpp', 'enabled')) {
@ -330,8 +326,7 @@ class MobileProfilePlugin extends WAP20Plugin
}
$action->menuItem(common_local_url('logout'),
_('Logout'));
}
else {
} else {
if (!common_config('site', 'closed')) {
$action->menuItem(common_local_url('register'),
_('Register'));