mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 02:45:58 +00:00
First part of a large code cleanup commit.
This commit is contained in:
@@ -51,10 +51,7 @@ trait GetConfigurationData
|
||||
E_ALL & ~E_NOTICE & ~E_STRICT => 'E_ALL & ~E_NOTICE & ~E_STRICT',
|
||||
E_COMPILE_ERROR | E_RECOVERABLE_ERROR | E_ERROR | E_CORE_ERROR => 'E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR',
|
||||
];
|
||||
$result = (string)$value;
|
||||
if (isset($array[$value])) {
|
||||
$result = $array[$value];
|
||||
}
|
||||
$result = $array[$value] ?? (string)$value;
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -188,7 +185,7 @@ trait GetConfigurationData
|
||||
$routeKey = '';
|
||||
|
||||
// user is on page with specific instructions:
|
||||
if (\strlen($specificPage) > 0) {
|
||||
if ('' !== $specificPage) {
|
||||
$routeKey = str_replace('.', '_', $route);
|
||||
$elements = config(sprintf('intro.%s', $routeKey . '_' . $specificPage));
|
||||
if (\is_array($elements) && \count($elements) > 0) {
|
||||
|
Reference in New Issue
Block a user