Skip to content

Commit 6b10d81

Browse files
committed
chore: cleanup, use class import
1 parent 5ad5457 commit 6b10d81

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/functions.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<?php
22

3-
\class_alias('Ahc\Underscore\Underscore', 'Ahc\Underscore');
3+
use Ahc\Underscore\Underscore;
4+
5+
\class_alias(Underscore::class, 'Ahc\\Underscore');
46

57
if (!\function_exists('underscore')) {
68
/**
79
* Underscore instantiation helper.
810
*
911
* @param mixed $data
1012
*
11-
* @return \Ahc\Underscore\Underscore
13+
* @return Underscore
1214
*/
1315
function underscore($data = [])
1416
{
15-
return new \Ahc\Underscore\Underscore($data);
17+
return new Underscore($data);
1618
}
1719
}

0 commit comments

Comments
 (0)