Skip to content

Commit cb00154

Browse files
committed
refactor: remove helper, add functions
1 parent 805b0dd commit cb00154

File tree

2 files changed

+10
-40
lines changed

2 files changed

+10
-40
lines changed

src/Helper.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/functions.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
\class_alias('Ahc\Underscore\Underscore', 'Ahc\Underscore');
4+
5+
if (!\function_exists('underscore')) {
6+
function underscore($data)
7+
{
8+
return new Ahc\Underscore\Underscore($data);
9+
}
10+
}

0 commit comments

Comments
 (0)