@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * generate sequence |
| 7 | 7 | * @return sequence based on length supplied |
| 8 | 8 | */ |
| 9 | -if (! function_exists('generate_sequence')) { |
|
| 9 | +if (!function_exists('generate_sequence')) { |
|
| 10 | 10 | function generate_sequence($input = 1) |
| 11 | 11 | { |
| 12 | 12 | return str_pad($input, config('helper.sequence_length'), '0', STR_PAD_LEFT); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | /* |
| 17 | 17 | * Get Abbreviation fo the given text |
| 18 | 18 | */ |
| 19 | -if (! function_exists('abbrv')) { |
|
| 19 | +if (!function_exists('abbrv')) { |
|
| 20 | 20 | function abbrv($value, $unique_characters = true) |
| 21 | 21 | { |
| 22 | 22 | if (true === config('helper.abbrv.remove_non_alphanumeric')) { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $split = str_split($value); |
| 38 | 38 | $unique_characters = []; |
| 39 | 39 | foreach ($split as $character) { |
| 40 | - if (! in_array($character, $unique_characters)) { |
|
| 40 | + if (!in_array($character, $unique_characters)) { |
|
| 41 | 41 | $unique_characters[] = $character; |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /* |
| 53 | 53 | * Get Fully Qualified Class Name (FQCN) for an Object |
| 54 | 54 | */ |
| 55 | -if (! function_exists('fqcn')) { |
|
| 55 | +if (!function_exists('fqcn')) { |
|
| 56 | 56 | function fqcn($object) |
| 57 | 57 | { |
| 58 | 58 | return get_class($object); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /* |
| 63 | 63 | * Get Slug Name for Fully Qualified Class Name (FQCN) |
| 64 | 64 | */ |
| 65 | -if (! function_exists('str_slug_fqcn')) { |
|
| 65 | +if (!function_exists('str_slug_fqcn')) { |
|
| 66 | 66 | function str_slug_fqcn($object) |
| 67 | 67 | { |
| 68 | 68 | return Str::kebab(fqcn($object)); |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /* |
| 73 | 73 | * Send Notification To User |
| 74 | 74 | */ |
| 75 | -if (! function_exists('notify')) { |
|
| 75 | +if (!function_exists('notify')) { |
|
| 76 | 76 | function notify($identifier, $column = 'id') |
| 77 | 77 | { |
| 78 | 78 | return \CleaniqueCoders\LaravelHelper\Services\NotificationService::make($identifier, $column); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | /* |
| 83 | 83 | * user() helper |
| 84 | 84 | */ |
| 85 | -if (! function_exists('user')) { |
|
| 85 | +if (!function_exists('user')) { |
|
| 86 | 86 | function user() |
| 87 | 87 | { |
| 88 | 88 | foreach (config('auth.guards') as $key => $value) { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | /* |
| 99 | 99 | * Minify given HTML Content |
| 100 | 100 | */ |
| 101 | -if (! function_exists('minify')) { |
|
| 101 | +if (!function_exists('minify')) { |
|
| 102 | 102 | function minify($value) |
| 103 | 103 | { |
| 104 | 104 | $replace = [ |