mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +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];
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ class ValidTransactions implements Rule
|
||||
public function passes($attribute, $value)
|
||||
{
|
||||
Log::debug('In ValidTransactions::passes');
|
||||
if (!is_array($value)) {
|
||||
if (!\is_array($value)) {
|
||||
return true;
|
||||
}
|
||||
$userId = auth()->user()->id;
|
||||
|
||||
Reference in New Issue
Block a user