Fix some remaining formatting issues
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
This commit is contained in:
parent
49ffee3d89
commit
43d48ee882
@ -97,7 +97,7 @@ class AnimeClientTestCase extends TestCase
|
||||
$container = $di($config_array);
|
||||
|
||||
// Use mock session handler
|
||||
$container->set('session-handler', static function (): \Aviat\AnimeClient\Tests\TestSessionHandler {
|
||||
$container->set('session-handler', static function (): TestSessionHandler {
|
||||
$session_handler = new TestSessionHandler();
|
||||
session_set_save_handler($session_handler, TRUE);
|
||||
|
||||
|
@ -162,7 +162,7 @@ final class ContainerTest extends IonTestCase
|
||||
|
||||
public function testGetSet(): void
|
||||
{
|
||||
$container = $this->container->set('foo', static fn() => static function (): void {});
|
||||
$container = $this->container->set('foo', static fn () => static function (): void {});
|
||||
|
||||
$this->assertInstanceOf(Container::class, $container);
|
||||
$this->assertInstanceOf(ContainerInterface::class, $container);
|
||||
|
@ -92,7 +92,7 @@ class IonTestCase extends TestCase
|
||||
// Set up DI container
|
||||
$di = require 'di.php';
|
||||
$container = $di($config_array);
|
||||
$container->set('session-handler', static function (): \Aviat\Ion\Tests\TestSessionHandler {
|
||||
$container->set('session-handler', static function (): TestSessionHandler {
|
||||
// Use mock session handler
|
||||
$session_handler = new TestSessionHandler();
|
||||
session_set_save_handler($session_handler, TRUE);
|
||||
|
@ -16,7 +16,7 @@ return static function (array $config_array = []) {
|
||||
|
||||
$container->setInstance('config', new Config($config_array));
|
||||
|
||||
$container->set('request', static fn() => ServerRequestFactory::fromGlobals(
|
||||
$container->set('request', static fn () => ServerRequestFactory::fromGlobals(
|
||||
$GLOBALS['_SERVER'],
|
||||
$_GET,
|
||||
$_POST,
|
||||
|
Loading…
Reference in New Issue
Block a user