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 $connection |
||
20 | * @param string|null $driver |
||
21 | * |
||
22 | * @return \Arcanedev\Hasher\Contracts\HashDriver |
||
23 | */ |
||
24 | function hash_with($connection, $driver = null) |
||
0 ignored issues
–
show
|
|||
25 | { |
||
26 | return hasher()->with($connection, $driver); |
||
27 | } |
||
28 | } |
||
29 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.