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

@ -116,7 +116,7 @@ class Controller extends Component implements ViewContextInterface
* It should return an array, with array keys being action IDs, and array values the corresponding
* action class names or action configuration arrays. For example,
*
* ```php
* ```
* return [
* 'action1' => 'app\components\Action1',
* 'action2' => [
@ -293,7 +293,7 @@ class Controller extends Component implements ViewContextInterface
*
* If you override this method, your code should look like the following:
*
* ```php
* ```
* public function beforeAction($action)
* {
* // your custom code here, if you want the code to run before action filters,
@ -330,7 +330,7 @@ class Controller extends Component implements ViewContextInterface
*
* If you override this method, your code should look like the following:
*
* ```php
* ```
* public function afterAction($action, $result)
* {
* $result = parent::afterAction($action, $result);