Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Nov 26, 2020
1 parent 127bbe7 commit c4fe69e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Database/DatabaseTransactionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function testTransactionIsRecordedAndCommitted()
'name' => 'zain', 'value' => 1,
]);

$this->connection()->transaction(function() use ($transactionManager){
$this->connection()->transaction(function () {
$this->connection()->table('users')->where(['name' => 'zain'])->update([
'value' => 2,
]);
Expand Down Expand Up @@ -109,12 +109,12 @@ public function testNestedTransactionIsRecordedAndCommitted()
'name' => 'zain', 'value' => 1,
]);

$this->connection()->transaction(function() use ($transactionManager){
$this->connection()->transaction(function () {
$this->connection()->table('users')->where(['name' => 'zain'])->update([
'value' => 2,
]);

$this->connection()->transaction(function() use ($transactionManager){
$this->connection()->transaction(function () {
$this->connection()->table('users')->where(['name' => 'zain'])->update([
'value' => 2,
]);
Expand All @@ -138,17 +138,17 @@ public function testNestedTransactionIsRecordeForDifferentConnectionsdAndCommitt
'name' => 'zain', 'value' => 1,
]);

$this->connection()->transaction(function() use ($transactionManager){
$this->connection()->transaction(function () {
$this->connection()->table('users')->where(['name' => 'zain'])->update([
'value' => 2,
]);

$this->connection('second_connection')->transaction(function() use ($transactionManager){
$this->connection('second_connection')->transaction(function () {
$this->connection('second_connection')->table('users')->where(['name' => 'zain'])->update([
'value' => 2,
]);

$this->connection('second_connection')->transaction(function() use ($transactionManager){
$this->connection('second_connection')->transaction(function () {
$this->connection('second_connection')->table('users')->where(['name' => 'zain'])->update([
'value' => 2,
]);
Expand All @@ -171,7 +171,7 @@ public function testTransactionIsRolledBack()
]);

try {
$this->connection()->transaction(function () use ($transactionManager) {
$this->connection()->transaction(function () {
$this->connection()->table('users')->where(['name' => 'zain'])->update([
'value' => 2,
]);
Expand Down Expand Up @@ -220,12 +220,12 @@ public function testNestedTransactionsAreRolledBack()
]);

try {
$this->connection()->transaction(function () use ($transactionManager) {
$this->connection()->transaction(function () {
$this->connection()->table('users')->where(['name' => 'zain'])->update([
'value' => 2,
]);

$this->connection()->transaction(function () use ($transactionManager) {
$this->connection()->transaction(function () {
$this->connection()->table('users')->where(['name' => 'zain'])->update([
'value' => 2,
]);
Expand Down

0 comments on commit c4fe69e

Please sign in to comment.