From 7bea999da8cd1dbd559fe0fbe2e9ff6397d4fae4 Mon Sep 17 00:00:00 2001 From: CamilleBeau Date: Mon, 27 Feb 2023 10:09:51 -0500 Subject: [PATCH] phpcbf --- modules/configuration/ajax/updateProject.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/configuration/ajax/updateProject.php b/modules/configuration/ajax/updateProject.php index b12b16fee1e..7af28cb1629 100644 --- a/modules/configuration/ajax/updateProject.php +++ b/modules/configuration/ajax/updateProject.php @@ -44,10 +44,9 @@ exit; } - if ( - empty($_POST['Name']) || - empty($_POST['Alias']) || - strlen($_POST['Alias']) > 4 + if (empty($_POST['Name']) + || empty($_POST['Alias']) + || strlen($_POST['Alias']) > 4 ) { http_response_code(400); echo json_encode(['error' => 'Bad Request']); @@ -60,10 +59,9 @@ ["UserID"=>$user->getId(),"ProjectID"=>$project->getId()] ); } else { - if ( - empty($_POST['Name']) || - empty($_POST['Alias']) || - strlen($_POST['Alias']) > 4 + if (empty($_POST['Name']) + || empty($_POST['Alias']) + || strlen($_POST['Alias']) > 4 ) { http_response_code(400); echo json_encode(['error' => 'Bad Request']);