@@ -31,7 +31,7 @@ your application::
3131 }
3232
3333So far, this is just an ordinary class that serves some purpose inside your
34- application. The goal of validation is to tell you whether the data
34+ application. The goal of validation is to tell you if the data
3535of an object is valid. For this to work, you'll configure a list of rules
3636(called :ref: `constraints <validation-constraints >`) that the object must
3737follow in order to be valid. These rules can be specified via a number of
@@ -112,7 +112,7 @@ Using the ``validator`` Service
112112Next, to actually validate an ``Author `` object, use the ``validate `` method
113113on the ``validator `` service (class :class: `Symfony\\ Component\\ Validator\\ Validator `).
114114The job of the ``validator `` is easy: to read the constraints (i.e. rules)
115- of a class and verify whether the data on the object satisfies those
115+ of a class and verify if the data on the object satisfies those
116116constraints. If validation fails, a non-empty list of errors
117117(class :class: `Symfony\\ Component\\ Validator\\ ConstraintViolationList `) is
118118returned. Take this simple example from inside a controller::
@@ -303,7 +303,7 @@ to its class and then pass it to the ``validator`` service.
303303Behind the scenes, a constraint is simply a PHP object that makes an assertive
304304statement. In real life, a constraint could be: "The cake must not be burned".
305305In Symfony, constraints are similar: they are assertions that a condition
306- is true. Given a value, a constraint will tell you whether that value
306+ is true. Given a value, a constraint will tell you if that value
307307adheres to the rules of the constraint.
308308
309309Supported Constraints
0 commit comments