From d0ef7332bc06400030eec13e1fc2b9e325f9d15e Mon Sep 17 00:00:00 2001 From: JanHuang Date: Wed, 15 Mar 2017 14:10:27 +0800 Subject: [PATCH] update helpers --- helpers.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/helpers.php b/helpers.php index 2d62b4c..b11aec8 100644 --- a/helpers.php +++ b/helpers.php @@ -11,7 +11,8 @@ * @param $string * @return \FastD\Utils\StringObject */ -function str ($string) { +function stringObject($string) +{ return \FastD\Utils\StringObject::create($string); } @@ -19,7 +20,8 @@ function str ($string) { * @param array $array * @return \FastD\Utils\ArrayObject */ -function arr (array $array) { +function arrayObject(array $array) +{ return \FastD\Utils\ArrayObject::create($array); } @@ -28,7 +30,7 @@ function arr (array $array) { * @param null $value * @return mixed */ -function env ($name, $value = null) +function env($name, $value = null) { if (null === $value) { return getenv($name);