original_string: public function resolveFile($name)
      {
          $components = $this->parseResource($name);
          foreach ($components['dirs'] as $dir) {
              if (is_file($file = $dir . ($dir ? '/' : '') .  $components['file'])) {
                  return $file;
              }
          }
          return false;
      }
code: public function resolveFile($name)
      {
          $components = $this->parseResource($name);
          foreach ($components['dirs'] as $dir) {
              if (is_file($file = $dir . ($dir ? '/' : '') .  $components['file'])) {
                  return $file;
              }
          }
          return false;
      }
code_tokens: public function resolveFile ( $ name ) { $ components = $ this -> parseResource ( $ name ) ; foreach ( $ components [ 'dirs' ] as $ dir ) { if ( is_file ( $ file = $ dir . ( $ dir ? '/' : '' ) . $ components [ 'file' ] ) ) { return $ file ; } } return false ; }
docstring: Resolve the template file by name
  
  @param  string $name The name of template
  @return string|false The template file path or false if file not found
docstring_tokens: Resolve the template file by name