public function resolve($name)
    {
        if (!$this->hasStandard($name)) {
            throw new \InvalidArgumentException('Unknown coding standard: '.$name);
        }

        foreach ($this->standards[$name] as $location) {
            if (file_exists($location)) {
                return $location;
            }
        }

        throw new \RuntimeException(sprintf('Failed to find the \'%s\' coding standard, likely need to run Composer install', $name));
    }