original_string: public function getLocalFileListForPath($localPath)
      {
          $files = [];
          $objects = new RecursiveIteratorIterator(
              new RecursiveDirectoryIterator($localPath),
              RecursiveIteratorIterator::LEAVES_ONLY,
              FilesystemIterator::SKIP_DOTS
          );
  
          /**
           * @var string $path
           * @var SplFileObject $object
           */
          foreach ($objects as $path => $object) {
              /** @noinspection TypeUnsafeComparisonInspection */
              /** @noinspection NotOptimalIfConditionsInspection */
              if ($object->getFilename() != '.' && $object->getFilename() != '..') {
                  $hostTempFolderPath = $this->_config->getHostSpoolerFolderPath();
  
                  /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
                  $remoteFilePath = str_replace($hostTempFolderPath, '/', $object->getPathName());
  
  
                  /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
                  $file = [
                      'name' => $object->getFilename(),
                      'localPath' => $object->getPathName(),
                      'remotePath' => $remoteFilePath,
                      'modified' => $object->getMTime()
                  ];
  
                  $files[$object->getFilename()] = $file;
              }
          }
  
          return $files;
      }
code: public function getLocalFileListForPath($localPath)
      {
          $files = [];
          $objects = new RecursiveIteratorIterator(
              new RecursiveDirectoryIterator($localPath),
              RecursiveIteratorIterator::LEAVES_ONLY,
              FilesystemIterator::SKIP_DOTS
          );
  
          /**
           * @var string $path
           * @var SplFileObject $object
           */
          foreach ($objects as $path => $object) {
              /** @noinspection TypeUnsafeComparisonInspection */
              /** @noinspection NotOptimalIfConditionsInspection */
              if ($object->getFilename() != '.' && $object->getFilename() != '..') {
                  $hostTempFolderPath = $this->_config->getHostSpoolerFolderPath();
  
                  /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
                  $remoteFilePath = str_replace($hostTempFolderPath, '/', $object->getPathName());
  
  
                  /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
                  $file = [
                      'name' => $object->getFilename(),
                      'localPath' => $object->getPathName(),
                      'remotePath' => $remoteFilePath,
                      'modified' => $object->getMTime()
                  ];
  
                  $files[$object->getFilename()] = $file;
              }
          }
  
          return $files;
      }
code_tokens: public function getLocalFileListForPath ( $ localPath ) { $ files = [ ] ; $ objects = new RecursiveIteratorIterator ( new RecursiveDirectoryIterator ( $ localPath ) , RecursiveIteratorIterator :: LEAVES_ONLY , FilesystemIterator :: SKIP_DOTS ) ; /**
           * @var string $path
           * @var SplFileObject $object
           */ foreach ( $ objects as $ path => $ object ) { /** @noinspection TypeUnsafeComparisonInspection */ /** @noinspection NotOptimalIfConditionsInspection */ if ( $ object -> getFilename ( ) != '.' && $ object -> getFilename ( ) != '..' ) { $ hostTempFolderPath = $ this -> _config -> getHostSpoolerFolderPath ( ) ; /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */ $ remoteFilePath = str_replace ( $ hostTempFolderPath , '/' , $ object -> getPathName ( ) ) ; /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */ $ file = [ 'name' => $ object -> getFilename ( ) , 'localPath' => $ object -> getPathName ( ) , 'remotePath' => $ remoteFilePath , 'modified' => $ object -> getMTime ( ) ] ; $ files [ $ object -> getFilename ( ) ] = $ file ; } } return $ files ; }
docstring: Get list of files in a local file path
  
  @param $localPath
  @return string[]
docstring_tokens: Get list of files in a local file path