diff --git a/framework/yii/helpers/ArrayHelperBase.php b/framework/yii/helpers/ArrayHelperBase.php index aa12700..2492246 100644 --- a/framework/yii/helpers/ArrayHelperBase.php +++ b/framework/yii/helpers/ArrayHelperBase.php @@ -209,7 +209,7 @@ class ArrayHelperBase * // ) * * // using anonymous function - * $result = ArrayHelper::index($array, function(element) { + * $result = ArrayHelper::index($array, function ($element) { * return $element['id']; * }); * ~~~ @@ -243,7 +243,7 @@ class ArrayHelperBase * // the result is: array( '123', '345') * * // using anonymous function - * $result = ArrayHelper::getColumn($array, function(element) { + * $result = ArrayHelper::getColumn($array, function ($element) { * return $element['id']; * }); * ~~~