Code Duplication    Length = 7-7 lines in 2 locations

src/ShortMessage.php 2 locations

@@ 66-72 (lines=7) @@
63
        ]);
64
    }
65
66
    public function toSingleMessageXml()
67
    {
68
        $text = str_replace("'", "'", htmlentities($this->body()));
69
        $gsmNo = $this->receiversString(',');
70
71
        return "<text>{$text}</text><message><gsmnos>{$gsmNo}</gsmnos></message>";
72
    }
73
74
    /**
75
     * Get the xml representation of the short message.
@@ 79-85 (lines=7) @@
76
     *
77
     * @return string
78
     */
79
    public function toMultipleMessagesXml()
80
    {
81
        $text = str_replace("'", "&apos;", htmlentities($this->body()));
82
        $gsmNo = $this->receiversString(',');
83
84
        return "<message><gsmno>{$gsmNo}</gsmno><text>{$text}</text></message>";
85
    }
86
}
87