Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27b4f58

Browse files
Merge pull request doctrine#362 from odolbeau/cs
Correct some mistakes (tabs & trailing spaces)
2 parents e8ad82c + 79a9ce5 commit 27b4f58

9 files changed

Lines changed: 9 additions & 15 deletions

File tree

lib/Doctrine/ORM/Event/PreUpdateEventArgs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function hasChangedField($field)
8181
*/
8282
public function getOldValue($field)
8383
{
84-
$this->assertValidField($field);
84+
$this->assertValidField($field);
8585

8686
return $this->entityChangeSet[$field][0];
8787
}
@@ -119,7 +119,7 @@ public function setNewValue($field, $value)
119119
*/
120120
private function assertValidField($field)
121121
{
122-
if ( ! isset($this->entityChangeSet[$field])) {
122+
if ( ! isset($this->entityChangeSet[$field])) {
123123
throw new \InvalidArgumentException(sprintf(
124124
'Field "%s" is not a valid field of the entity "%s" in PreUpdateEventArgs.',
125125
$field,

lib/Doctrine/ORM/Id/AssignedGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
namespace Doctrine\ORM\Id;
2121

2222
use Doctrine\ORM\EntityManager;
23-
use Doctrine\ORM\Mapping\ClassMetadata;
2423
use Doctrine\ORM\ORMException;
2524

2625
/**

lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function hydrateRowData(array $row, array &$cache, array &$result)
111111
// Get a reference to the right element in the result tree.
112112
// This element will get the associated element attached.
113113
if ($this->_rsm->isMixed && isset($this->_rootAliases[$parent])) {
114-
$first = reset($this->_resultPointers);
114+
$first = reset($this->_resultPointers);
115115
// TODO: Exception if $key === null ?
116116
$baseElement =& $this->_resultPointers[$parent][key($first)];
117117
} else if (isset($this->_resultPointers[$parent])) {

lib/Doctrine/ORM/Internal/Hydration/ScalarHydrator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
namespace Doctrine\ORM\Internal\Hydration;
2121

22-
use Doctrine\DBAL\Connection;
23-
2422
/**
2523
* Hydrator that produces flat, rectangular results of scalar data.
2624
* The created result is almost the same as a regular SQL result set, except

lib/Doctrine/ORM/Query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ public function useQueryCache($bool)
347347
/**
348348
* Returns the cache driver used for query caching.
349349
*
350-
* @return CacheDriver The cache driver used for query caching or NULL, if this
351-
* Query does not use query caching.
350+
* @return CacheDriver The cache driver used for query caching or NULL, if
351+
* this Query does not use query caching.
352352
*/
353353
public function getQueryCacheDriver()
354354
{

lib/Doctrine/ORM/Query/AST/Functions/DateSubFunction.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919

2020
namespace Doctrine\ORM\Query\AST\Functions;
2121

22-
use Doctrine\ORM\Query\Lexer;
2322
use Doctrine\ORM\Query\SqlWalker;
24-
use Doctrine\ORM\Query\Parser;
2523
use Doctrine\ORM\Query\QueryException;
2624

2725
/**

lib/Doctrine/ORM/Query/SqlWalker.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ public function walkInstanceOfExpression($instanceOfExpr)
18521852

18531853
$dqlAlias = $instanceOfExpr->identificationVariable;
18541854
$discrClass = $class = $this->_queryComponents[$dqlAlias]['metadata'];
1855-
1855+
18561856
if ($class->discriminatorColumn) {
18571857
$discrClass = $this->_em->getClassMetadata($class->rootEntityName);
18581858
}
@@ -2046,8 +2046,8 @@ public function walkInputParameter($inputParam)
20462046
public function walkArithmeticExpression($arithmeticExpr)
20472047
{
20482048
return ($arithmeticExpr->isSimpleArithmeticExpression())
2049-
? $this->walkSimpleArithmeticExpression($arithmeticExpr->simpleArithmeticExpression)
2050-
: '(' . $this->walkSubselect($arithmeticExpr->subselect) . ')';
2049+
? $this->walkSimpleArithmeticExpression($arithmeticExpr->simpleArithmeticExpression)
2050+
: '(' . $this->walkSubselect($arithmeticExpr->subselect) . ')';
20512051
}
20522052

20532053
/**

lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
namespace Doctrine\ORM\Tools\Console\Command;
2121

2222
use Doctrine\ORM\Mapping\MappingException;
23-
use Symfony\Component\Console\Input\InputOption;
2423
use Symfony\Component\Console\Input\InputInterface;
2524
use Symfony\Component\Console\Output\OutputInterface;
2625
use Symfony\Component\Console\Command\Command;

lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryWalker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function walkSelectStatement(SelectStatement $AST)
104104
$pathExpression->type = PathExpression::TYPE_STATE_FIELD;
105105
$AST->selectClause->selectExpressions[] = new SelectExpression(
106106
$pathExpression,
107-
'_dctrn_ord' . $this->_aliasCounter++
107+
'_dctrn_ord' . $this->_aliasCounter++
108108
);
109109
}
110110
}

0 commit comments

Comments
 (0)