Commit 8d60c629 by Alex

minor typo fixes

parent 14286201
...@@ -419,7 +419,7 @@ class Model extends Component implements Initable, \IteratorAggregate, \ArrayAcc ...@@ -419,7 +419,7 @@ class Model extends Component implements Initable, \IteratorAggregate, \ArrayAcc
public function getAttributeLabel($attribute) public function getAttributeLabel($attribute)
{ {
$labels = $this->attributeLabels(); $labels = $this->attributeLabels();
return isset($labels[$attribute]) ? $labels[$attribute] : $this->generateAttributeLabel($attribute) return isset($labels[$attribute]) ? $labels[$attribute] : $this->generateAttributeLabel($attribute);
} }
/** /**
...@@ -590,7 +590,7 @@ class Model extends Component implements Initable, \IteratorAggregate, \ArrayAcc ...@@ -590,7 +590,7 @@ class Model extends Component implements Initable, \IteratorAggregate, \ArrayAcc
public function onUnsafeAttribute($name, $value) public function onUnsafeAttribute($name, $value)
{ {
if (YII_DEBUG) { if (YII_DEBUG) {
\Yii::warning(sprintf('Failed to set unsafe attribute "%s" in "%s".', $name, get_class($this)); \Yii::warning(sprintf('Failed to set unsafe attribute "%s" in "%s".', $name, get_class($this)));
} }
} }
......
...@@ -42,7 +42,7 @@ class ModelBehavior extends Behavior ...@@ -42,7 +42,7 @@ class ModelBehavior extends Behavior
/** /**
* Responds to [[Model::onAfterConstruct]] event. * Responds to [[Model::onAfterConstruct]] event.
* Overrides this method if you want to handle the corresponding event of the [[owner]]. * Override this method if you want to handle the corresponding event of the [[owner]].
* @param Event $event event parameter * @param Event $event event parameter
*/ */
public function afterConstruct($event) public function afterConstruct($event)
...@@ -51,7 +51,7 @@ class ModelBehavior extends Behavior ...@@ -51,7 +51,7 @@ class ModelBehavior extends Behavior
/** /**
* Responds to [[Model::onBeforeValidate]] event. * Responds to [[Model::onBeforeValidate]] event.
* Overrides this method if you want to handle the corresponding event of the [[owner]]. * Override this method if you want to handle the corresponding event of the [[owner]].
* You may set the [[ValidationEvent::isValid|isValid]] property of the event parameter * You may set the [[ValidationEvent::isValid|isValid]] property of the event parameter
* to be false to cancel the validation process. * to be false to cancel the validation process.
* @param ValidationEvent $event event parameter * @param ValidationEvent $event event parameter
...@@ -62,7 +62,7 @@ class ModelBehavior extends Behavior ...@@ -62,7 +62,7 @@ class ModelBehavior extends Behavior
/** /**
* Responds to [[Model::onAfterValidate]] event. * Responds to [[Model::onAfterValidate]] event.
* Overrides this method if you want to handle the corresponding event of the [[owner]]. * Override this method if you want to handle the corresponding event of the [[owner]].
* @param Event $event event parameter * @param Event $event event parameter
*/ */
public function afterValidate($event) public function afterValidate($event)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment