Skip to content

Commit 78c84ed

Browse files
committed
lint
1 parent 2ee6dbb commit 78c84ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Glpi/Api/HL/Controller/AbstractController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public static function getDropdownTypeSchema(string $class, ?string $field = nul
157157
],
158158
$name_field => [
159159
'type' => Doc\Schema::TYPE_STRING,
160-
'readOnly' => true
160+
'readOnly' => true,
161161
],
162162
],
163163
];

tests/functional/Glpi/Api/HL/Controller/GraphQLControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ private function getCompleteFieldsRequestForSchema(array $properties): string
406406
if ($property_info['type'] === 'object' && !empty($property_info['properties'])) {
407407
// Nested object, recurse
408408
$fields_query_part .= $property_name . ' { ' . $this->getCompleteFieldsRequestForSchema($property_info['properties']) . ' } ';
409-
} else if ($property_info['type'] === 'array' && !empty($property_info['items']['properties'])) {
409+
} elseif ($property_info['type'] === 'array' && !empty($property_info['items']['properties'])) {
410410
// Array of objects, recurse
411411
$fields_query_part .= $property_name . ' { ' . $this->getCompleteFieldsRequestForSchema($property_info['items']['properties']) . ' } ';
412412
} else {
@@ -437,7 +437,7 @@ public function testSchemaFieldValidity()
437437
if (!isset($schema['x-itemtype']) || str_starts_with($schema_name, '_')) {
438438
continue;
439439
}
440-
$query = "query { $schema_name(limit: 1) { " . $this->getCompleteFieldsRequestForSchema($schema['properties']) . '} }';
440+
$query = "query { $schema_name(limit: 1) { " . $this->getCompleteFieldsRequestForSchema($schema['properties']) . '} }';
441441
$request = new Request('POST', '/GraphQL', [
442442
'X-Debug-Mode' => '1', // Debug mode allows seeing more information in errors
443443
], $query);

0 commit comments

Comments
 (0)