Skip to content

Commit

Permalink
chore: fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnsultan authored and github-actions[bot] committed Sep 30, 2024
1 parent 7a113d0 commit 440f0c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public function search(string $row, string $value, ?array $hidden = []): ?array

/**
* Begin a database transaction
*
*
* @return self
*/
public function beginTransaction(): self
Expand All @@ -372,7 +372,7 @@ public function beginTransaction(): self

/**
* Commit the current transaction
*
*
* @return self
*/
public function commit(): self
Expand All @@ -385,7 +385,7 @@ public function commit(): self

/**
* Rollback the current transaction
*
*
* @return self
*/
public function rollback(): self
Expand All @@ -398,7 +398,7 @@ public function rollback(): self

/**
* Transaction shorthand
*
*
* @param callable $callback The callback to run
* @return self
*/
Expand All @@ -410,6 +410,7 @@ public function transaction($callback): self
$this->commit();
} catch (\Exception $e) {
$this->rollback();

throw $e;
}

Expand Down

0 comments on commit 440f0c1

Please sign in to comment.