Checkstyle: Fix last six NewlineBeforeOpenBrace

This commit is contained in:
Felix Moeller 2012-11-04 18:36:16 +01:00
parent bc4382c5c5
commit 27ab0357ae
5 changed files with 6 additions and 12 deletions

View File

@ -397,8 +397,7 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common
} }
if ($this->fix_assoc_fields_names || if ($this->fix_assoc_fields_names ||
$this->options['portability'] & MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES) $this->options['portability'] & MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES) {
{
$this->connection->exec("PRAGMA short_column_names = 1"); $this->connection->exec("PRAGMA short_column_names = 1");
$this->fix_assoc_fields_names = true; $this->fix_assoc_fields_names = true;
} }

View File

@ -130,8 +130,7 @@ class OC_Archive_TAR extends OC_Archive{
if( $file == $header['filename'] if( $file == $header['filename']
or $file.'/' == $header['filename'] or $file.'/' == $header['filename']
or '/'.$file.'/' == $header['filename'] or '/'.$file.'/' == $header['filename']
or '/'.$file == $header['filename']) or '/'.$file == $header['filename']) {
{
return $header; return $header;
} }
} }

View File

@ -524,8 +524,7 @@ class OC{
} }
$file_ext = substr($param['file'], -3); $file_ext = substr($param['file'], -3);
if ($file_ext != 'php' if ($file_ext != 'php'
|| !self::loadAppScriptFile($param)) || !self::loadAppScriptFile($param)) {
{
header('HTTP/1.0 404 Not Found'); header('HTTP/1.0 404 Not Found');
} }
} }
@ -595,8 +594,7 @@ class OC{
if(!isset($_COOKIE["oc_remember_login"]) if(!isset($_COOKIE["oc_remember_login"])
|| !isset($_COOKIE["oc_token"]) || !isset($_COOKIE["oc_token"])
|| !isset($_COOKIE["oc_username"]) || !isset($_COOKIE["oc_username"])
|| !$_COOKIE["oc_remember_login"]) || !$_COOKIE["oc_remember_login"]) {
{
return false; return false;
} }
OC_App::loadApps(array('authentication')); OC_App::loadApps(array('authentication'));

View File

@ -16,8 +16,7 @@ if(OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username)) {
$userstatus = 'subadmin'; $userstatus = 'subadmin';
} }
if(OC_User::getUser() === $username) { if(OC_User::getUser() === $username) {
if (OC_User::checkPassword($username, $oldPassword)) if (OC_User::checkPassword($username, $oldPassword)) {
{
$userstatus = 'user'; $userstatus = 'user';
} else { } else {
if (!OC_Util::isUserVerified()) { if (!OC_Util::isUserVerified()) {

View File

@ -12,8 +12,7 @@
<?php <?php
$url=OC_Helper::linkTo( "settings", "help.php" ).'?page='; $url=OC_Helper::linkTo( "settings", "help.php" ).'?page=';
$pageNavi=OC_Util::getPageNavi($_['pagecount'], $_['page'], $url); $pageNavi=OC_Util::getPageNavi($_['pagecount'], $_['page'], $url);
if($pageNavi) if($pageNavi) {
{
$pageNavi->printPage(); $pageNavi->printPage();
} }
?> ?>