add tests batch 20
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user