Code Duplication    Length = 3-3 lines in 2 locations

src/voku/helper/Hooks.php 2 locations

@@ 983-985 (lines=3) @@
980
  private function _do_shortcode_tag(array $m)
981
  {
982
    // allow [[foo]] syntax for escaping a tag
983
    if ($m[1] == '[' && $m[6] == ']') {
984
      return \substr($m[0], 1, -1);
985
    }
986
987
    $tag = $m[2];
988
    $attr = $this->shortcode_parse_atts($m[3]);
@@ 1133-1135 (lines=3) @@
1130
  private function _strip_shortcode_tag(array $m): string
1131
  {
1132
    // allow [[foo]] syntax for escaping a tag
1133
    if ($m[1] == '[' && $m[6] == ']') {
1134
      return substr($m[0], 1, -1);
1135
    }
1136
1137
    return $m[1] . $m[6];
1138
  }