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
004854f0
Commit
004854f0
authored
May 22, 2012
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #149 from Engerim/codestyle
changed some phpdoc's, set correct namespaces and types
parents
8cde790a
331e5799
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
36 additions
and
37 deletions
+36
-37
Connection.php
lib/Doctrine/DBAL/Connection.php
+1
-1
DB2Driver.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Driver.php
+1
-1
MysqliConnection.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
+1
-1
MysqliStatement.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
+1
-1
Driver.php
lib/Doctrine/DBAL/Driver/PDOIbm/Driver.php
+1
-1
Driver.php
lib/Doctrine/DBAL/Driver/PDOSqlite/Driver.php
+1
-1
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+1
-1
DB2Platform.php
lib/Doctrine/DBAL/Platforms/DB2Platform.php
+1
-1
DrizzlePlatform.php
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php
+2
-3
MySqlPlatform.php
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
+3
-3
OraclePlatform.php
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
+5
-5
PostgreSqlPlatform.php
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
+4
-6
SQLServerPlatform.php
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
+1
-1
SqlitePlatform.php
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
+1
-1
Statement.php
lib/Doctrine/DBAL/Portability/Statement.php
+1
-1
AbstractSchemaManager.php
lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
+1
-1
DB2SchemaManager.php
lib/Doctrine/DBAL/Schema/DB2SchemaManager.php
+1
-0
PostgreSqlSchemaManager.php
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
+1
-1
Schema.php
lib/Doctrine/DBAL/Schema/Schema.php
+4
-4
SchemaConfig.php
lib/Doctrine/DBAL/Schema/SchemaConfig.php
+1
-1
DropSchemaSqlCollector.php
lib/Doctrine/DBAL/Schema/Visitor/DropSchemaSqlCollector.php
+1
-0
ReservedWordsCommand.php
...trine/DBAL/Tools/Console/Command/ReservedWordsCommand.php
+1
-1
VarDateTimeType.php
lib/Doctrine/DBAL/Types/VarDateTimeType.php
+1
-1
No files found.
lib/Doctrine/DBAL/Connection.php
View file @
004854f0
...
...
@@ -105,7 +105,7 @@ class Connection implements DriverConnection
protected
$_eventManager
;
/**
* @var \Doctrine\DBAL\Query\ExpressionBuilder
* @var \Doctrine\DBAL\Query\Expression
\Expression
Builder
*/
protected
$_expr
;
...
...
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Driver.php
View file @
004854f0
...
...
@@ -80,7 +80,7 @@ class DB2Driver implements Driver
* database schema of the platform this driver connects to.
*
* @param \Doctrine\DBAL\Connection $conn
* @return \Doctrine\DBAL\SchemaManager
* @return \Doctrine\DBAL\Schema
\DB2Schema
Manager
*/
public
function
getSchemaManager
(
Connection
$conn
)
{
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
View file @
004854f0
...
...
@@ -51,7 +51,7 @@ class MysqliConnection implements Connection
*
* Could be used if part of your application is not using DBAL
*
* @return mysqli
* @return
\
mysqli
*/
public
function
getWrappedResourceHandle
()
{
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
View file @
004854f0
...
...
@@ -196,7 +196,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
}
/**
* @return
null|false
|array
* @return
boolean
|array
*/
private
function
_fetch
()
{
...
...
lib/Doctrine/DBAL/Driver/PDOIbm/Driver.php
View file @
004854f0
...
...
@@ -95,7 +95,7 @@ class Driver implements \Doctrine\DBAL\Driver
* database schema of the platform this driver connects to.
*
* @param \Doctrine\DBAL\Connection $conn
* @return \Doctrine\DBAL\SchemaManager
* @return \Doctrine\DBAL\Schema
\DB2Schema
Manager
*/
public
function
getSchemaManager
(
Connection
$conn
)
{
...
...
lib/Doctrine/DBAL/Driver/PDOSqlite/Driver.php
View file @
004854f0
...
...
@@ -42,7 +42,7 @@ class Driver implements \Doctrine\DBAL\Driver
* @param string $username
* @param string $password
* @param array $driverOptions
* @return Connection
* @return
\Doctrine\DBAL\Driver\PDO
Connection
*/
public
function
connect
(
array
$params
,
$username
=
null
,
$password
=
null
,
array
$driverOptions
=
array
())
{
...
...
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
004854f0
...
...
@@ -2678,7 +2678,7 @@ abstract class AbstractPlatform
* Throws exception if no keyword list is specified.
*
* @throws DBALException
* @return KeywordList
* @return
\Doctrine\DBAL\Platforms\Keywords\
KeywordList
*/
final
public
function
getReservedKeywordsList
()
{
...
...
lib/Doctrine/DBAL/Platforms/DB2Platform.php
View file @
004854f0
...
...
@@ -397,7 +397,7 @@ class DB2Platform extends AbstractPlatform
continue
;
}
/* @var $columnDiff Doctrine\DBAL\Schema\ColumnDiff */
/* @var $columnDiff
\
Doctrine\DBAL\Schema\ColumnDiff */
$column
=
$columnDiff
->
column
;
$queryParts
[]
=
'ALTER '
.
(
$columnDiff
->
oldColumnName
)
.
' '
.
$this
->
getColumnDeclarationSQL
(
$column
->
getQuotedName
(
$this
),
$column
->
toArray
());
...
...
lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php
View file @
004854f0
...
...
@@ -291,7 +291,7 @@ class DrizzlePlatform extends AbstractPlatform
* C/P from mysql platform
*
* @param TableDiff $diff
* @return
type
* @return
string
*/
public
function
getAlterTableSQL
(
TableDiff
$diff
)
{
...
...
@@ -325,7 +325,7 @@ class DrizzlePlatform extends AbstractPlatform
continue
;
}
/* @var $columnDiff Doctrine\DBAL\Schema\ColumnDiff */
/* @var $columnDiff
\
Doctrine\DBAL\Schema\ColumnDiff */
$column
=
$columnDiff
->
column
;
$columnArray
=
$column
->
toArray
();
$columnArray
[
'comment'
]
=
$this
->
getColumnComment
(
$column
);
...
...
@@ -386,7 +386,6 @@ class DrizzlePlatform extends AbstractPlatform
}
}
return
$item
;
return
$item
;
}
public
function
getLocateExpression
(
$str
,
$substr
,
$startPos
=
false
)
...
...
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
View file @
004854f0
...
...
@@ -380,7 +380,7 @@ class MySqlPlatform extends AbstractPlatform
* )
* );
*
* @return
void
* @return
string
* @override
*/
protected
function
_getCreateTableSQL
(
$tableName
,
array
$columns
,
array
$options
=
array
())
...
...
@@ -480,7 +480,7 @@ class MySqlPlatform extends AbstractPlatform
continue
;
}
/* @var $columnDiff Doctrine\DBAL\Schema\ColumnDiff */
/* @var $columnDiff
\
Doctrine\DBAL\Schema\ColumnDiff */
$column
=
$columnDiff
->
column
;
$columnArray
=
$column
->
toArray
();
$columnArray
[
'comment'
]
=
$this
->
getColumnComment
(
$column
);
...
...
@@ -633,7 +633,7 @@ class MySqlPlatform extends AbstractPlatform
* Return the FOREIGN KEY query section dealing with non-standard options
* as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
*
* @param ForeignKeyConstraint $foreignKey
* @param
\Doctrine\DBAL\Schema\
ForeignKeyConstraint $foreignKey
* @return string
* @override
*/
...
...
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
View file @
004854f0
...
...
@@ -107,9 +107,9 @@ class OraclePlatform extends AbstractPlatform
* them to the difference in days. This is obviously a restriction of the original functionality, but we
* need to make this a portable function.
*
* @param
type
$date1
* @param
type
$date2
* @return
type
* @param
string
$date1
* @param
string
$date2
* @return
string
*/
public
function
getDateDiffExpression
(
$date1
,
$date2
)
{
...
...
@@ -527,8 +527,8 @@ LEFT JOIN user_cons_columns r_cols
}
/**
* @param ForeignKeyConstraint|string $foreignKey
* @param Table|string $table
* @param
\Doctrine\DBAL\Schema\
ForeignKeyConstraint|string $foreignKey
* @param
\Doctrine\DBAL\Schema\
Table|string $table
* @return string
*/
public
function
getDropForeignKeySQL
(
$foreignKey
,
$table
)
...
...
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View file @
004854f0
...
...
@@ -316,8 +316,7 @@ class PostgreSqlPlatform extends AbstractPlatform
* create a new database
*
* @param string $name name of the database that should be created
* @throws PDOException
* @return void
* @return string
* @override
*/
public
function
getCreateDatabaseSQL
(
$name
)
...
...
@@ -329,7 +328,6 @@ class PostgreSqlPlatform extends AbstractPlatform
* drop an existing database
*
* @param string $name name of the database that should be dropped
* @throws PDOException
* @access public
*/
public
function
getDropDatabaseSQL
(
$name
)
...
...
@@ -502,7 +500,7 @@ class PostgreSqlPlatform extends AbstractPlatform
}
/**
* @param ForeignKeyConstraint|string $foreignKey
* @param
\Doctrine\DBAL\Schema\
ForeignKeyConstraint|string $foreignKey
* @param Table|string $table
* @return string
*/
...
...
@@ -514,10 +512,10 @@ class PostgreSqlPlatform extends AbstractPlatform
/**
* Gets the SQL used to create a table.
*
* @param
unknown_type
$tableName
* @param
string
$tableName
* @param array $columns
* @param array $options
* @return
unknown
* @return
string
*/
protected
function
_getCreateTableSQL
(
$tableName
,
array
$columns
,
array
$options
=
array
())
{
...
...
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
View file @
004854f0
...
...
@@ -342,7 +342,7 @@ class SQLServerPlatform extends AbstractPlatform
continue
;
}
/* @var $columnDiff Doctrine\DBAL\Schema\ColumnDiff */
/* @var $columnDiff
\
Doctrine\DBAL\Schema\ColumnDiff */
$column
=
$columnDiff
->
column
;
$queryParts
[]
=
'ALTER COLUMN '
.
$this
->
getColumnDeclarationSQL
(
$column
->
getQuotedName
(
$this
),
$column
->
toArray
());
...
...
lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
View file @
004854f0
...
...
@@ -283,7 +283,7 @@ class SqlitePlatform extends AbstractPlatform
* );
* @param array $options An associative array of table options:
*
* @return
void
* @return
string
* @override
*/
protected
function
_getCreateTableSQL
(
$name
,
array
$columns
,
array
$options
=
array
())
...
...
lib/Doctrine/DBAL/Portability/Statement.php
View file @
004854f0
...
...
@@ -39,7 +39,7 @@ class Statement implements \IteratorAggregate, \Doctrine\DBAL\Driver\Statement
private
$portability
;
/**
* @var Doctrine\DBAL\Driver\Statement
* @var
\
Doctrine\DBAL\Driver\Statement
*/
private
$stmt
;
...
...
lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
View file @
004854f0
...
...
@@ -403,7 +403,7 @@ abstract class AbstractSchemaManager
* Create a new sequence
*
* @param Sequence $sequence
* @throws Doctrine\DBAL\ConnectionException if something fails at database level
* @throws
\
Doctrine\DBAL\ConnectionException if something fails at database level
*/
public
function
createSequence
(
$sequence
)
{
...
...
lib/Doctrine/DBAL/Schema/DB2SchemaManager.php
View file @
004854f0
...
...
@@ -22,6 +22,7 @@
namespace
Doctrine\DBAL\Schema
;
use
Doctrine\DBAL\Event\SchemaIndexDefinitionEventArgs
;
use
Doctrine\DBAL\Events
;
/**
* IBM Db2 Schema Manager
...
...
lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
View file @
004854f0
...
...
@@ -84,7 +84,7 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
*
* This is a PostgreSQL only function.
*
* @return
type
* @return
void
*/
public
function
determineExistingSchemaSearchPaths
()
{
...
...
lib/Doctrine/DBAL/Schema/Schema.php
View file @
004854f0
...
...
@@ -293,7 +293,7 @@ class Schema extends AbstractAsset
/**
* Return an array of necessary sql queries to create the schema on the given platform.
*
* @param AbstractPlatform $platform
* @param
\Doctrine\DBAL\Platforms\
AbstractPlatform $platform
* @return array
*/
public
function
toSql
(
\Doctrine\DBAL\Platforms\AbstractPlatform
$platform
)
...
...
@@ -307,7 +307,7 @@ class Schema extends AbstractAsset
/**
* Return an array of necessary sql queries to drop the schema on the given platform.
*
* @param AbstractPlatform $platform
* @param
\Doctrine\DBAL\Platforms\
AbstractPlatform $platform
* @return array
*/
public
function
toDropSql
(
\Doctrine\DBAL\Platforms\AbstractPlatform
$platform
)
...
...
@@ -320,7 +320,7 @@ class Schema extends AbstractAsset
/**
* @param Schema $toSchema
* @param AbstractPlatform $platform
* @param
\Doctrine\DBAL\Platforms\
AbstractPlatform $platform
*/
public
function
getMigrateToSql
(
Schema
$toSchema
,
\Doctrine\DBAL\Platforms\AbstractPlatform
$platform
)
{
...
...
@@ -331,7 +331,7 @@ class Schema extends AbstractAsset
/**
* @param Schema $fromSchema
* @param AbstractPlatform $platform
* @param
\Doctrine\DBAL\Platforms\
AbstractPlatform $platform
*/
public
function
getMigrateFromSql
(
Schema
$fromSchema
,
\Doctrine\DBAL\Platforms\AbstractPlatform
$platform
)
{
...
...
lib/Doctrine/DBAL/Schema/SchemaConfig.php
View file @
004854f0
...
...
@@ -94,7 +94,7 @@ class SchemaConfig
/**
* set default namespace name of schema objects.
*
* @param
_
name the value to set.
* @param
string $
name the value to set.
*/
public
function
setName
(
$name
)
{
...
...
lib/Doctrine/DBAL/Schema/Visitor/DropSchemaSqlCollector.php
View file @
004854f0
...
...
@@ -28,6 +28,7 @@ use Doctrine\DBAL\Platforms\AbstractPlatform,
Doctrine\DBAL\Schema\ForeignKeyConstraint
,
Doctrine\DBAL\Schema\Constraint
,
Doctrine\DBAL\Schema\Sequence
,
Doctrine\DBAL\Schema\SchemaException
,
Doctrine\DBAL\Schema\Index
;
/**
...
...
lib/Doctrine/DBAL/Tools/Console/Command/ReservedWordsCommand.php
View file @
004854f0
...
...
@@ -93,7 +93,7 @@ EOT
*/
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
{
/* @var $conn Doctrine\DBAL\Connection */
/* @var $conn
\
Doctrine\DBAL\Connection */
$conn
=
$this
->
getHelper
(
'db'
)
->
getConnection
();
$keywordLists
=
(
array
)
$input
->
getOption
(
'list'
);
...
...
lib/Doctrine/DBAL/Types/VarDateTimeType.php
View file @
004854f0
...
...
@@ -43,7 +43,7 @@ class VarDateTimeType extends DateTimeType
* @throws ConversionException
* @param string $value
* @param AbstractPlatform $platform
* @return DateTime
* @return
\
DateTime
*/
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
...
...
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