Commit 52c1725b authored by Alessandro Minoccheri's avatar Alessandro Minoccheri

fixed array declarations

parent 7bac6913
......@@ -87,7 +87,7 @@ class MasterSlaveConnection extends Connection
*
* @var \Doctrine\DBAL\Driver\Connection[]
*/
protected $connections = array('master' => null, 'slave' => null);
protected $connections = ['master' => null, 'slave' => null];
/**
* You can keep the slave connection and then switch back to it
......@@ -202,7 +202,7 @@ class MasterSlaveConnection extends Connection
{
$params = $this->getParams();
$driverOptions = isset($params['driverOptions']) ? $params['driverOptions'] : array();
$driverOptions = isset($params['driverOptions']) ? $params['driverOptions'] : [];
$connectionParams = $this->chooseConnectionConfiguration($connectionName, $params);
......@@ -230,7 +230,7 @@ class MasterSlaveConnection extends Connection
/**
* {@inheritDoc}
*/
public function executeUpdate($query, array $params = array(), array $types = array())
public function executeUpdate($query, array $params = [], array $types = [])
{
$this->connect('master');
......@@ -270,7 +270,7 @@ class MasterSlaveConnection extends Connection
/**
* {@inheritDoc}
*/
public function delete($tableName, array $identifier, array $types = array())
public function delete($tableName, array $identifier, array $types = [])
{
$this->connect('master');
......@@ -294,7 +294,7 @@ class MasterSlaveConnection extends Connection
/**
* {@inheritDoc}
*/
public function update($tableName, array $data, array $identifier, array $types = array())
public function update($tableName, array $data, array $identifier, array $types = [])
{
$this->connect('master');
......@@ -304,7 +304,7 @@ class MasterSlaveConnection extends Connection
/**
* {@inheritDoc}
*/
public function insert($tableName, array $data, array $types = array())
public function insert($tableName, array $data, array $types = [])
{
$this->connect('master');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment