From 16ac9c51279ccb7f411eab5c79c15f390524546b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 6 Aug 2024 09:00:46 -0500 Subject: [PATCH] formatting --- src/Illuminate/Database/MySqlConnection.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Illuminate/Database/MySqlConnection.php b/src/Illuminate/Database/MySqlConnection.php index 502c6b62782c..3a2df883c0b4 100755 --- a/src/Illuminate/Database/MySqlConnection.php +++ b/src/Illuminate/Database/MySqlConnection.php @@ -50,11 +50,6 @@ public function insert($query, $bindings = [], $sequence = null) }); } - public function getLastInsertId() - { - return $this->lastInsertId; - } - /** * Escape a binary value for safe SQL embedding. * @@ -79,6 +74,16 @@ protected function isUniqueConstraintError(Exception $exception) return boolval(preg_match('#Integrity constraint violation: 1062#i', $exception->getMessage())); } + /** + * Get the connection's last insert ID. + * + * @return string|int|null + */ + public function getLastInsertId() + { + return $this->lastInsertId; + } + /** * Determine if the connected database is a MariaDB database. *