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

@ -63,7 +63,7 @@ class Controller extends \yii\base\Controller
* the [[Response::$format|format]] and setting the [[Response::$data|data]] that should
* be formatted. A common usage will be:
*
* ```php
* ```
* return $this->asJson($data);
* ```
*
@ -89,7 +89,7 @@ class Controller extends \yii\base\Controller
* the [[Response::$format|format]] and setting the [[Response::$data|data]] that should
* be formatted. A common usage will be:
*
* ```php
* ```
* return $this->asXml($data);
* ```
*
@ -346,7 +346,7 @@ class Controller extends \yii\base\Controller
*
* You can use it in an action by returning the [[Response]] directly:
*
* ```php
* ```
* // stop executing this action and redirect to login page
* return $this->redirect(['login']);
* ```
@ -377,7 +377,7 @@ class Controller extends \yii\base\Controller
*
* You can use this method in an action by returning the [[Response]] directly:
*
* ```php
* ```
* // stop executing this action and redirect to home page
* return $this->goHome();
* ```
@ -394,7 +394,7 @@ class Controller extends \yii\base\Controller
*
* You can use this method in an action by returning the [[Response]] directly:
*
* ```php
* ```
* // stop executing this action and redirect to last visited page
* return $this->goBack();
* ```
@ -418,7 +418,7 @@ class Controller extends \yii\base\Controller
*
* You can use it in an action by returning the [[Response]] directly:
*
* ```php
* ```
* // stop executing this action and refresh the current page
* return $this->refresh();
* ```