Skip to content

Commit

Permalink
Fixed some typos (yiisoft#12847)
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev authored and samdark committed Oct 26, 2016
1 parent 22a90cb commit e8c16a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions framework/base/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ public function hasErrors($attribute = null)
}

/**
* Returns the errors for all attribute or a single attribute.
* Returns the errors for all attributes or a single attribute.
* @param string $attribute attribute name. Use null to retrieve errors for all attributes.
* @property array An array of errors for all attributes. Empty array is returned if no error.
* The result is a two-dimensional array. See [[getErrors()]] for detailed description.
Expand Down Expand Up @@ -633,7 +633,7 @@ public function addErrors(array $items)

/**
* Removes errors for all attributes or a single attribute.
* @param string $attribute attribute name. Use null to remove errors for all attribute.
* @param string $attribute attribute name. Use null to remove errors for all attributes.
*/
public function clearErrors($attribute = null)
{
Expand Down
2 changes: 1 addition & 1 deletion framework/helpers/BaseArrayHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public static function getValue($array, $key, $default = null)

if (is_object($array)) {
// this is expected to fail if the property does not exist, or __get() is not implemented
// it is not reliably possible to check whether a property is accessable beforehand
// it is not reliably possible to check whether a property is accessible beforehand
return $array->$key;
} elseif (is_array($array)) {
return (isset($array[$key]) || array_key_exists($key, $array)) ? $array[$key] : $default;
Expand Down

0 comments on commit e8c16a0

Please sign in to comment.