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));
    }
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));
    }
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 ) ) ; }
Find the location of a standard.

@param string $name The standard name

@return string
Find the location of a standard .