Skip to content

Commit

Permalink
fixed array declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroMinoccheri committed Jun 20, 2017
1 parent 7bac691 commit 52c1725
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -202,7 +202,7 @@ protected function connectTo($connectionName)
{
$params = $this->getParams();

$driverOptions = isset($params['driverOptions']) ? $params['driverOptions'] : array();
$driverOptions = isset($params['driverOptions']) ? $params['driverOptions'] : [];

$connectionParams = $this->chooseConnectionConfiguration($connectionName, $params);

Expand Down Expand Up @@ -230,7 +230,7 @@ protected function chooseConnectionConfiguration($connectionName, $params)
/**
* {@inheritDoc}
*/
public function executeUpdate($query, array $params = array(), array $types = array())
public function executeUpdate($query, array $params = [], array $types = [])
{
$this->connect('master');

Expand Down Expand Up @@ -270,7 +270,7 @@ public function rollBack()
/**
* {@inheritDoc}
*/
public function delete($tableName, array $identifier, array $types = array())
public function delete($tableName, array $identifier, array $types = [])
{
$this->connect('master');

Expand All @@ -294,7 +294,7 @@ public function close()
/**
* {@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');

Expand All @@ -304,7 +304,7 @@ public function update($tableName, array $data, array $identifier, array $types
/**
* {@inheritDoc}
*/
public function insert($tableName, array $data, array $types = array())
public function insert($tableName, array $data, array $types = [])
{
$this->connect('master');

Expand Down

0 comments on commit 52c1725

Please sign in to comment.