mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Code cleanup
This commit is contained in:
@@ -159,10 +159,10 @@ class BelongsUser implements Rule
|
||||
private function parseAttribute(string $attribute): string
|
||||
{
|
||||
$parts = explode('.', $attribute);
|
||||
if (count($parts) === 1) {
|
||||
if (\count($parts) === 1) {
|
||||
return $attribute;
|
||||
}
|
||||
if (count($parts) === 3) {
|
||||
if (\count($parts) === 3) {
|
||||
return $parts[2];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user