@@ -1,41 +1,41 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('dbm_asset')) { |
|
3 | +if (!function_exists('dbm_asset')) { |
|
4 | 4 | function dbm_asset($path, $secure = null) |
5 | 5 | { |
6 | 6 | return route('dbm.asset').'?path='.urlencode($path); |
7 | 7 | } |
8 | 8 | } |
9 | 9 | |
10 | -if (! function_exists('dbm_driver')) { |
|
10 | +if (!function_exists('dbm_driver')) { |
|
11 | 11 | function dbm_driver() |
12 | 12 | { |
13 | 13 | return (config('database.default') != '') ? config('database.default') : 'mysql'; |
14 | 14 | } |
15 | 15 | } |
16 | 16 | |
17 | -if (! function_exists('dbm_prefix')) { |
|
17 | +if (!function_exists('dbm_prefix')) { |
|
18 | 18 | function dbm_prefix() |
19 | 19 | { |
20 | 20 | return (config('dbm.prefix') != '') ? config('dbm.prefix') : ''; |
21 | 21 | } |
22 | 22 | } |
23 | 23 | |
24 | -if (! function_exists('dbm_base_path')) { |
|
24 | +if (!function_exists('dbm_base_path')) { |
|
25 | 25 | function dbm_base_path() |
26 | 26 | { |
27 | 27 | return rtrim(config('dbm.base_path'), '/') ?? ''; |
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
31 | -if (! function_exists('is_json')) { |
|
31 | +if (!function_exists('is_json')) { |
|
32 | 32 | function is_json($string) |
33 | 33 | { |
34 | 34 | return is_string($string) && is_array(json_decode($string, true)) && (json_last_error() == JSON_ERROR_NONE) ? true : false; |
35 | 35 | } |
36 | 36 | } |
37 | 37 | |
38 | -if (! function_exists('save_json')) { |
|
38 | +if (!function_exists('save_json')) { |
|
39 | 39 | function save_json(array $arr) |
40 | 40 | { |
41 | 41 | $jsonArr = []; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
51 | -if (! function_exists('retreive_json')) { |
|
51 | +if (!function_exists('retreive_json')) { |
|
52 | 52 | function retreive_json(string $str) |
53 | 53 | { |
54 | 54 | $jsonData = json_decode($str, true); |