original_string: public function getView(string $name): SplFileInfo
      {
          $viewFactory = app(Factory::class);
  
          $pattern = str_replace('.', DIRECTORY_SEPARATOR, $name);
          $path = $viewFactory->getFinder()->find($name);
  
          $pos = strpos($path, $pattern);
  
          $directory = substr($path, 0, $pos);
          $filename = substr($path, $pos);
  
          return $this->createSplFileInfoInstance($directory, $filename);
      }
code: public function getView(string $name): SplFileInfo
      {
          $viewFactory = app(Factory::class);
  
          $pattern = str_replace('.', DIRECTORY_SEPARATOR, $name);
          $path = $viewFactory->getFinder()->find($name);
  
          $pos = strpos($path, $pattern);
  
          $directory = substr($path, 0, $pos);
          $filename = substr($path, $pos);
  
          return $this->createSplFileInfoInstance($directory, $filename);
      }
code_tokens: public function getView ( string $ name ) : SplFileInfo { $ viewFactory = app ( Factory :: class ) ; $ pattern = str_replace ( '.' , DIRECTORY_SEPARATOR , $ name ) ; $ path = $ viewFactory -> getFinder ( ) -> find ( $ name ) ; $ pos = strpos ( $ path , $ pattern ) ; $ directory = substr ( $ path , 0 , $ pos ) ; $ filename = substr ( $ path , $ pos ) ; return $ this -> createSplFileInfoInstance ( $ directory , $ filename ) ; }
docstring: Find view.
  
  @param string $name
  
  @return SplFileInfo
docstring_tokens: Find view .