| 1 | <?php |
||
| 13 | class UpdateAction extends Action |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string the scenario to be assigned to the model before it is validated and updated. |
||
| 17 | */ |
||
| 18 | public $scenario = Model::SCENARIO_DEFAULT; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Updates an existing resource. |
||
| 22 | * @param string $id the primary key of the model. |
||
| 23 | * @return \yii\db\ActiveRecordInterface the model being updated |
||
| 24 | * @throws ServerErrorHttpException if there is any error when updating the model |
||
| 25 | */ |
||
| 26 | public function run($id) |
||
| 46 | } |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.