Skip to content

Commit 706c388

Browse files
committed
lint
1 parent a337bdf commit 706c388

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public static function getRawKnownSchemas(): array
143143
}
144144
return ['WHERE' => ['_.id' => $disclosed_ids]];
145145
}
146-
]
146+
],
147147
],
148148
];
149149
}
@@ -299,7 +299,7 @@ public function searchConfigValues(Request $request): Response
299299
}
300300

301301
#[Route(path: '/Config/{context}', methods: ['GET'], requirements: [
302-
'context' => '\w+'
302+
'context' => '\w+',
303303
], middlewares: [ResultFormatterMiddleware::class])]
304304
#[RouteVersion(introduced: '2.1')]
305305
#[Doc\SearchRoute(schema_name: 'Config')]

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ public function testCRUDConfigValues()
218218
$this->api->call($request, function ($call) {
219219
/** @var \HLAPICallAsserter $call */
220220
$call->response
221-
->status(static fn ($status) => $status === 204);
221+
->status(static fn($status) => $status === 204);
222222
});
223223

224224
// Can delete a config value
225225
$this->api->call(new Request('DELETE', '/Setup/Config/core/priority_1'), function ($call) {
226226
/** @var \HLAPICallAsserter $call */
227227
$call->response
228-
->status(static fn ($status) => $status === 204);
228+
->status(static fn($status) => $status === 204);
229229
});
230230
$this->api->call(new Request('GET', '/Setup/Config/core/priority_1'), function ($call) {
231231
/** @var \HLAPICallAsserter $call */
@@ -236,7 +236,7 @@ public function testCRUDConfigValues()
236236
$this->api->call(new Request('DELETE', '/Setup/Config/core/smtp_passwd'), function ($call) {
237237
/** @var \HLAPICallAsserter $call */
238238
$call->response
239-
->status(static fn ($status) => $status === 204);
239+
->status(static fn($status) => $status === 204);
240240
});
241241

242242
// Can get a config value using GraphQL

0 commit comments

Comments
 (0)