From 851a914f6786b0b3aecf135edf5106ff97ec8037 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Mon, 20 Apr 2015 12:33:41 +0200 Subject: [PATCH] phpdoc tweak: Model::scenarios() --- framework/base/Model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/base/Model.php b/framework/base/Model.php index 291d964330..4f17e33646 100644 --- a/framework/base/Model.php +++ b/framework/base/Model.php @@ -159,17 +159,17 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab * An active attribute is one that is subject to validation in the current scenario. * The returned array should be in the following format: * - * ~~~ + * ```php * [ * 'scenario1' => ['attribute11', 'attribute12', ...], * 'scenario2' => ['attribute21', 'attribute22', ...], * ... * ] - * ~~~ + * ``` * * By default, an active attribute is considered safe and can be massively assigned. * If an attribute should NOT be massively assigned (thus considered unsafe), - * please prefix the attribute with an exclamation character (e.g. '!rank'). + * please prefix the attribute with an exclamation character (e.g. `'!rank'`). * * The default implementation of this method will return all scenarios found in the [[rules()]] * declaration. A special scenario named [[SCENARIO_DEFAULT]] will contain all attributes