code: protected function normalizePath($workingPath, $path)
      {
          $this->typeCheck->normalizePath(func_get_args());
  
          if ($this->filesystemHelper->isAbsolutePath($path)) {
              $path = $this->filesystemHelper->makePathRelative(
                  $path,
                  $workingPath
              );
          }
  
          return implode(
              '/',
              array_filter(
                  explode('/', str_replace('\\', '/', $path)),
                  function ($atom) {
                      return '.' !== $atom;
                  }
              )
          );
      }
docs: @param string $workingPath
  @param string $path
  
  @return string