@@ -95,6 +95,6 @@ |
||
95 | 95 | */ |
96 | 96 | public function __toString() |
97 | 97 | { |
98 | - return $this->leftExpr . ' ' . $this->operator . ' ' . $this->rightExpr; |
|
98 | + return $this->leftExpr.' '.$this->operator.' '.$this->rightExpr; |
|
99 | 99 | } |
100 | 100 | } |
@@ -92,16 +92,16 @@ |
||
92 | 92 | $leftExpr = (string) $this->leftExpr; |
93 | 93 | |
94 | 94 | if ($this->leftExpr instanceof Math) { |
95 | - $leftExpr = '(' . $leftExpr . ')'; |
|
95 | + $leftExpr = '('.$leftExpr.')'; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | // Adjusting Right Expression |
99 | 99 | $rightExpr = (string) $this->rightExpr; |
100 | 100 | |
101 | 101 | if ($this->rightExpr instanceof Math) { |
102 | - $rightExpr = '(' . $rightExpr . ')'; |
|
102 | + $rightExpr = '('.$rightExpr.')'; |
|
103 | 103 | } |
104 | 104 | |
105 | - return $leftExpr . ' ' . $this->operator . ' ' . $rightExpr; |
|
105 | + return $leftExpr.' '.$this->operator.' '.$rightExpr; |
|
106 | 106 | } |
107 | 107 | } |
@@ -86,7 +86,7 @@ |
||
86 | 86 | */ |
87 | 87 | public function __toString() |
88 | 88 | { |
89 | - return $this->from . ' ' . $this->alias . |
|
90 | - ($this->indexBy ? ' INDEX BY ' . $this->indexBy : ''); |
|
89 | + return $this->from.' '.$this->alias. |
|
90 | + ($this->indexBy ? ' INDEX BY '.$this->indexBy : ''); |
|
91 | 91 | } |
92 | 92 | } |
@@ -32,8 +32,8 @@ |
||
32 | 32 | ->getMock(); |
33 | 33 | |
34 | 34 | $configuration = $this->getMockBuilder(Configuration::class) |
35 | - ->setMethods(['getMetadataDriverImpl']) |
|
36 | - ->getMock(); |
|
35 | + ->setMethods(['getMetadataDriverImpl']) |
|
36 | + ->getMock(); |
|
37 | 37 | |
38 | 38 | $connection = $this->createMock(Connection::class); |
39 | 39 |
@@ -86,6 +86,6 @@ |
||
86 | 86 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
87 | 87 | { |
88 | 88 | // getParameter applies quoting automatically |
89 | - return $targetTableAlias . '.id = ' . $this->getParameter('id'); |
|
89 | + return $targetTableAlias.'.id = '.$this->getParameter('id'); |
|
90 | 90 | } |
91 | 91 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform) |
32 | 32 | { |
33 | - return 'UPPER(' . $sqlExpr . ')'; |
|
33 | + return 'UPPER('.$sqlExpr.')'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -38,6 +38,6 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function convertToPHPValueSQL($sqlExpr, $platform) |
40 | 40 | { |
41 | - return 'LOWER(' . $sqlExpr . ')'; |
|
41 | + return 'LOWER('.$sqlExpr.')'; |
|
42 | 42 | } |
43 | 43 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform) |
40 | 40 | { |
41 | - return 'ABS(' . $sqlExpr . ')'; |
|
41 | + return 'ABS('.$sqlExpr.')'; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -46,6 +46,6 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function convertToPHPValueSQL($sqlExpr, $platform) |
48 | 48 | { |
49 | - return '-(' . $sqlExpr . ')'; |
|
49 | + return '-('.$sqlExpr.')'; |
|
50 | 50 | } |
51 | 51 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $user = new CMS\CmsUser(); |
40 | 40 | |
41 | 41 | $user->status = 'developer'; |
42 | - $user->username = 'jwage' . $i; |
|
42 | + $user->username = 'jwage'.$i; |
|
43 | 43 | $user->name = 'Jonathan'; |
44 | 44 | |
45 | 45 | $this->entityManager->persist($user); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | try { |
31 | 31 | $query = $this->em->createQuery($dqlToBeTested); |
32 | 32 | $query->setHint(Query::HINT_CUSTOM_TREE_WALKERS, [CustomTreeWalkerJoin::class]) |
33 | - ->useQueryCache(false); |
|
33 | + ->useQueryCache(false); |
|
34 | 34 | |
35 | 35 | $sqlGenerated = $query->getSql(); |
36 | 36 |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | $query->free(); |
37 | 37 | } catch (Exception $e) { |
38 | - $this->fail($e->getMessage() . ' at "' . $e->getFile() . '" on line ' . $e->getLine()); |
|
38 | + $this->fail($e->getMessage().' at "'.$e->getFile().'" on line '.$e->getLine()); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | self::assertEquals($sqlToBeConfirmed, $sqlGenerated); |
@@ -77,9 +77,9 @@ discard block |
||
77 | 77 | { |
78 | 78 | $rangeVariableDecl = $identificationVariableDecl->rangeVariableDeclaration; |
79 | 79 | $joinAssocPathExpression = new Query\AST\JoinAssociationPathExpression($rangeVariableDecl->aliasIdentificationVariable, 'address'); |
80 | - $joinAssocDeclaration = new Query\AST\JoinAssociationDeclaration($joinAssocPathExpression, $rangeVariableDecl->aliasIdentificationVariable . 'a', null); |
|
80 | + $joinAssocDeclaration = new Query\AST\JoinAssociationDeclaration($joinAssocPathExpression, $rangeVariableDecl->aliasIdentificationVariable.'a', null); |
|
81 | 81 | $join = new Query\AST\Join(Query\AST\Join::JOIN_TYPE_LEFT, $joinAssocDeclaration); |
82 | - $selectExpression = new Query\AST\SelectExpression($rangeVariableDecl->aliasIdentificationVariable . 'a', null, false); |
|
82 | + $selectExpression = new Query\AST\SelectExpression($rangeVariableDecl->aliasIdentificationVariable.'a', null, false); |
|
83 | 83 | |
84 | 84 | $identificationVariableDecl->joins[] = $join; |
85 | 85 | $selectStatement->selectClause->selectExpressions[] = $selectExpression; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $addressMetadata = $entityManager->getClassMetadata(CmsAddress::class); |
90 | 90 | |
91 | 91 | $this->setQueryComponent( |
92 | - $rangeVariableDecl->aliasIdentificationVariable . 'a', |
|
92 | + $rangeVariableDecl->aliasIdentificationVariable.'a', |
|
93 | 93 | [ |
94 | 94 | 'metadata' => $addressMetadata, |
95 | 95 | 'parent' => $rangeVariableDecl->aliasIdentificationVariable, |