freescout/freescout-dist/vendor/anahkiasen/underscore-php/helpers.php

28 lines
463 B
PHP

<?php
/**
* Shortcut alias to creating an Underscore object
*
* @param mixed $type A scalar type to wrap
*
* @return \Underscore\Underscore
*/
if ( ! function_exists('underscore')) {
function underscore($type) {
return new Underscore\Underscore($type);
}
}
/**
* Shortcut alias for underscore()
*
* @param mixed $type
*
* @return \Underscore\Underscore
*/
if (!function_exists('__')) {
function __($type) {
return underscore($type);
}
}