diff options
| author | Damien Regad <dregad@mantisbt.org> | 2016-01-10 14:55:26 +0100 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2016-01-10 17:39:31 +0100 |
| commit | 107869f2cf838c3d895c2c1a0b0f55d3f6eb7226 (patch) | |
| tree | 07463c62634244195c25d16a300b512bfdcb925b /perf | |
| parent | 1144ce7b5fbdca48d3937d416488c56b9801db21 (diff) | |
| download | adodb-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.php | 2 | ||||
| -rw-r--r-- | perf/perf-postgres.inc.php | 2 |
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); |
