protected function determineMatches(Matcher $matcher, Result $control, array $trials = []) { foreach ($trials as $trial) { if ($matcher->match($control->getValue(), $trial->getValue())) { $trial->setMatch(true); } } }