Skip to content

Commit 8069d26

Browse files
Command helper options, flag, arguments. helper Perfommance
1 parent 46c77f3 commit 8069d26

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

helpers.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function Tame_isAppFramework()
4040
/**
4141
* Helps without calling the method multiple times
4242
*/
43-
$Support_Tame_isAppFramework = Tame_isAppFramework();
43+
$Tame_isAppFramework = function_exists('Tame_isAppFramework') ? Tame_isAppFramework() : false;
4444

4545

4646
if (! function_exists('Tame')) {
@@ -214,7 +214,7 @@ function TameZip()
214214
}
215215
}
216216

217-
if (! $Support_Tame_isAppFramework && ! function_exists('bcrypt')) {
217+
if (! $Tame_isAppFramework && ! function_exists('bcrypt')) {
218218
/**
219219
* Password Encrypter.
220220
* This function encrypts a password using bcrypt with a generated salt.
@@ -309,7 +309,7 @@ function TameSession()
309309
}
310310
}
311311

312-
if (! $Support_Tame_isAppFramework && ! function_exists('config')) {
312+
if (! $Tame_isAppFramework && ! function_exists('config')) {
313313
/**
314314
* Get the value of a configuration option.
315315
*
@@ -328,7 +328,7 @@ function config($key, $default = null)
328328
}
329329
}
330330

331-
if (! $Support_Tame_isAppFramework && ! function_exists('env')) {
331+
if (! $Tame_isAppFramework && ! function_exists('env')) {
332332
/**
333333
* Get ENV (Enviroment) Data
334334
* - If .env was not used,
@@ -443,7 +443,7 @@ function config_time(?array $options = [])
443443
}
444444
}
445445

446-
if (! $Support_Tame_isAppFramework && ! function_exists('__')) {
446+
if (! $Tame_isAppFramework && ! function_exists('__')) {
447447
/**
448448
* Translate the given message.
449449
*
@@ -623,7 +623,7 @@ function to_json($value)
623623
}
624624
}
625625

626-
if (! $Support_Tame_isAppFramework && ! function_exists('dump')) {
626+
if (! $Tame_isAppFramework && ! function_exists('dump')) {
627627
/**
628628
* Dump Data
629629
* @param mixed $data
@@ -636,7 +636,7 @@ function dump(...$data)
636636
}
637637
}
638638

639-
if (! $Support_Tame_isAppFramework && ! function_exists('dd')) {
639+
if (! $Tame_isAppFramework && ! function_exists('dd')) {
640640
/**
641641
* Dump and Data
642642
* @param mixed $data

0 commit comments

Comments
 (0)