Clean up code.

This commit is contained in:
James Cole
2023-12-10 06:45:59 +01:00
parent 9a807fc215
commit c2b22a2bac
157 changed files with 648 additions and 669 deletions

View File

@@ -299,7 +299,7 @@ class FireflyValidator extends Validator
public function validateRuleActionValue(string $attribute, string $value = null): bool
{
// first, get the index from this string:
$value = $value ?? '';
$value ??= '';
$parts = explode('.', $attribute);
$index = (int)($parts[1] ?? '0');