@@ -21,7 +21,7 @@ final class PostgresAdvisoryLocker
2121{
2222 public function acquireLock (
2323 PDO $ dbConnection ,
24- PostgresLockId $ postgresLockId
24+ PostgresLockId $ postgresLockId,
2525 ): bool {
2626 $ statement = $ dbConnection ->prepare (
2727 <<<SQL
@@ -30,7 +30,7 @@ public function acquireLock(
3030 );
3131 $ statement ->execute (
3232 [
33- 'lock_id ' => $ postgresLockId ->id () ,
33+ 'lock_id ' => $ postgresLockId ->id ,
3434 ]
3535 );
3636
@@ -39,10 +39,10 @@ public function acquireLock(
3939
4040 public function acquireLockWithinTransaction (
4141 PDO $ dbConnection ,
42- PostgresLockId $ postgresLockId
42+ PostgresLockId $ postgresLockId,
4343 ): bool {
4444 if ($ dbConnection ->inTransaction () === false ) {
45- $ lockId = $ postgresLockId ->humanReadableValue () ;
45+ $ lockId = $ postgresLockId ->humanReadableValue ;
4646
4747 throw new LogicException (
4848 "Transaction-level advisory lock ` $ lockId` cannot be acquired outside of transaction "
@@ -56,7 +56,7 @@ public function acquireLockWithinTransaction(
5656 );
5757 $ statement ->execute (
5858 [
59- 'lock_id ' => $ postgresLockId ->id () ,
59+ 'lock_id ' => $ postgresLockId ->id ,
6060 ]
6161 );
6262
@@ -65,7 +65,7 @@ public function acquireLockWithinTransaction(
6565
6666 public function releaseLock (
6767 PDO $ dbConnection ,
68- PostgresLockId $ postgresLockId
68+ PostgresLockId $ postgresLockId,
6969 ): bool {
7070 $ statement = $ dbConnection ->prepare (
7171 <<<SQL
@@ -74,15 +74,15 @@ public function releaseLock(
7474 );
7575 $ statement ->execute (
7676 [
77- 'lock_id ' => $ postgresLockId ->id () ,
77+ 'lock_id ' => $ postgresLockId ->id ,
7878 ]
7979 );
8080
8181 return $ statement ->fetchColumn (0 );
8282 }
8383
8484 public function releaseAllLocks (
85- PDO $ dbConnection
85+ PDO $ dbConnection,
8686 ): void {
8787 $ statement = $ dbConnection ->prepare (
8888 <<<SQL
0 commit comments