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
373ae9ed
Commit
373ae9ed
authored
Sep 12, 2017
by
Luís Cobucci
Committed by
GitHub
Sep 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2858 from greg0ire/style_improvements
Style improvements
parents
ec2ae937
e63cd3d7
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
24 deletions
+20
-24
PhpDateTimeMappingType.php
lib/Doctrine/DBAL/Types/PhpDateTimeMappingType.php
+0
-2
PhpIntegerMappingType.php
lib/Doctrine/DBAL/Types/PhpIntegerMappingType.php
+0
-2
AbstractPlatformTestCase.php
...octrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php
+5
-5
SQLServer2008PlatformTest.php
...ctrine/Tests/DBAL/Platforms/SQLServer2008PlatformTest.php
+5
-5
SQLServer2012PlatformTest.php
...ctrine/Tests/DBAL/Platforms/SQLServer2012PlatformTest.php
+5
-5
SQLServerPlatformTest.php
...s/Doctrine/Tests/DBAL/Platforms/SQLServerPlatformTest.php
+5
-5
No files found.
lib/Doctrine/DBAL/Types/PhpDateTimeMappingType.php
View file @
373ae9ed
...
...
@@ -19,8 +19,6 @@
namespace
Doctrine\DBAL\Types
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
/**
* Implementations should map a database type to a PHP DateTimeInterface instance.
* @internal
...
...
lib/Doctrine/DBAL/Types/PhpIntegerMappingType.php
View file @
373ae9ed
...
...
@@ -19,8 +19,6 @@
namespace
Doctrine\DBAL\Types
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
/**
* Implementations should map a database type to a PHP integer.
* @internal
...
...
tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php
View file @
373ae9ed
...
...
@@ -563,16 +563,16 @@ abstract class AbstractPlatformTestCase extends \Doctrine\Tests\DbalTestCase
}
}
public
function
testGetDefaultValueDeclarationSQLForDateType
()
public
function
testGetDefaultValueDeclarationSQLForDateType
()
:
void
{
$currentDateSql
=
$this
->
_platform
->
getCurrentDateSQL
();
$field
=
array
(
$field
=
[
'type'
=>
Type
::
getType
(
'date'
),
'default'
=>
$currentDateSql
,
)
;
]
;
$this
->
assertEquals
(
' DEFAULT '
.
$currentDateSql
,
self
::
assertSame
(
' DEFAULT '
.
$currentDateSql
,
$this
->
_platform
->
getDefaultValueDeclarationSQL
(
$field
)
);
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/SQLServer2008PlatformTest.php
View file @
373ae9ed
...
...
@@ -21,16 +21,16 @@ class SQLServer2008PlatformTest extends AbstractSQLServerPlatformTestCase
);
}
public
function
testGetDefaultValueDeclarationSQLForDateType
()
public
function
testGetDefaultValueDeclarationSQLForDateType
()
:
void
{
$currentDateSql
=
$this
->
_platform
->
getCurrentDateSQL
();
$field
=
array
(
$field
=
[
'type'
=>
Type
::
getType
(
'date'
),
'default'
=>
$currentDateSql
,
)
;
]
;
$this
->
assertEquals
(
" DEFAULT '"
.
$currentDateSql
.
"'"
,
self
::
assertSame
(
" DEFAULT '"
.
$currentDateSql
.
"'"
,
$this
->
_platform
->
getDefaultValueDeclarationSQL
(
$field
)
);
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/SQLServer2012PlatformTest.php
View file @
373ae9ed
...
...
@@ -373,16 +373,16 @@ class SQLServer2012PlatformTest extends AbstractSQLServerPlatformTestCase
self
::
assertEquals
(
$expectedSql
,
$sql
);
}
public
function
testGetDefaultValueDeclarationSQLForDateType
()
public
function
testGetDefaultValueDeclarationSQLForDateType
()
:
void
{
$currentDateSql
=
$this
->
_platform
->
getCurrentDateSQL
();
$field
=
array
(
$field
=
[
'type'
=>
Type
::
getType
(
'date'
),
'default'
=>
$currentDateSql
,
)
;
]
;
$this
->
assertEquals
(
" DEFAULT '"
.
$currentDateSql
.
"'"
,
self
::
assertSame
(
" DEFAULT '"
.
$currentDateSql
.
"'"
,
$this
->
_platform
->
getDefaultValueDeclarationSQL
(
$field
)
);
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/SQLServerPlatformTest.php
View file @
373ae9ed
...
...
@@ -59,16 +59,16 @@ class SQLServerPlatformTest extends AbstractSQLServerPlatformTestCase
);
}
public
function
testGetDefaultValueDeclarationSQLForDateType
()
public
function
testGetDefaultValueDeclarationSQLForDateType
()
:
void
{
$currentDateSql
=
$this
->
_platform
->
getCurrentDateSQL
();
$field
=
array
(
$field
=
[
'type'
=>
Type
::
getType
(
'date'
),
'default'
=>
$currentDateSql
,
)
;
]
;
$this
->
assertEquals
(
" DEFAULT '"
.
$currentDateSql
.
"'"
,
self
::
assertSame
(
" DEFAULT '"
.
$currentDateSql
.
"'"
,
$this
->
_platform
->
getDefaultValueDeclarationSQL
(
$field
)
);
}
...
...
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