summaryrefslogtreecommitdiffstats
path: root/lib/db
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-08-07 22:22:33 +0200
committerBart Visscher <bartv@thisnet.nl>2013-08-07 22:22:33 +0200
commitd563367b0f0bc6a419b8bf61b85aa701231bcad0 (patch)
tree040731166acc03a19b10734ec68ab24d26940f63 /lib/db
parent83988a5906443164ba9b092664d893519b2b85e6 (diff)
downloadnextcloud-server-d563367b0f0bc6a419b8bf61b85aa701231bcad0.tar.gz
nextcloud-server-d563367b0f0bc6a419b8bf61b85aa701231bcad0.zip
More style fixes
Diffstat (limited to 'lib/db')
-rw-r--r--lib/db/connection.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/db/connection.php b/lib/db/connection.php
index e8905d041f0..2581969dbd0 100644
--- a/lib/db/connection.php
+++ b/lib/db/connection.php
@@ -14,9 +14,9 @@ use Doctrine\Common\EventManager;
class Connection extends \Doctrine\DBAL\Connection {
/**
- * @var string $table_prefix
+ * @var string $tablePrefix
*/
- protected $table_prefix;
+ protected $tablePrefix;
/**
* @var \OC\DB\Adapter $adapter
@@ -45,12 +45,12 @@ class Connection extends \Doctrine\DBAL\Connection {
if (!isset($params['adapter'])) {
throw new \Exception('adapter not set');
}
- if (!isset($params['table_prefix'])) {
- throw new \Exception('table_prefix not set');
+ if (!isset($params['tablePrefix'])) {
+ throw new \Exception('tablePrefix not set');
}
parent::__construct($params, $driver, $config, $eventManager);
$this->adapter = new $params['adapter']($this);
- $this->table_prefix = $params['table_prefix'];
+ $this->tablePrefix = $params['tablePrefix'];
}
/**
@@ -183,7 +183,7 @@ class Connection extends \Doctrine\DBAL\Connection {
* @return string
*/
protected function replaceTablePrefix($statement) {
- return str_replace( '*PREFIX*', $this->table_prefix, $statement );
+ return str_replace( '*PREFIX*', $this->tablePrefix, $statement );
}
public function enableQueryStatementCaching() {