Completed
Pull Request — master (#11)
by ARCANEDEV
06:08
created

helpers.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
if ( ! function_exists('hasher')) {
4
    /**
5
     * Get the Hash Manager instance.
6
     *
7
     * @return \Arcanedev\Hasher\Contracts\HashManager
8
     */
9
    function hasher()
10
    {
11
        return app(Arcanedev\Hasher\Contracts\HashManager::class);
12
    }
13
}
14
15
if ( ! function_exists('hash_with')) {
16
    /**
17
     * Get the Hash Driver instance.
18
     *
19
     * @param  string       $option
20
     * @param  string|null  $driver
21
     *
22
     * @return \Arcanedev\Hasher\Contracts\HashDriver
23
     */
24
    function hash_with($option, $driver = null)
0 ignored issues
show
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
25
    {
26
        return hasher()->with($option, $driver);
27
    }
28
}
29