From e8c16a09fa349ccc575c8f890f4a7060d307fc79 Mon Sep 17 00:00:00 2001 From: Alexey Rogachev Date: Wed, 26 Oct 2016 17:02:38 +0600 Subject: [PATCH] Fixed some typos (#12847) --- framework/base/Model.php | 4 ++-- framework/helpers/BaseArrayHelper.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/base/Model.php b/framework/base/Model.php index 0ab6e6d17bc..baf11e4b7d9 100644 --- a/framework/base/Model.php +++ b/framework/base/Model.php @@ -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. @@ -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) { diff --git a/framework/helpers/BaseArrayHelper.php b/framework/helpers/BaseArrayHelper.php index 5f13d59eebf..ca0501c2ccd 100644 --- a/framework/helpers/BaseArrayHelper.php +++ b/framework/helpers/BaseArrayHelper.php @@ -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;