Fix #20513: Fix code examples in PHPDoc

This commit is contained in:
Maksim Spirkov
2025-09-06 02:22:56 +05:00
committed by GitHub
parent a6a7f0128a
commit 53256fdd24
186 changed files with 579 additions and 520 deletions

View File

@ -160,7 +160,7 @@ class Validator extends Component
*
* The following example will enable the validator only when the country currently selected is USA:
*
* ```php
* ```
* function ($model) {
* return $model->country == Country::USA;
* }
@ -180,7 +180,7 @@ class Validator extends Component
*
* The following example will enable the validator only when the country currently selected is USA:
*
* ```javascript
* ```
* function (attribute, value) {
* return $('#country').val() === 'USA';
* }
@ -342,7 +342,7 @@ class Validator extends Component
* A validator class can implement this method to support data validation out of the context of a data model.
* @param mixed $value the data value to be validated.
* @return array|null the error message and the array of parameters to be inserted into the error message.
* ```php
* ```
* if (!$valid) {
* return [$this->message, [
* 'param1' => $this->param1,