original_string: protected function getFileNames(string $directory = 'default'): array
      {
          $directoryIterator = $this->getDirectoryIterator($directory);
          $files = [];
          foreach ($directoryIterator as $file) {
              $this->resolveFile($file, $files);
          }
          return $files;
      }
code: protected function getFileNames(string $directory = 'default'): array
      {
          $directoryIterator = $this->getDirectoryIterator($directory);
          $files = [];
          foreach ($directoryIterator as $file) {
              $this->resolveFile($file, $files);
          }
          return $files;
      }
code_tokens: protected function getFileNames ( string $ directory = 'default' ) : array { $ directoryIterator = $ this -> getDirectoryIterator ( $ directory ) ; $ files = [ ] ; foreach ( $ directoryIterator as $ file ) { $ this -> resolveFile ( $ file , $ files ) ; } return $ files ; }
docstring: Get list of paths in directory
  @param string $directory
  @return array
docstring_tokens: Get list of paths in directory