Skip to content

Commit

Permalink
refactor: clean up parentheses on assign and ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Oct 30, 2024
1 parent 5aaecd6 commit de3d33e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/Database/BaseConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ public function transBegin(bool $testMode = false): bool
// Reset the transaction failure flag.
// If the $test_mode flag is set to TRUE transactions will be rolled back
// even if the queries produce a successful result.
$this->transFailure = ($testMode);
$this->transFailure = $testMode;

if ($this->_transBegin()) {
$this->transDepth++;
Expand Down
2 changes: 1 addition & 1 deletion system/Database/MySQLi/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function connect(bool $persistent = false)
$port = null;
$socket = $this->hostname;
} else {
$hostname = ($persistent) ? 'p:' . $this->hostname : $this->hostname;
$hostname = $persistent ? 'p:' . $this->hostname : $this->hostname;
$port = empty($this->port) ? null : $this->port;
$socket = '';
}
Expand Down

0 comments on commit de3d33e

Please sign in to comment.