Skip to content

Commit 9feda81

Browse files
authored
Use constants for HTTP codes
For constant values, descriptive constants must be used. Not the values directly.
1 parent 222973e commit 9feda81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Turbo/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ manually:
142142
// save...
143143
}
144144
145-
+ $response = new Response(null, $form->isSubmitted() ? 422 : 200);
145+
+ $response = new Response(null, $form->isSubmitted() ? Response::HTTP_UNPROCESSABLE_ENTITY : Response::HTTP_OK);
146146
147147
return $this->render('product/new.html.twig', [
148148
'form' => $form->createView()

0 commit comments

Comments
 (0)