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
bcd2d97e
Unverified
Commit
bcd2d97e
authored
Dec 16, 2017
by
Marco Pivetta
Committed by
GitHub
Dec 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2937 from carusogabriel/clean-elses
Clean elses
parents
73b2ad52
60132596
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
17 deletions
+17
-17
Connection.php
lib/Doctrine/DBAL/Driver/DrizzlePDOMySql/Connection.php
+2
-2
DB2Connection.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
+2
-2
QueryBuilder.php
lib/Doctrine/DBAL/Query/QueryBuilder.php
+2
-2
PostgreSqlSchemaManager.php
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
+2
-2
Table.php
lib/Doctrine/DBAL/Schema/Table.php
+2
-2
Statement.php
lib/Doctrine/DBAL/Statement.php
+2
-2
DbalFunctionalTestCase.php
tests/Doctrine/Tests/DbalFunctionalTestCase.php
+2
-2
DriverMock.php
tests/Doctrine/Tests/Mocks/DriverMock.php
+3
-3
No files found.
lib/Doctrine/DBAL/Driver/DrizzlePDOMySql/Connection.php
View file @
bcd2d97e
...
...
@@ -32,9 +32,9 @@ class Connection extends \Doctrine\DBAL\Driver\PDOConnection
if
(
\PDO
::
PARAM_BOOL
===
$type
)
{
if
(
$value
)
{
return
'true'
;
}
else
{
return
'false'
;
}
return
'false'
;
}
return
parent
::
quote
(
$value
,
$type
);
...
...
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
View file @
bcd2d97e
...
...
@@ -103,9 +103,9 @@ class DB2Connection implements Connection, ServerInfoAwareConnection
$input
=
db2_escape_string
(
$input
);
if
(
$type
==
\PDO
::
PARAM_INT
)
{
return
$input
;
}
else
{
return
"'"
.
$input
.
"'"
;
}
return
"'"
.
$input
.
"'"
;
}
/**
...
...
lib/Doctrine/DBAL/Query/QueryBuilder.php
View file @
bcd2d97e
...
...
@@ -204,9 +204,9 @@ class QueryBuilder
{
if
(
$this
->
type
==
self
::
SELECT
)
{
return
$this
->
connection
->
executeQuery
(
$this
->
getSQL
(),
$this
->
params
,
$this
->
paramTypes
);
}
else
{
return
$this
->
connection
->
executeUpdate
(
$this
->
getSQL
(),
$this
->
params
,
$this
->
paramTypes
);
}
return
$this
->
connection
->
executeUpdate
(
$this
->
getSQL
(),
$this
->
params
,
$this
->
paramTypes
);
}
/**
...
...
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
View file @
bcd2d97e
...
...
@@ -194,9 +194,9 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
if
(
$table
[
'schema_name'
]
==
$firstSchema
)
{
return
$table
[
'table_name'
];
}
else
{
return
$table
[
'schema_name'
]
.
"."
.
$table
[
'table_name'
];
}
return
$table
[
'schema_name'
]
.
"."
.
$table
[
'table_name'
];
}
/**
...
...
lib/Doctrine/DBAL/Schema/Table.php
View file @
bcd2d97e
...
...
@@ -122,9 +122,9 @@ class Table extends AbstractAsset
{
if
(
$this
->
_schemaConfig
instanceof
SchemaConfig
)
{
return
$this
->
_schemaConfig
->
getMaxIdentifierLength
();
}
else
{
return
63
;
}
return
63
;
}
/**
...
...
lib/Doctrine/DBAL/Statement.php
View file @
bcd2d97e
...
...
@@ -118,9 +118,9 @@ class Statement implements \IteratorAggregate, DriverStatement
}
return
$this
->
stmt
->
bindValue
(
$name
,
$value
,
$bindingType
);
}
else
{
return
$this
->
stmt
->
bindValue
(
$name
,
$value
);
}
return
$this
->
stmt
->
bindValue
(
$name
,
$value
);
}
/**
...
...
tests/Doctrine/Tests/DbalFunctionalTestCase.php
View file @
bcd2d97e
...
...
@@ -62,9 +62,9 @@ class DbalFunctionalTestCase extends DbalTestCase
return
get_class
(
$p
);
}
elseif
(
is_scalar
(
$p
))
{
return
"'"
.
$p
.
"'"
;
}
else
{
return
var_export
(
$p
,
true
);
}
return
var_export
(
$p
,
true
);
},
$query
[
'params'
]
?:
array
());
$queries
.=
$i
.
". SQL: '"
.
$query
[
'sql'
]
.
"' Params: "
.
implode
(
", "
,
$params
)
.
PHP_EOL
;
$i
--
;
...
...
tests/Doctrine/Tests/Mocks/DriverMock.php
View file @
bcd2d97e
...
...
@@ -43,9 +43,9 @@ class DriverMock implements \Doctrine\DBAL\Driver
{
if
(
$this
->
_schemaManagerMock
==
null
)
{
return
new
SchemaManagerMock
(
$conn
);
}
else
{
return
$this
->
_schemaManagerMock
;
}
return
$this
->
_schemaManagerMock
;
}
/* MOCK API */
...
...
@@ -74,4 +74,4 @@ class DriverMock implements \Doctrine\DBAL\Driver
{
return
0
;
}
}
\ No newline at end of file
}
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