From db7f62272e70309529a5836422809ba26703d29c Mon Sep 17 00:00:00 2001 From: Roman Grinyov Date: Sun, 21 Aug 2016 13:49:53 +0300 Subject: [PATCH] Wrap "true/false" by the code (`...`) (#12227) --- docs/guide/structure-models.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/structure-models.md b/docs/guide/structure-models.md index 8383666..8a71cfd 100644 --- a/docs/guide/structure-models.md +++ b/docs/guide/structure-models.md @@ -242,8 +242,8 @@ should be displayed to help the user to fix the errors. You may call [[yii\base\Model::validate()]] to validate the received data. The method will use the validation rules declared in [[yii\base\Model::rules()]] to validate every relevant attribute. If no error -is found, it will return true. Otherwise, it will keep the errors in the [[yii\base\Model::errors]] property -and return false. For example, +is found, it will return `true`. Otherwise, it will keep the errors in the [[yii\base\Model::errors]] property +and return `false`. For example, ```php $model = new \app\models\ContactForm;