mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Code cleanup before release.
This commit is contained in:
@@ -93,11 +93,8 @@ class FireflyValidator extends Validator
|
||||
return true;
|
||||
}
|
||||
$count = DB::table($parameters[0])->where('user_id', auth()->user()->id)->where($field, $value)->count();
|
||||
if (1 === $count) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return 1 === $count;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -234,11 +231,8 @@ class FireflyValidator extends Validator
|
||||
return true;
|
||||
}
|
||||
$count = DB::table($parameters[0])->where($field, $value)->count();
|
||||
if (1 === $count) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return 1 === $count;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -323,7 +317,7 @@ class FireflyValidator extends Validator
|
||||
/** @var TriggerInterface $class */
|
||||
$class = $classes[$name];
|
||||
|
||||
return !($class::willMatchEverything($value));
|
||||
return !$class::willMatchEverything($value);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user