code: public function normalizePathInfo($pathInfo, $suffix, &$normalized = false)
      {
          if (empty($pathInfo)) {
              return $pathInfo;
          }
  
          $sourcePathInfo = $pathInfo;
          if ($this->collapseSlashes) {
              $pathInfo = $this->collapseSlashes($pathInfo);
          }
  
          if ($this->normalizeTrailingSlash === true) {
              $pathInfo = $this->normalizeTrailingSlash($pathInfo, $suffix);
          }
  
          $normalized = $sourcePathInfo !== $pathInfo;
  
          return $pathInfo;
      }
docs: Normalizes specified pathInfo.
  @param string $pathInfo pathInfo for normalization
  @param string $suffix current rule suffix
  @param bool $normalized if specified, this variable will be set to `true` if $pathInfo
  was changed during normalization
  @return string normalized pathInfo