summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2016-01-10 14:55:26 +0100
committerDamien Regad <dregad@mantisbt.org>2016-01-10 17:39:31 +0100
commit107869f2cf838c3d895c2c1a0b0f55d3f6eb7226 (patch)
tree07463c62634244195c25d16a300b512bfdcb925b /perf
parent1144ce7b5fbdca48d3937d416488c56b9801db21 (diff)
downloadadodb-107869f2cf838c3d895c2c1a0b0f55d3f6eb7226.tar.gz
adodb-107869f2cf838c3d895c2c1a0b0f55d3f6eb7226.tar.bz2
adodb-107869f2cf838c3d895c2c1a0b0f55d3f6eb7226.zip
Coding guidelines: remove { } in switch default
This prevents PHP_CodeSniffer from automatically fixing the file to comply with PSR-2 standards.
Diffstat (limited to 'perf')
-rw-r--r--perf/perf-mysql.inc.php2
-rw-r--r--perf/perf-postgres.inc.php2
2 files changed, 0 insertions, 4 deletions
diff --git a/perf/perf-mysql.inc.php b/perf/perf-mysql.inc.php
index de1ed3c4..ea73e37f 100644
--- a/perf/perf-mysql.inc.php
+++ b/perf/perf-mysql.inc.php
@@ -302,11 +302,9 @@ class perf_mysql extends adodb_perf{
case ADODB_OPT_LOW : $sql = $this->optimizeTableLow; break;
case ADODB_OPT_HIGH : $sql = $this->optimizeTableHigh; break;
default :
- {
// May dont use __FUNCTION__ constant for BC (__FUNCTION__ Added in PHP 4.3.0)
ADOConnection::outp( sprintf( "<p>%s: '%s' using of undefined mode '%s'</p>", __CLASS__, __FUNCTION__, $mode));
return false;
- }
}
$sql = sprintf( $sql, $table);
diff --git a/perf/perf-postgres.inc.php b/perf/perf-postgres.inc.php
index 3e31570e..2c80820c 100644
--- a/perf/perf-postgres.inc.php
+++ b/perf/perf-postgres.inc.php
@@ -113,10 +113,8 @@ class perf_postgres extends adodb_perf{
case ADODB_OPT_LOW : $sql = $this->optimizeTableLow; break;
case ADODB_OPT_HIGH: $sql = $this->optimizeTableHigh; break;
default :
- {
ADOConnection::outp(sprintf("<p>%s: '%s' using of undefined mode '%s'</p>", __CLASS__, 'optimizeTable', $mode));
return false;
- }
}
$sql = sprintf($sql, $table);