Skip to content

Commit 4c19946

Browse files
committed
cleaning up
1 parent aca7566 commit 4c19946

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/Neo4jQueryAPI.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Http\Discovery\Psr17FactoryDiscovery;
66
use Http\Discovery\Psr18ClientDiscovery;
7-
use http\Exception\RuntimeException;
87
use Neo4j\QueryAPI\Exception\Neo4jException;
98
use Psr\Http\Client\ClientInterface;
109
use Neo4j\QueryAPI\Authentication\AuthenticateInterface;

src/Transaction.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function run(string $query, array $parameters): ResultSet
3535
{
3636
$request = $this->requestFactory->buildTransactionRunRequest($query, $parameters, $this->transactionId, $this->clusterAffinity);
3737

38-
$response = null; // ✅ Ensures response is always defined
38+
$response = null;
3939

4040
try {
4141
$response = $this->client->sendRequest($request);
@@ -75,7 +75,6 @@ public function rollback(): void
7575
*/
7676
private function handleRequestException(RequestExceptionInterface $e): void
7777
{
78-
// ✅ Corrected: Check if exception has a response
7978
$response = method_exists($e, 'getResponse') ? $e->getResponse() : null;
8079

8180
if ($response instanceof ResponseInterface) {

tests/Integration/Neo4jQueryAPIIntegrationTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ public function testWithExactNames(): void
421421

422422
$this->assertEquals($expected->getQueryCounters(), $results->getQueryCounters());
423423

424-
// Ensure results are not empty
425424
$this->assertNotEmpty(iterator_to_array($results), 'No results returned from query.');
426425

427426
$filteredResults = array_values(array_filter(

0 commit comments

Comments
 (0)