Skip to content

Commit 5bf14cb

Browse files
committed
Applied CS-fixer
1 parent b7603c8 commit 5bf14cb

File tree

5 files changed

+43
-43
lines changed

5 files changed

+43
-43
lines changed

.php-cs-fixer.cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"php":"8.3.6","version":"3.68.0:v3.68.0#73f78d8b2b34a0dd65fedb434a602ee4c2c8ad4c","indent":" ","lineEnding":"\n","rules":{"binary_operator_spaces":{"default":"at_least_single_space"},"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"blank_lines_before_namespace":true,"braces_position":{"allow_single_line_empty_anonymous_classes":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_type_declaration":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_parentheses":true,"no_blank_lines_after_class_opening":true,"no_extra_blank_lines":{"tokens":["use"]},"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_import_per_statement":{"group_to_single_imports":false},"single_space_around_construct":{"constructs_followed_by_a_single_space":["abstract","as","case","catch","class","const_import","do","else","elseif","final","finally","for","foreach","function","function_import","if","insteadof","interface","namespace","new","private","protected","public","static","switch","trait","try","use","use_lambda","while"],"constructs_preceded_by_a_single_space":["as","else","elseif","use_lambda"]},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"unary_operator_spaces":{"only_dec_inc":true},"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"attribute_placement":"ignore","on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"src\/OGM.php":"93aae9c7afc8dbfd5aa00bc1d264ad19","src\/Neo4jQueryAPI.php":"30e5405ec8eb4b5dd202b9fb29f89d32","src\/Results\/ResultRow.php":"a355cae3f815c5b12e3eaf09200e9378","src\/Results\/ResultSet.php":"5f7748a356bf0fb30403e3c5a411bd24","src\/Exception\/Neo4jException.php":"891a142e4cb2932f8d3e6bcf9dffe630","src\/Profile.php":"4ee46fef850bdebf767af5cacaa97d32","src\/Objects\/Path.php":"278df6c382797caaac604186216180dd","src\/Objects\/Node.php":"565fcc90fdf0035b9d019541eea500cf","src\/Objects\/ProfiledQueryPlanArguments.php":"e1f4ba1e4701d9c3383eaee1a40c30cf","src\/Objects\/Person.php":"59814ca77fc40d172b232e7c8a638c39","src\/Objects\/Point.php":"085b951053c0edece358b89b5afeac7d","src\/Objects\/ProfiledQueryPlan.php":"4709c2a11e73003fc1c027a6a8a62971","src\/Objects\/Bookmarks.php":"e9a1155f1d871e20880b5d92f92a60cd","src\/Objects\/ResultCounters.php":"548cf41b8590b5e366002a5f80d15ed1","src\/Objects\/Relationship.php":"7bff01461f7156c81c0ab94ca8a6bf53","src\/Transaction.php":"cba4e1ad958b2d15952b74148fd96c21"}}
1+
{"php":"8.3.6","version":"3.68.0:v3.68.0#73f78d8b2b34a0dd65fedb434a602ee4c2c8ad4c","indent":" ","lineEnding":"\n","rules":{"binary_operator_spaces":{"default":"at_least_single_space"},"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"blank_lines_before_namespace":true,"braces_position":{"allow_single_line_empty_anonymous_classes":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_type_declaration":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_parentheses":true,"no_blank_lines_after_class_opening":true,"no_extra_blank_lines":{"tokens":["use"]},"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"none"},"return_type_declaration":true,"short_scalar_cast":true,"single_import_per_statement":{"group_to_single_imports":false},"single_space_around_construct":{"constructs_followed_by_a_single_space":["abstract","as","case","catch","class","const_import","do","else","elseif","final","finally","for","foreach","function","function_import","if","insteadof","interface","namespace","new","private","protected","public","static","switch","trait","try","use","use_lambda","while"],"constructs_preceded_by_a_single_space":["as","else","elseif","use_lambda"]},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"unary_operator_spaces":{"only_dec_inc":true},"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"attribute_placement":"ignore","on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"strict_param":true},"hashes":{"tests\/resources\/expected\/complex-query-profile.php":"003fa2fdf787e68d6fb3e72d698df763","tests\/Unit\/Neo4jExceptionUnitTest.php":"0d7842780eeb9729d501831ee55df0d8","tests\/Unit\/ResultRowTest.php":"f5ee9f21d2439793a290e8ab946a7f32","tests\/Unit\/Neo4jQueryAPIUnitTest.php":"54be7f7b0f9dcf13d62c4912127583b9","tests\/Integration\/Neo4jQueryAPIIntegrationTest.php":"44977ffd6c09c505b00c8ef4857b8bfd","tests\/Integration\/Neo4jOGMTest.php":"73136b2d28fbb4fa298467d1ab3e18c8","src\/OGM.php":"93aae9c7afc8dbfd5aa00bc1d264ad19","src\/Neo4jQueryAPI.php":"9f2e978ed0191040e303f84846a7f556","src\/Results\/ResultRow.php":"ad55ec1bd999a8f6ad6b18874c4017b5","src\/Results\/ResultSet.php":"5f7748a356bf0fb30403e3c5a411bd24","src\/Exception\/Neo4jException.php":"dfb0f6933b9d3913c5495ba6d801d5f1","src\/Objects\/Path.php":"88c95962a6316ba7aa2fa3f0f6e31627","src\/Objects\/Node.php":"4a8ab7b8bd1981ee4d35d8c52b81c7c3","src\/Objects\/ProfiledQueryPlanArguments.php":"1be7b230a034a72c13349a5670a34a2f","src\/Objects\/Person.php":"f2f469937660f5454761e4f31154e081","src\/Objects\/Point.php":"169715b2157e08482e420374e6ca4cc3","src\/Objects\/ProfiledQueryPlan.php":"4709c2a11e73003fc1c027a6a8a62971","src\/Objects\/Bookmarks.php":"50f89ca88b2df817433ce8237ccc0f18","src\/Objects\/ResultCounters.php":"a9372c98fe7bede10cb004af30ea502f","src\/Objects\/Relationship.php":"f6347c0260780d4f5d2dc407dc97e25e","src\/Transaction.php":"e456922858b31d87b17ca47d25d58474"}}

src/Neo4jQueryAPI.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
class Neo4jQueryAPI
1919
{
20-
2120
private Client $client;
2221

2322
public function __construct(Client $client)
@@ -62,7 +61,7 @@ public function run(string $cypher, array $parameters = [], string $database = '
6261
]);
6362

6463
$contents = $response->getBody()->getContents();
65-
$data = json_decode($contents, true, flags: JSON_THROW_ON_ERROR);
64+
$data = json_decode($contents, true, flags: JSON_THROW_ON_ERROR);
6665
$ogm = new OGM();
6766

6867
$keys = $data['data']['fields'] ?? [];

src/Objects/ProfiledQueryPlan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(
2828
?float $pageCacheHitRatio = 0.0,
2929
?int $time = 0,
3030
?string $operatorType = '',
31-
ProfiledQueryPlanArguments $arguments ,
31+
ProfiledQueryPlanArguments $arguments,
3232
array $children = [] // Accept an array of children, default to empty array
3333
) {
3434
$this->dbHits = $dbHits ?? 0;

src/Objects/ProfiledQueryPlanArguments.php

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,123 +5,125 @@
55
class ProfiledQueryPlanArguments
66
{
77
public function __construct(
8-
private readonly ?int $globalMemory = null,
8+
private readonly ?int $globalMemory = null,
99
private readonly ?string $plannerImpl = null,
10-
private readonly ?int $memory = null,
10+
private readonly ?int $memory = null,
1111
private readonly ?string $stringRepresentation = null,
1212
private readonly ?string $runtime = null,
13-
private readonly ?int $time = null,
14-
private readonly ?int $pageCacheMisses = null,
15-
private readonly ?int $pageCacheHits = null,
13+
private readonly ?int $time = null,
14+
private readonly ?int $pageCacheMisses = null,
15+
private readonly ?int $pageCacheHits = null,
1616
private readonly ?string $runtimeImpl = null,
17-
private readonly ?int $version = null,
18-
private readonly ?int $dbHits = null,
19-
private readonly ?int $batchSize = null,
17+
private readonly ?int $version = null,
18+
private readonly ?int $dbHits = null,
19+
private readonly ?int $batchSize = null,
2020
private readonly ?string $details = null,
2121
private readonly ?string $plannerVersion = null,
2222
private readonly ?string $pipelineInfo = null,
2323
private readonly ?string $runtimeVersion = null,
24-
private readonly ?int $id = null,
25-
private readonly ?float $estimatedRows = null,
24+
private readonly ?int $id = null,
25+
private readonly ?float $estimatedRows = null,
2626
private readonly ?string $planner = null,
27-
private readonly ?int $rows = null
28-
)
29-
{
27+
private readonly ?int $rows = null
28+
) {
3029
}
3130

32-
public function getGlobalMemory(): int
31+
public function getGlobalMemory(): ?int
3332
{
3433
return $this->globalMemory;
3534
}
3635

37-
public function getPlannerImpl(): string
36+
public function getPlannerImpl(): ?string
3837
{
3938
return $this->plannerImpl;
4039
}
4140

42-
public function getMemory(): int
41+
public function getMemory(): ?int
4342
{
4443
return $this->memory;
4544
}
4645

47-
public function getStringRepresentation(): string
46+
public function getStringRepresentation(): ?string
4847
{
4948
return $this->stringRepresentation;
5049
}
5150

52-
public function getRuntime(): string
51+
public function getRuntime(): ?string
5352
{
5453
return $this->runtime;
5554
}
5655

57-
public function getTime(): int
56+
public function getTime(): ?int
5857
{
5958
return $this->time;
6059
}
61-
public function getPageCacheMisses(): int
60+
61+
public function getPageCacheMisses(): ?int
6262
{
6363
return $this->pageCacheMisses;
6464
}
6565

66-
private function getPageCacheHits():int
67-
{
68-
return $this->pageCacheHits;
69-
}
70-
public function getRuntimeImpl(): string
66+
private function getPageCacheHits(): ?int
67+
{
68+
return $this->pageCacheHits;
69+
}
70+
71+
public function getRuntimeImpl(): ?string
7172
{
7273
return $this->runtimeImpl;
7374
}
74-
public function getVersion(): string
75+
76+
public function getVersion(): ?int
7577
{
7678
return $this->version;
7779
}
7880

79-
public function getDbHits(): int
81+
public function getDbHits(): ?int
8082
{
8183
return $this->dbHits;
8284
}
8385

84-
public function getBatchSize(): int
86+
public function getBatchSize(): ?int
8587
{
8688
return $this->batchSize;
8789
}
8890

89-
public function getDetails(): string
91+
public function getDetails(): ?string
9092
{
9193
return $this->details;
9294
}
9395

94-
public function getPlannerVersion(): string
96+
public function getPlannerVersion(): ?string
9597
{
9698
return $this->plannerVersion;
9799
}
98100

99-
public function getPipelineInfo(): string
101+
public function getPipelineInfo(): ?string
100102
{
101103
return $this->pipelineInfo;
102104
}
103105

104-
public function getRuntimeVersion(): string
106+
public function getRuntimeVersion(): ?string
105107
{
106108
return $this->runtimeVersion;
107109
}
108110

109-
public function getId(): int
111+
public function getId(): ?int
110112
{
111113
return $this->id;
112114
}
113115

114-
public function getEstimatedRows(): float
116+
public function getEstimatedRows(): ?float
115117
{
116118
return $this->estimatedRows;
117119
}
118120

119-
public function getPlanner(): string
121+
public function getPlanner(): ?string
120122
{
121123
return $this->planner;
122124
}
123125

124-
public function getRows(): int
126+
public function getRows(): ?int
125127
{
126128
return $this->rows;
127129
}

src/Results/ResultSet.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public function __construct(
2323
private Bookmarks $bookmarks,
2424
private ?ProfiledQueryPlan $profiledQueryPlan = null,
2525
private ?ProfiledQueryPlanArguments $profiledQueryPlanArguments = null
26-
)
27-
{
26+
) {
2827
}
2928

3029
public function getIterator(): Traversable
@@ -43,7 +42,7 @@ public function getProfiledQueryPlan(): ?ProfiledQueryPlan
4342

4443
public function getChildQueryPlan(): ?ChildQueryPlan
4544
{
46-
return $this->childQueryPlan;
45+
return $this->childQueryPlan;
4746
}
4847

4948
public function count(): int

0 commit comments

Comments
 (0)