Skip to content

Commit

Permalink
phpcbf
Browse files Browse the repository at this point in the history
  • Loading branch information
CamilleBeau committed Mar 15, 2023
1 parent 9bb28e9 commit 7bea999
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions modules/configuration/ajax/updateProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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']);
Expand Down

0 comments on commit 7bea999

Please # to comment.