From 61cba414bf0ced1fe6aed881beff3f5906d61626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sun, 24 Jul 2022 08:22:24 +0000 Subject: [PATCH] Fix linter --- app/controllers/api/projects.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index c9a346347e..1e1eb23a6e 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -1584,7 +1584,7 @@ App::put('/v1/projects/:projectId/variables/:functionId/:variableId') ->inject('dbForConsole') ->inject('dbForProject') ->action(function (string $projectId, string $functionId, string $variableId, ?string $key, ?string $value, Response $response, Database $dbForConsole, Database $dbForProject) { - if(empty($key) && empty($value)) { + if (empty($key) && empty($value)) { throw new Exception('Missing key or value. Define at least one.', 400, Exception::VARIABLE_MISSING_PAYLOAD); }