Skip to content

Commit

Permalink
update helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed Mar 15, 2017
1 parent 11a5fcd commit d0ef733
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@
* @param $string
* @return \FastD\Utils\StringObject
*/
function str ($string) {
function stringObject($string)
{
return \FastD\Utils\StringObject::create($string);
}

/**
* @param array $array
* @return \FastD\Utils\ArrayObject
*/
function arr (array $array) {
function arrayObject(array $array)
{
return \FastD\Utils\ArrayObject::create($array);
}

Expand All @@ -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);
Expand Down

0 comments on commit d0ef733

Please sign in to comment.