Skip to content

Commit

Permalink
create helpers file
Browse files Browse the repository at this point in the history
  • Loading branch information
devmoath committed Sep 16, 2021
1 parent e300378 commit ac6fa4e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion composer.json
Expand Up @@ -35,7 +35,10 @@
"autoload-dev": {
"psr-4": {
"DevMoath\\JqlBuilder\\Tests\\": "tests"
}
},
"files": [
"src/helpers.php"
]
},
"scripts": {
"test": "phpunit",
Expand Down
10 changes: 10 additions & 0 deletions src/helpers.php
@@ -0,0 +1,10 @@
<?php

if (! function_exists('tap')) {
function tap(mixed $value, callable $callback): mixed
{
$callback($value);

return $value;
}
}

0 comments on commit ac6fa4e

Please sign in to comment.