original_string: public function supports($name)
      {
          // @codeCoverageIgnoreStart
          $extensions = method_exists($this->jade, 'getExtensions')
              ? $this->jade->getExtensions()
              : $this->jade->getOption('extensions');
          // @codeCoverageIgnoreEnd
          foreach ($extensions as $extension) {
              if (substr($name, -strlen($extension)) === $extension) {
                  return true;
              }
          }
  
          return false;
      }
code: public function supports($name)
      {
          // @codeCoverageIgnoreStart
          $extensions = method_exists($this->jade, 'getExtensions')
              ? $this->jade->getExtensions()
              : $this->jade->getOption('extensions');
          // @codeCoverageIgnoreEnd
          foreach ($extensions as $extension) {
              if (substr($name, -strlen($extension)) === $extension) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public function supports ( $ name ) { // @codeCoverageIgnoreStart $ extensions = method_exists ( $ this -> jade , 'getExtensions' ) ? $ this -> jade -> getExtensions ( ) : $ this -> jade -> getOption ( 'extensions' ) ; // @codeCoverageIgnoreEnd foreach ( $ extensions as $ extension ) { if ( substr ( $ name , - strlen ( $ extension ) ) === $ extension ) { return true ; } } return false ; }
docstring: Check if a file extension is supported by Pug.
  
  @param string|\Symfony\Component\Templating\TemplateReferenceInterface $name
  
  @return bool
docstring_tokens: Check if a file extension is supported by Pug .