mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 12:47:17 -06:00
31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
<?php
|
|
|
|
League\FactoryMuffin\Facade::define(
|
|
'TransactionCurrency', [
|
|
'code' => function () {
|
|
$code = '';
|
|
for ($i = 0; $i < 3; $i++) {
|
|
$code .= chr(rand(65, 90));
|
|
}
|
|
|
|
return $code;
|
|
},
|
|
'name' => function () {
|
|
$code = '';
|
|
for ($i = 0; $i < 8; $i++) {
|
|
$code .= chr(rand(65, 90));
|
|
}
|
|
|
|
return $code;
|
|
},
|
|
'symbol' => function () {
|
|
$code = '';
|
|
for ($i = 0; $i < 2; $i++) {
|
|
$code .= chr(rand(65, 90));
|
|
}
|
|
|
|
return $code;
|
|
}
|
|
]
|
|
);
|