From 3824a366b0cd8a081bef26d3b4509c5db2fe7aae Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 9 Aug 2017 08:47:40 -0500 Subject: [PATCH] formatting --- src/Illuminate/Database/Connection.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Database/Connection.php b/src/Illuminate/Database/Connection.php index eb3d42a335cd..b5ebb66e87b6 100755 --- a/src/Illuminate/Database/Connection.php +++ b/src/Illuminate/Database/Connection.php @@ -482,9 +482,11 @@ public function affectingStatement($query, $bindings = []) $statement->execute(); - $this->recordsHaveBeenModified($statement->rowCount() > 0); + $this->recordsHaveBeenModified( + ($count = $statement->rowCount()) > 0 + ); - return $statement->rowCount(); + return $count; }); }