original_string: 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));
      }
code: 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));
      }
code_tokens: 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 ) ) ; }
docstring: Find the location of a standard.
  
  @param string $name The standard name
  
  @return string
docstring_tokens: Find the location of a standard .