Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 9, 2017
1 parent 97a272b commit 3824a36
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Illuminate/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}

Expand Down

0 comments on commit 3824a36

Please sign in to comment.