@@ -170,7 +170,7 @@ |
||
170 | 170 | |
171 | 171 | // Recognize identifiers, aliased or qualified names |
172 | 172 | case (ctype_alpha($value[0]) || $value[0] === '_' || $value[0] === '\\'): |
173 | - $name = 'Doctrine\ORM\Query\Lexer::T_' . strtoupper($value); |
|
173 | + $name = 'Doctrine\ORM\Query\Lexer::T_'.strtoupper($value); |
|
174 | 174 | |
175 | 175 | if (defined($name)) { |
176 | 176 | $type = constant($name); |
@@ -73,6 +73,6 @@ |
||
73 | 73 | */ |
74 | 74 | public function __toString() |
75 | 75 | { |
76 | - return $this->name . '(' . implode(', ', $this->arguments) . ')'; |
|
76 | + return $this->name.'('.implode(', ', $this->arguments).')'; |
|
77 | 77 | } |
78 | 78 | } |
@@ -138,8 +138,8 @@ |
||
138 | 138 | public function __toString() |
139 | 139 | { |
140 | 140 | return strtoupper($this->joinType) . ' JOIN ' . $this->join |
141 | - . ($this->alias ? ' ' . $this->alias : '') |
|
142 | - . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '') |
|
143 | - . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : ''); |
|
141 | + . ($this->alias ? ' ' . $this->alias : '') |
|
142 | + . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '') |
|
143 | + . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : ''); |
|
144 | 144 | } |
145 | 145 | } |
@@ -137,9 +137,9 @@ |
||
137 | 137 | */ |
138 | 138 | public function __toString() |
139 | 139 | { |
140 | - return strtoupper($this->joinType) . ' JOIN ' . $this->join |
|
141 | - . ($this->alias ? ' ' . $this->alias : '') |
|
142 | - . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '') |
|
143 | - . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : ''); |
|
140 | + return strtoupper($this->joinType).' JOIN '.$this->join |
|
141 | + . ($this->alias ? ' '.$this->alias : '') |
|
142 | + . ($this->indexBy ? ' INDEX BY '.$this->indexBy : '') |
|
143 | + . ($this->condition ? ' '.strtoupper($this->conditionType).' '.$this->condition : ''); |
|
144 | 144 | } |
145 | 145 | } |
@@ -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 | } |
@@ -58,12 +58,12 @@ |
||
58 | 58 | $queryPart = (string) $part; |
59 | 59 | |
60 | 60 | if (is_object($part) && $part instanceof self && $part->count() > 1) { |
61 | - return $this->preSeparator . $queryPart . $this->postSeparator; |
|
61 | + return $this->preSeparator.$queryPart.$this->postSeparator; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | // Fixes DDC-1237: User may have added a where item containing nested expression (with "OR" or "AND") |
65 | 65 | if (stripos($queryPart, ' OR ') !== false || stripos($queryPart, ' AND ') !== false) { |
66 | - return $this->preSeparator . $queryPart . $this->postSeparator; |
|
66 | + return $this->preSeparator.$queryPart.$this->postSeparator; |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | return $queryPart; |
@@ -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 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | protected function getCacheEntryKey(CacheKey $key) |
126 | 126 | { |
127 | - return $this->name . self::REGION_KEY_SEPARATOR . $key->hash; |
|
127 | + return $this->name.self::REGION_KEY_SEPARATOR.$key->hash; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | */ |
149 | 149 | public function evictAll() |
150 | 150 | { |
151 | - if (! $this->cache instanceof ClearableCache) { |
|
151 | + if ( ! $this->cache instanceof ClearableCache) { |
|
152 | 152 | throw new \BadMethodCallException(sprintf( |
153 | 153 | 'Clearing all cache entries is not supported by the supplied cache adapter of type %s', |
154 | 154 | get_class($this->cache) |
@@ -52,6 +52,6 @@ |
||
52 | 52 | |
53 | 53 | $this->identifier = $identifier; |
54 | 54 | $this->entityClass = $entityClass; |
55 | - $this->hash = str_replace('\\', '.', strtolower($entityClass) . '_' . implode(' ', $identifier)); |
|
55 | + $this->hash = str_replace('\\', '.', strtolower($entityClass).'_'.implode(' ', $identifier)); |
|
56 | 56 | } |
57 | 57 | } |