mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
Big refactor to remove the deprecated transaction collector.
This commit is contained in:
@@ -138,10 +138,10 @@ class BelongsUser implements Rule
|
||||
private function parseAttribute(string $attribute): string
|
||||
{
|
||||
$parts = explode('.', $attribute);
|
||||
if (1 === \count($parts)) {
|
||||
if (1 === count($parts)) {
|
||||
return $attribute;
|
||||
}
|
||||
if (3 === \count($parts)) {
|
||||
if (3 === count($parts)) {
|
||||
return $parts[2];
|
||||
}
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ class ValidRecurrenceRepetitionValue implements Rule
|
||||
private function validateNdom(string $value): bool
|
||||
{
|
||||
$parameters = explode(',', substr($value, 5));
|
||||
if (2 !== \count($parameters)) {
|
||||
if (2 !== count($parameters)) {
|
||||
return false;
|
||||
}
|
||||
$nthDay = (int)($parameters[0] ?? 0.0);
|
||||
|
||||
Reference in New Issue
Block a user