Completed
Push — master ( 5a0aba...a14f38 )
by Ron
01:58
created
src/Databases/MySQL/MySQLExceptionInterpreter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 		$errorInfo = $exception->errorInfo;
19 19
 		$code = is_array($errorInfo) && isset($errorInfo[1]) ? ((int) $errorInfo[1]) : ((int) $exception->getCode());
20 20
 		$message = (string) $exception->getMessage();
21
-		switch($code) {
21
+		switch ($code) {
22 22
 			case 2006: throw new DatabaseHasGoneAwayException($message, $code, $exception);
23 23
 			case 1213: throw new SqlDeadLockException($message, $code, $exception);
24 24
 			case 1205: throw new LockWaitTimeoutExceededException($message, $code, $exception);
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 			case 1452: throw new IntegrityConstraintViolationException($message, (int) $code, $exception);
32 32
 		}
33 33
 		/** @link http://php.net/manual/en/class.exception.php#Hcom115813 (cHao's comment) */
34
-		if(!is_string($message) || !is_int($code)) {
34
+		if (!is_string($message) || !is_int($code)) {
35 35
 			throw new SqlException((string) $message, (int) $code, $exception);
36 36
 		}
37 37
 		throw $exception;
Please login to merge, or discard this patch.