@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | public function throwMoreConcreteException(PDOException $exception) { |
18 | 18 | $code = $exception->getCode(); |
19 | 19 | $message = (string) $exception->getMessage(); |
20 | - switch($code) { |
|
20 | + switch ($code) { |
|
21 | 21 | case 2006: throw new DatabaseHasGoneAwayException($message, $code, $exception); |
22 | 22 | case 1213: throw new SqlDeadLockException($message, $code, $exception); |
23 | 23 | case 1205: throw new LockWaitTimeoutExceededException($message, $code, $exception); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | case 1217: throw new IntegrityConstraintViolationException($message, (int) $code, $exception); |
30 | 30 | } |
31 | 31 | /** @link http://php.net/manual/en/class.exception.php#Hcom115813 (cHao's comment) */ |
32 | - if(!is_string($message) || !is_int($code)) { |
|
32 | + if (!is_string($message) || !is_int($code)) { |
|
33 | 33 | throw new SqlException((string) $message, (int) $code, $exception); |
34 | 34 | } |
35 | 35 | throw $exception; |