mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
🤖 Auto commit for release 'develop' on 2025-09-07
This commit is contained in:
@@ -36,7 +36,7 @@ trait FormSupport
|
||||
{
|
||||
public function multiSelect(string $name, ?array $list = null, mixed $selected = null, ?array $options = null): string
|
||||
{
|
||||
$list ??= [];
|
||||
$list ??= [];
|
||||
$label = $this->label($name, $options);
|
||||
$options = $this->expandOptionArray($name, $label, $options);
|
||||
$classes = $this->getHolderClasses($name);
|
||||
@@ -62,7 +62,7 @@ trait FormSupport
|
||||
}
|
||||
$name = str_replace('[]', '', $name);
|
||||
|
||||
return (string)trans('form.' . $name);
|
||||
return (string)trans('form.'.$name);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -70,10 +70,10 @@ trait FormSupport
|
||||
*/
|
||||
protected function expandOptionArray(string $name, $label, ?array $options = null): array
|
||||
{
|
||||
$options ??= [];
|
||||
$options ??= [];
|
||||
$name = str_replace('[]', '', $name);
|
||||
$options['class'] = 'form-control';
|
||||
$options['id'] = 'ffInput_' . $name;
|
||||
$options['id'] = 'ffInput_'.$name;
|
||||
$options['autocomplete'] = 'off';
|
||||
$options['placeholder'] = ucfirst((string)$label);
|
||||
|
||||
@@ -121,7 +121,7 @@ trait FormSupport
|
||||
*/
|
||||
public function select(string $name, ?array $list = null, $selected = null, ?array $options = null): string
|
||||
{
|
||||
$list ??= [];
|
||||
$list ??= [];
|
||||
$label = $this->label($name, $options);
|
||||
$options = $this->expandOptionArray($name, $label, $options);
|
||||
$classes = $this->getHolderClasses($name);
|
||||
|
@@ -43,7 +43,7 @@ trait CleansChartData
|
||||
$return = [];
|
||||
|
||||
/**
|
||||
* @var int $index
|
||||
* @var int $index
|
||||
* @var array $array
|
||||
*/
|
||||
foreach ($data as $index => $array) {
|
||||
|
@@ -103,7 +103,7 @@ trait ConvertsDataTypes
|
||||
{
|
||||
// assume this all works, because the validator would have caught any errors.
|
||||
$parameter = (string)request()->query->get($field);
|
||||
if('' === $parameter) {
|
||||
if ('' === $parameter) {
|
||||
return [];
|
||||
}
|
||||
$parts = explode(',', $parameter);
|
||||
|
@@ -184,11 +184,11 @@ class General extends AbstractExtension
|
||||
static function (string $string): string {
|
||||
$proto = parse_url($string, PHP_URL_SCHEME);
|
||||
$host = parse_url($string, PHP_URL_HOST);
|
||||
if(is_array($host)) {
|
||||
$host = join(' ', $host);
|
||||
if (is_array($host)) {
|
||||
$host = implode(' ', $host);
|
||||
}
|
||||
if(is_array($proto)) {
|
||||
$proto = join(' ', $proto);
|
||||
if (is_array($proto)) {
|
||||
$proto = implode(' ', $proto);
|
||||
}
|
||||
|
||||
return e(sprintf('%s://%s', $proto, $host));
|
||||
|
Reference in New Issue
Block a user