mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
New tests.
This commit is contained in:
@@ -28,6 +28,24 @@ if (!function_exists('mf')) {
|
||||
return '€ ' . $string;
|
||||
}
|
||||
}
|
||||
if (!function_exists('boolstr')) {
|
||||
/**
|
||||
* @param $boolean
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function boolstr($boolean)
|
||||
{
|
||||
if (is_bool($boolean) && $boolean === true) {
|
||||
return 'BOOLEAN TRUE';
|
||||
}
|
||||
if (is_bool($boolean) && $boolean === false) {
|
||||
return 'BOOLEAN FALSE';
|
||||
}
|
||||
|
||||
return 'NO BOOLEAN: ' . $boolean;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$app = new Illuminate\Foundation\Application;
|
||||
|
||||
Reference in New Issue
Block a user