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
38a76a90
Commit
38a76a90
authored
Jul 21, 2017
by
Marco Pivetta
Committed by
GitHub
Jul 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2778 from AlessandroMinoccheri/fix_array_declarations_in_tools_dir
fixed array declarations inside tools directory
parents
90cf171c
0344c7b9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
ReservedWordsCommand.php
...trine/DBAL/Tools/Console/Command/ReservedWordsCommand.php
+3
-3
RunSqlCommand.php
lib/Doctrine/DBAL/Tools/Console/Command/RunSqlCommand.php
+2
-2
ConsoleRunner.php
lib/Doctrine/DBAL/Tools/Console/ConsoleRunner.php
+5
-5
No files found.
lib/Doctrine/DBAL/Tools/Console/Command/ReservedWordsCommand.php
View file @
38a76a90
...
...
@@ -70,11 +70,11 @@ class ReservedWordsCommand extends Command
$this
->
setName
(
'dbal:reserved-words'
)
->
setDescription
(
'Checks if the current database contains identifiers that are reserved.'
)
->
setDefinition
(
array
(
->
setDefinition
(
[
new
InputOption
(
'list'
,
'l'
,
InputOption
::
VALUE_OPTIONAL
|
InputOption
::
VALUE_IS_ARRAY
,
'Keyword-List name.'
)
)
)
]
)
->
setHelp
(
<<<EOT
Checks if the current database contains tables and columns
with names that are identifiers in this dialect or in other SQL dialects.
...
...
@@ -138,7 +138,7 @@ EOT
);
}
$keywords
=
array
()
;
$keywords
=
[]
;
foreach
(
$keywordLists
as
$keywordList
)
{
if
(
!
isset
(
$this
->
keywordListClasses
[
$keywordList
]))
{
throw
new
\InvalidArgumentException
(
...
...
lib/Doctrine/DBAL/Tools/Console/Command/RunSqlCommand.php
View file @
38a76a90
...
...
@@ -46,11 +46,11 @@ class RunSqlCommand extends Command
$this
->
setName
(
'dbal:run-sql'
)
->
setDescription
(
'Executes arbitrary SQL directly from the command line.'
)
->
setDefinition
(
array
(
->
setDefinition
(
[
new
InputArgument
(
'sql'
,
InputArgument
::
REQUIRED
,
'The SQL statement to execute.'
),
new
InputOption
(
'depth'
,
null
,
InputOption
::
VALUE_REQUIRED
,
'Dumping depth of result set.'
,
7
),
new
InputOption
(
'force-fetch'
,
null
,
InputOption
::
VALUE_NONE
,
'Forces fetching the result.'
),
)
)
]
)
->
setHelp
(
<<<EOT
Executes arbitrary SQL directly from the command line.
EOT
...
...
lib/Doctrine/DBAL/Tools/Console/ConsoleRunner.php
View file @
38a76a90
...
...
@@ -42,9 +42,9 @@ class ConsoleRunner
*/
static
public
function
createHelperSet
(
Connection
$connection
)
{
return
new
HelperSet
(
array
(
return
new
HelperSet
(
[
'db'
=>
new
ConnectionHelper
(
$connection
)
)
);
]
);
}
/**
...
...
@@ -55,7 +55,7 @@ class ConsoleRunner
*
* @return void
*/
static
public
function
run
(
HelperSet
$helperSet
,
$commands
=
array
()
)
static
public
function
run
(
HelperSet
$helperSet
,
$commands
=
[]
)
{
$cli
=
new
Application
(
'Doctrine Command Line Interface'
,
Version
::
VERSION
);
...
...
@@ -75,11 +75,11 @@ class ConsoleRunner
*/
static
public
function
addCommands
(
Application
$cli
)
{
$cli
->
addCommands
(
array
(
$cli
->
addCommands
(
[
new
RunSqlCommand
(),
new
ImportCommand
(),
new
ReservedWordsCommand
(),
)
);
]
);
}
/**
...
...
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