formatting

This commit is contained in:
Denis Duliçi 2023-11-08 13:43:06 +03:00
parent 244d73ec9a
commit a7b132372c
2 changed files with 3 additions and 3 deletions

View File

@ -23,9 +23,9 @@ trait DateTime
$chars = ['dash' => '-', 'slash' => '/', 'dot' => '.', 'comma' => ',', 'space' => ' '];
$date_format = (setting('localisation.date_format', $default)) ?? $default;
$date_format = setting('localisation.date_format', $default) ?? $default;
$char = (setting('localisation.date_separator', 'space')) ?? 'space';
$char = setting('localisation.date_separator', 'space') ?? 'space';
$date_separator = $chars[$char];
return str_replace(' ', $date_separator, $date_format);

View File

@ -58,7 +58,7 @@ trait Plans
public function getPlanLimitByType($type): object
{
if (! config('app.installed') || (env_is_testing() && app()->runningInConsole())) {
if (! config('app.installed') || running_in_test()) {
$limit = new \stdClass();
$limit->action_status = true;