formatting
This commit is contained in:
parent
244d73ec9a
commit
a7b132372c
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue