-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Please consider the following code from ValidatiorHandler:
private function getInputFilter($inputFilterService)
{
$inputFilter = $this->inputFilterManager->get($inputFilterService);
if (! $inputFilter instanceof InputFilter) {
throw new ValidationClassNotExists(
sprintf(
'Listed input filter "%s" does not exist; cannot validate request',
$inputFilterService
)
);
}
return $this->inputFilterManager->get($inputFilterService);
}In the return statement, there's no need to get the input filter again from the manager. We can just return $inputFilter.
Metadata
Metadata
Assignees
Labels
No labels