@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $result = $this->manager->query($sql)->{$method}(); |
164 | 164 | } |
165 | 165 | } else { |
166 | - throw new DatabaseException("Invalid SQL or bind parameters: " . $sql .", " . strval($bind)); |
|
166 | + throw new DatabaseException("Invalid SQL or bind parameters: ".$sql.", ".strval($bind)); |
|
167 | 167 | } |
168 | 168 | } else { |
169 | 169 | $bind = null; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | $namespace = substr($this->getNamespace($filepath), 1); |
188 | - $queryKey = $namespace . "\\" . basename($filepath, ".php") . "#" . $modelMethod; |
|
188 | + $queryKey = $namespace."\\".basename($filepath, ".php")."#".$modelMethod; |
|
189 | 189 | |
190 | 190 | $query = null; |
191 | 191 | foreach ($this->queryAnnotations as $queryAnnotation) { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | |
223 | 223 | if ($entityClassPath !== null) { |
224 | 224 | if (!class_exists($entityClassPath)) { |
225 | - throw new DatabaseException("Entity classpath is not found: " . $entityClassPath); |
|
225 | + throw new DatabaseException("Entity classpath is not found: ".$entityClassPath); |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | switch ($method) { |
@@ -234,9 +234,9 @@ discard block |
||
234 | 234 | $result = $this->manager->query($sql)->select()->toEntity($entityClassPath); |
235 | 235 | } |
236 | 236 | } else { |
237 | - $errorMessage = "Invalid SQL or bind parameters: " . $sql; |
|
237 | + $errorMessage = "Invalid SQL or bind parameters: ".$sql; |
|
238 | 238 | if (is_array($bind)) { |
239 | - $errorMessage .= ", " . strval($bind); |
|
239 | + $errorMessage .= ", ".strval($bind); |
|
240 | 240 | } |
241 | 241 | |
242 | 242 | throw new DatabaseException($errorMessage); |
@@ -260,9 +260,9 @@ discard block |
||
260 | 260 | $result = $this->manager->query($sql)->{$method}(); |
261 | 261 | } |
262 | 262 | } else { |
263 | - $errorMessage = "Invalid SQL or bind parameters: " . $sql; |
|
263 | + $errorMessage = "Invalid SQL or bind parameters: ".$sql; |
|
264 | 264 | if (is_array($bind)) { |
265 | - $errorMessage .= ", " . strval($bind); |
|
265 | + $errorMessage .= ", ".strval($bind); |
|
266 | 266 | } |
267 | 267 | |
268 | 268 | throw new DatabaseException($errorMessage); |