Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit 60fab4f

Browse files
committed
Fix cs
1 parent 5cc02d3 commit 60fab4f

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

tests/InsertQueryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,4 @@ public function testOnDuplicateKeyUpdate(): void
128128
$insert->onDuplicateKeyUpdate(['username' => 'admin-01']);
129129
$this->assertSame("INSERT IGNORE INTO `test` SET `username`='admin' ON DUPLICATE KEY UPDATE `username`='admin-01';", $insert->build());
130130
}
131-
132131
}

tests/SelectQueryTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function (SelectQuery $subSelect) {
182182
$subSelect->columns([new RawExp('MAX(payments.amount)')])
183183
->from('payments')
184184
->alias('max_amount'); // AS max_amount
185-
}
185+
},
186186
])
187187
->from('test');
188188

@@ -648,5 +648,4 @@ public function testRaw(): void
648648

649649
$this->assertEquals('SELECT count(*) AS user_count,`status` FROM `payments`;', $query->build());
650650
}
651-
652651
}

tests/UpdateQueryTest.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ public function testWhere(): void
107107
$update = $this->update()->table('test')->set(['username' => 'admin'])
108108
->where('test.id', '=', 1)
109109
->orWhere('db.test.id', '>', 2);
110-
$this->assertSame("UPDATE `test` SET `username`='admin' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2';",
111-
$update->build());
110+
$this->assertSame(
111+
"UPDATE `test` SET `username`='admin' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2';",
112+
$update->build()
113+
);
112114
}
113115

114116
/**
@@ -122,14 +124,18 @@ public function testIncrementDecrement(): void
122124
$update = $this->update()->table('users')->increment('voted', 1)
123125
->where('test.id', '=', 1)
124126
->orWhere('db.test.id', '>', 2);
125-
$this->assertSame("UPDATE `users` SET `voted`=`voted`+'1' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2';",
126-
$update->build());
127+
$this->assertSame(
128+
"UPDATE `users` SET `voted`=`voted`+'1' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2';",
129+
$update->build()
130+
);
127131

128132
$update = $this->update()->table('users')->decrement('voted', 10)
129133
->where('test.id', '=', 1)
130134
->orWhere('db.test.id', '>', 2);
131-
$this->assertSame("UPDATE `users` SET `voted`=`voted`-'10' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2';",
132-
$update->build());
135+
$this->assertSame(
136+
"UPDATE `users` SET `voted`=`voted`-'10' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2';",
137+
$update->build()
138+
);
133139

134140
$update = $this->update()->table('users')->set(['votes' => new RawExp('votes+1')])->where('id', '=', '1');
135141
$this->assertSame("UPDATE `users` SET `votes`=votes+1 WHERE `id` = '1';", $update->build());

0 commit comments

Comments
 (0)