original_string: private function getConsolePath()
      {
          if (file_exists($this->rootDir . '/app/console')) {
              return $this->rootDir . '/app/console';
          }
  
          $finder = new Finder();
          $files  = $finder->files()->depth(1)->name('console')->in($this->rootDir);
  
          /** @var SplFileInfo $file */
          foreach ($files as $file) {
              return $file->getPathname();
          }
  
          throw new \UnderflowException('Symfony console application was not found.');
      }
code: private function getConsolePath()
      {
          if (file_exists($this->rootDir . '/app/console')) {
              return $this->rootDir . '/app/console';
          }
  
          $finder = new Finder();
          $files  = $finder->files()->depth(1)->name('console')->in($this->rootDir);
  
          /** @var SplFileInfo $file */
          foreach ($files as $file) {
              return $file->getPathname();
          }
  
          throw new \UnderflowException('Symfony console application was not found.');
      }
code_tokens: private function getConsolePath ( ) { if ( file_exists ( $ this -> rootDir . '/app/console' ) ) { return $ this -> rootDir . '/app/console' ; } $ finder = new Finder ( ) ; $ files = $ finder -> files ( ) -> depth ( 1 ) -> name ( 'console' ) -> in ( $ this -> rootDir ) ; /** @var SplFileInfo $file */ foreach ( $ files as $ file ) { return $ file -> getPathname ( ) ; } throw new \ UnderflowException ( 'Symfony console application was not found.' ) ; }
docstring: Find path to console application
  
  @return string
  
  @throws \UnderflowException If console application was not found.
docstring_tokens: Find path to console application