Code Duplication    Length = 8-10 lines in 2 locations

typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 2 locations

@@ 5741-5748 (lines=8) @@
5738
     * @return string Wrapped input string
5739
     * @see noTrimWrap()
5740
     */
5741
    public function wrap($content, $wrap, $char = '|')
5742
    {
5743
        if ($wrap) {
5744
            $wrapArr = explode($char, $wrap);
5745
            $content = trim($wrapArr[0]) . $content . trim($wrapArr[1]);
5746
        }
5747
        return $content;
5748
    }
5749
5750
    /**
5751
     * Wrapping a string, preserving whitespace in wrap value.
@@ 5760-5769 (lines=10) @@
5757
     * @return string Wrapped input string, eg. " <strong> HELLO WORD </strong>
5758
     * @see wrap()
5759
     */
5760
    public function noTrimWrap($content, $wrap, $char = '|')
5761
    {
5762
        if ($wrap) {
5763
            // expects to be wrapped with (at least) 3 characters (before, middle, after)
5764
            // anything else is not taken into account
5765
            $wrapArr = explode($char, $wrap, 4);
5766
            $content = $wrapArr[1] . $content . $wrapArr[2];
5767
        }
5768
        return $content;
5769
    }
5770
5771
    /**
5772
     * Calling a user function/class-method