Code cleanup

This commit is contained in:
James Cole
2023-10-28 15:03:33 +02:00
parent fa920fed4e
commit 0133a7c5db
77 changed files with 575 additions and 594 deletions

View File

@@ -41,7 +41,8 @@ if (!function_exists('envNonEmpty')) {
*
* @return mixed|null
*/
function envNonEmpty(string $key, $default = null) {
function envNonEmpty(string $key, $default = null)
{
$result = env($key, $default);
if (is_string($result) && '' === $result) {
$result = $default;
@@ -58,7 +59,8 @@ if (!function_exists('stringIsEqual')) {
*
* @return bool
*/
function stringIsEqual(string $left, string $right): bool {
function stringIsEqual(string $left, string $right): bool
{
return $left === $right;
}
}