protected function filterArguments(array $arguments) { if (is_array(end($arguments))) { foreach (array_pop($arguments) as $member => $score) { $arguments[] = $score; $arguments[] = $member; } } return $arguments; }