diff --git a/.gitignore b/.gitignore index e931b1eb..ff43aedb 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ tests/_reports tests/database_settings.yml vendor/ phpunit.xml +.idea diff --git a/src/HttpDriver/Result/StatementStatistics.php b/src/HttpDriver/Result/StatementStatistics.php index c72aa103..43be3a8a 100644 --- a/src/HttpDriver/Result/StatementStatistics.php +++ b/src/HttpDriver/Result/StatementStatistics.php @@ -83,7 +83,7 @@ public function __construct(array $statistics = []) $keys = [ 'contains_updates', 'nodes_created', 'nodes_deleted', 'properties_set', 'labels_added', 'labels_removed', 'indexes_added', 'indexes_removed', 'constraints_added', 'constraints_removed', 'relationship_deleted', - 'relationships_created', + 'relationships_created', 'contains_system_updates', 'system_updates', ]; foreach ($statistics as $key => $value) { diff --git a/src/HttpDriver/Session.php b/src/HttpDriver/Session.php index 25026c4d..83f785d6 100644 --- a/src/HttpDriver/Session.php +++ b/src/HttpDriver/Session.php @@ -191,10 +191,8 @@ public function prepareRequest(Pipeline $pipeline) 'statements' => $statements, ]); $headers = [ - [ - 'X-Stream' => true, - 'Content-Type' => 'application/json', - ], + 'X-Stream' => true, + 'Content-Type' => 'application/json', ]; return $this->requestFactory->createRequest('POST', sprintf('%s/db/data/transaction/commit', $this->uri), $headers, $body); diff --git a/tests/Issues/Issue40Test.php b/tests/Issues/Issue40Test.php index 632fce6e..49972990 100644 --- a/tests/Issues/Issue40Test.php +++ b/tests/Issues/Issue40Test.php @@ -25,9 +25,9 @@ public function testIssue() $this->emptyDb(); $this->client->run('CREATE (:BRIEF {id: 123})'); - $query = 'MATCH (s:BRIEF {id:{brief_id}}) + $query = 'MATCH (s:BRIEF {id: $brief_id}) CREATE (n:BRIEFNOTECARD) - SET n += {data} + SET n += $data CREATE (n)-[:CARD_OF {order:0}]->(s) RETURN n';