Skip to content

Commit e8eaedb

Browse files
committed
chore: Psalm and CS fixes
1 parent f9e2217 commit e8eaedb

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

tests/App/Controller/TestController.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace Neo4j\Neo4jBundle\Tests\App\Controller;
44

55
use Laudis\Neo4j\Contracts\ClientInterface;
6-
use Laudis\Neo4j\Neo4j\Neo4jDriver;
7-
use Neo4j\Neo4jBundle\SymfonyClient;
86
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
97
use Symfony\Component\HttpFoundation\Response;
108
use Symfony\Component\Routing\Attribute\Route;
@@ -16,11 +14,12 @@ public function __construct(
1614
) {
1715
}
1816

19-
#[Route("/", methods: ["GET"])]
17+
#[Route('/', methods: ['GET'])]
2018
public function index(): Response
2119
{
2220
$this->client->run('MATCH (n) RETURN n');
2321
$this->client->run('MATCH (n) RETURN n');
22+
2423
return $this->render('index.twig.html');
2524
}
26-
}
25+
}

tests/Functional/ProfilerTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Functional;
44

5+
use Neo4j\Neo4jBundle\Collector\Neo4jDataCollector;
56
use Neo4j\Neo4jBundle\Tests\App\TestKernel;
67
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
78

@@ -21,10 +22,12 @@ public function testProfiler()
2122

2223
$this->assertResponseIsSuccessful();
2324
if ($profile = $client->getProfile()) {
25+
/** @var Neo4jDataCollector $collector */
26+
$collector = $profile->getCollector('neo4j');
2427
$this->assertEquals(
2528
2,
26-
$profile->getCollector('neo4j')->getQueryCount()
29+
$collector->getQueryCount()
2730
);
2831
}
2932
}
30-
}
33+
}

0 commit comments

Comments
 (0)