Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
52c1725b
Commit
52c1725b
authored
Jun 20, 2017
by
Alessandro Minoccheri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed array declarations
parent
7bac6913
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
MasterSlaveConnection.php
lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php
+6
-6
No files found.
lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php
View file @
52c1725b
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment