Skip to content

Commit

Permalink
Merge pull request #1208: Apply risky Code Style rules
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Jan 24, 2025
1 parent 2af60b3 commit da53bd6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions tests/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testConfig(): void
'handlers' => [
'files' => [
'class' => FileHandler::class,
'options' => ['directory' => sys_get_temp_dir()],
'options' => ['directory' => \sys_get_temp_dir()],
],
],
]);
Expand All @@ -31,7 +31,7 @@ public function testConfig(): void
self::assertSame(86400, $c->getLifetime());
self::assertNull($c->getSameSite());
self::assertEquals(new Autowire(FileHandler::class, [
'directory' => sys_get_temp_dir(),
'directory' => \sys_get_temp_dir(),
]), $c->getHandler());
}

Expand All @@ -41,11 +41,11 @@ public function testConfigAutowired(): void
'lifetime' => 86400,
'cookie' => 'SID',
'secure' => false,
'handler' => new Autowire(FileHandler::class, ['directory' => sys_get_temp_dir()]),
'handler' => new Autowire(FileHandler::class, ['directory' => \sys_get_temp_dir()]),
]);

self::assertEquals(new Autowire(FileHandler::class, [
'directory' => sys_get_temp_dir(),
'directory' => \sys_get_temp_dir(),
]), $c->getHandler());
}
}
4 changes: 2 additions & 2 deletions tests/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public function testMultipleSessions(): void

protected function tearDown(): void
{
if ((int) session_status() === PHP_SESSION_ACTIVE) {
session_abort();
if ((int) \session_status() === PHP_SESSION_ACTIVE) {
\session_abort();
}
}
}
6 changes: 3 additions & 3 deletions tests/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,15 @@ protected function setUp(): void
'cookie' => 'SID',
'secure' => false,
'handler' => new Container\Autowire(FileHandler::class, [
'directory' => sys_get_temp_dir(),
'directory' => \sys_get_temp_dir(),
]),
]), $this->container);
}

protected function tearDown(): void
{
if ((int) session_status() === PHP_SESSION_ACTIVE) {
session_abort();
if ((int) \session_status() === PHP_SESSION_ACTIVE) {
\session_abort();
}
}
}

0 comments on commit da53bd6

Please sign in to comment.