add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
@@ -39,7 +39,7 @@ class ConfigurationAdminController extends BaseApiController
public function update(ConfigurationUpdateRequest $request, int $id): JsonResponse
{
$config = $this->service->update($id, $request->validated());
if (! $config) {
if (!$config) {
return response()->json(['ok' => false, 'message' => 'Configuration not found.'], 404);
}
@@ -52,7 +52,7 @@ class ConfigurationAdminController extends BaseApiController
public function destroy(int $id): JsonResponse
{
$deleted = $this->service->delete($id);
if (! $deleted) {
if (!$deleted) {
return response()->json(['ok' => false, 'message' => 'Configuration not found.'], 404);
}
@@ -62,7 +62,7 @@ class ConfigurationAdminController extends BaseApiController
public function getByKey(string $configKey): JsonResponse
{
$config = $this->service->getByKey($configKey);
if (! $config) {
if (!$config) {
return response()->json(['ok' => false, 'message' => 'Configuration not found.'], 404);
}