Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudk committed Dec 8, 2021
1 parent 408c853 commit 24888d4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public function getConfigTreeBuilder(): TreeBuilder
}

/**
* @param TreeBuilder $builder
* @param string|null $name
* @param string $type
*
Expand Down
4 changes: 2 additions & 2 deletions src/OverblogGraphiQLBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

final class OverblogGraphiQLBundle extends Bundle
{
public function build(ContainerBuilder $container) : void
public function build(ContainerBuilder $container): void
{
parent::build($container);

Expand All @@ -22,7 +22,7 @@ public function build(ContainerBuilder $container) : void
$container->addCompilerPass(new DefaultEndpointWiringPass());
}

public function getContainerExtension() : ?ExtensionInterface
public function getContainerExtension(): ?ExtensionInterface
{
return new OverblogGraphiQLExtension();
}
Expand Down
4 changes: 0 additions & 4 deletions tests/Config/GraphQLEndpoint/RouteResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
use Overblog\GraphiQLBundle\Config\GraphQLEndpoint\RouteResolver;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use Symfony\Component\Routing\RouterInterface;

final class RouteResolverTest extends TestCase
Expand All @@ -21,8 +19,6 @@ public function setUp(): void
}

/**
* @param array $routeCollection
*
* @return RouteResolver
*/
private function subject(array $routeCollection)
Expand Down
6 changes: 3 additions & 3 deletions tests/Controller/GraphiQLControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

final class GraphiQLControllerTest extends TestCase
{
public function testInvalidSchema() : void
public function testInvalidSchema(): void
{
$client = static::createClient();

Expand All @@ -18,7 +18,7 @@ public function testInvalidSchema() : void
$this->assertSame(500, $response->getStatusCode());
}

public function testDefaultSchema() : void
public function testDefaultSchema(): void
{
$client = static::createClient();

Expand All @@ -30,7 +30,7 @@ public function testDefaultSchema() : void
$this->stringContains('Loading...', $response->getContent());
}

public function testDefaultSchemaViaMultipleRoute() : void
public function testDefaultSchemaViaMultipleRoute(): void
{
$client = static::createClient();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ abstract class TestCase extends WebTestCase
/**
* {@inheritdoc}
*/
protected static function getKernelClass() : string
protected static function getKernelClass(): string
{
return TestKernel::class;
}
Expand Down
1 change: 1 addition & 0 deletions tests/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function getLogDir(): string
{
return sys_get_temp_dir().'/OverblogGraphQLBundle/'.Kernel::VERSION.'/'.$this->testCase.'/logs';
}

public function isBooted()
{
return $this->booted;
Expand Down

0 comments on commit 24888d4

Please sign in to comment.