Completed
Push — master ( fc96d2...fa83e4 )
by Ron
04:08
created
src/Databases/MySQL/MySQLExceptionInterpreter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 	public function throwMoreConcreteException(PDOException $exception) {
17 17
 		$code = $exception->getCode();
18 18
 		$message = (string) $exception->getMessage();
19
-		switch($code) {
19
+		switch ($code) {
20 20
 			case 2006: throw new DatabaseHasGoneAwayException($message, $code, $exception);
21 21
 			case 1213: throw new SqlDeadLockException($message, $code, $exception);
22 22
 			case 1205: throw new LockWaitTimeoutExceededException($message, $code, $exception);
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 			case 1586: throw new DuplicateUniqueKeyException($message, $code, $exception);
27 27
 		}
28 28
 		/** @link http://php.net/manual/en/class.exception.php#Hcom115813 (cHao's comment) */
29
-		if(!is_string($message) || !is_int($code)) {
29
+		if (!is_string($message) || !is_int($code)) {
30 30
 			throw new SqlException((string) $message, (int) $code, $exception);
31 31
 		}
32 32
 		throw $exception;
Please login to merge, or discard this patch.