original_string: protected function findTemplate($name)
      {
          $finder = App::make('view')->getFinder();
  
          if (isset($this->cache[$name])) {
              return $this->cache[$name];
          }
  
          if (File::isFile($name)) {
              return $this->cache[$name] = $name;
          }
  
          $view = $name;
          if (File::extension($view) === $this->extension) {
              $view = substr($view, 0, -strlen($this->extension));
          }
  
          $path = $finder->find($view);
          return $this->cache[$name] = $path;
      }
code: protected function findTemplate($name)
      {
          $finder = App::make('view')->getFinder();
  
          if (isset($this->cache[$name])) {
              return $this->cache[$name];
          }
  
          if (File::isFile($name)) {
              return $this->cache[$name] = $name;
          }
  
          $view = $name;
          if (File::extension($view) === $this->extension) {
              $view = substr($view, 0, -strlen($this->extension));
          }
  
          $path = $finder->find($view);
          return $this->cache[$name] = $path;
      }
code_tokens: protected function findTemplate ( $ name ) { $ finder = App :: make ( 'view' ) -> getFinder ( ) ; if ( isset ( $ this -> cache [ $ name ] ) ) { return $ this -> cache [ $ name ] ; } if ( File :: isFile ( $ name ) ) { return $ this -> cache [ $ name ] = $ name ; } $ view = $ name ; if ( File :: extension ( $ view ) === $ this -> extension ) { $ view = substr ( $ view , 0 , - strlen ( $ this -> extension ) ) ; } $ path = $ finder -> find ( $ view ) ; return $ this -> cache [ $ name ] = $ path ; }
docstring: Gets the path of a view file
  @param  string $name
  @return string
docstring_tokens: Gets the path of a view file