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

28 lines
463 B
PHP
Raw Permalink Normal View History

2023-12-22 19:40:32 +00:00
<?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);
}
}