@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $result = $this->manager->query($sql)->{$method}(); |
155 | 155 | } |
156 | 156 | } else { |
157 | - throw new DatabaseException("Invalid SQL or bind parameters: " . $sql .", " . strval($bind)); |
|
157 | + throw new DatabaseException("Invalid SQL or bind parameters: ".$sql.", ".strval($bind)); |
|
158 | 158 | } |
159 | 159 | } else { |
160 | 160 | $bind = null; |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | $namespace = substr($this->getNamespace($filepath), 1); |
179 | - $queryKey = $namespace . "\\" . basename($filepath, ".php") . "#" . $modelMethod; |
|
179 | + $queryKey = $namespace."\\".basename($filepath, ".php")."#".$modelMethod; |
|
180 | 180 | |
181 | 181 | $query = null; |
182 | 182 | foreach ($this->queryAnnotations as $queryAnnotation) { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | } |
205 | 205 | |
206 | 206 | if ($query === null) { |
207 | - throw new DatabaseException("SQL statement can't getting from xml file: " . $modelMethod); |
|
207 | + throw new DatabaseException("SQL statement can't getting from xml file: ".$modelMethod); |
|
208 | 208 | } |
209 | 209 | |
210 | 210 | $sql = $query["sql"]; |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | |
214 | 214 | if ($entityClassPath !== null) { |
215 | 215 | if (!class_exists($entityClassPath)) { |
216 | - throw new DatabaseException("Entity classpath is not found: " . $entityClassPath); |
|
216 | + throw new DatabaseException("Entity classpath is not found: ".$entityClassPath); |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | switch ($method) { |
@@ -225,9 +225,9 @@ discard block |
||
225 | 225 | $result = $this->manager->query($sql)->select()->toEntity($entityClassPath); |
226 | 226 | } |
227 | 227 | } else { |
228 | - $errorMessage = "Invalid SQL or bind parameters: " . $sql; |
|
228 | + $errorMessage = "Invalid SQL or bind parameters: ".$sql; |
|
229 | 229 | if (is_array($bind)) { |
230 | - $errorMessage .= ", " . strval($bind); |
|
230 | + $errorMessage .= ", ".strval($bind); |
|
231 | 231 | } |
232 | 232 | |
233 | 233 | throw new DatabaseException($errorMessage); |
@@ -251,9 +251,9 @@ discard block |
||
251 | 251 | $result = $this->manager->query($sql)->{$method}(); |
252 | 252 | } |
253 | 253 | } else { |
254 | - $errorMessage = "Invalid SQL or bind parameters: " . $sql; |
|
254 | + $errorMessage = "Invalid SQL or bind parameters: ".$sql; |
|
255 | 255 | if (is_array($bind)) { |
256 | - $errorMessage .= ", " . strval($bind); |
|
256 | + $errorMessage .= ", ".strval($bind); |
|
257 | 257 | } |
258 | 258 | |
259 | 259 | throw new DatabaseException($errorMessage); |