protected static function colorDeleteLineWithIntralineEdits()

in src/CLIColoredUnifiedDiff.php [68:86]


  protected static function colorDeleteLineWithIntralineEdits(
    vec<DiffOp<string>> $ops,
  ): string {
    $line = self::DELETE_COLOR.'-';
    foreach ($ops as $op) {
      if ($op->isKeepOp()) {
        $line .= $op->getContent();
        continue;
      }
      if ($op->isDeleteOp()) {
        $line .= self::INTRALINE_DELETE_COLOR.
          $op->getContent().
          self::RESET.
          self::DELETE_COLOR;
        continue;
      }
    }
    return $line.self::RESET;
  }