Skip to content

Commit 14d4e23

Browse files
author
Anton Komarev
committed
Code style fix
1 parent 6490329 commit 14d4e23

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

test/Integration/AbstractIntegrationTestCase.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ private function findPostgresAdvisoryLockInConnection(
9595

9696
$statement = $dbConnection->prepare(
9797
<<<SQL
98-
SELECT *
99-
FROM pg_locks
100-
WHERE locktype = 'advisory'
101-
AND classid = :lock_catalog_id
102-
AND objid = :lock_object_id
103-
AND pid = :connection_pid
104-
AND mode = 'ExclusiveLock'
98+
SELECT *
99+
FROM pg_locks
100+
WHERE locktype = 'advisory'
101+
AND classid = :lock_catalog_id
102+
AND objid = :lock_object_id
103+
AND pid = :connection_pid
104+
AND mode = 'ExclusiveLock'
105105
SQL
106106
);
107107
$statement->execute(
@@ -127,10 +127,10 @@ private function findAllPostgresAdvisoryLocks(): array
127127

128128
$statement = $dbConnection->prepare(
129129
<<<SQL
130-
SELECT *
131-
FROM pg_locks
132-
WHERE locktype = 'advisory'
133-
AND mode = 'ExclusiveLock'
130+
SELECT *
131+
FROM pg_locks
132+
WHERE locktype = 'advisory'
133+
AND mode = 'ExclusiveLock'
134134
SQL
135135
);
136136
$statement->execute();
@@ -142,9 +142,9 @@ private function closeAllPostgresPdoConnections(): void
142142
{
143143
$this->createPostgresPdoConnection()->query(
144144
<<<SQL
145-
SELECT pg_terminate_backend(pid)
146-
FROM pg_stat_activity
147-
WHERE pid <> pg_backend_pid()
145+
SELECT pg_terminate_backend(pid)
146+
FROM pg_stat_activity
147+
WHERE pid <> pg_backend_pid()
148148
SQL
149149
);
150150
}

test/Integration/Locker/PostgresAdvisoryLockerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
final class PostgresAdvisoryLockerTest extends AbstractIntegrationTestCase
2323
{
2424
private const MIN_DB_INT_VALUE = 0;
25-
private const MAX_DB_INT_VALUE = PHP_INT_MAX;
25+
private const MAX_DB_INT_VALUE = 9223372036854775807;
2626

2727
/** @test */
2828
public function it_can_acquire_lock(): void

test/Unit/LockId/LockIdTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
namespace Cog\Test\DbLocker\Unit\LockId;
1515

1616
use Cog\DbLocker\LockId\LockId;
17-
use Cog\Test\DbLocker\Unit\AbstractUnitTestCase;
1817
use InvalidArgumentException;
18+
use PHPUnit\Framework\TestCase;
1919

20-
final class LockIdTest extends AbstractUnitTestCase
20+
final class LockIdTest extends TestCase
2121
{
2222
/** @test */
2323
public function it_can_create_lock_id(): void

test/Unit/LockId/PostgresLockIdTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
final class PostgresLockIdTest extends AbstractUnitTestCase
2121
{
2222
private const MIN_DB_INT_VALUE = 0;
23-
private const MAX_DB_INT_VALUE = PHP_INT_MAX;
23+
private const MAX_DB_INT_VALUE = 9223372036854775807;
2424

2525
/** @test */
2626
public function it_can_create_postgres_lock_id_with_min_id(): void

0 commit comments

Comments
 (0)