Code Duplication    Length = 7-7 lines in 4 locations

code/SEO_Metadata_SiteTree_DataExtension.php 4 locations

@@ 175-181 (lines=7) @@
172
     *
173
     * @return string
174
     */
175
    public function MarkupMeta($name, $content, $encode = false)
176
    {
177
178
        // return
179
        return '<meta name="' . $name . '" content="' . $this->encodeContent($content, $encode) . '" />' . PHP_EOL;
180
181
    }
182
183
    /**
184
     * Returns markup for a HTML link element.
@@ 220-226 (lines=7) @@
217
     *
218
     * @return string
219
     */
220
    public function MarkupFacebook($property, $content, $encode = true)
221
    {
222
223
        // format & return
224
        return '<meta property="' . $property . '" content="' . $this->encodeContent($content, $encode) . '" />' . PHP_EOL;
225
226
    }
227
228
    /**
229
     * Returns markup for a Twitter Cards meta element.
@@ 237-243 (lines=7) @@
234
     *
235
     * @return string
236
     */
237
    public function MarkupTwitter($name, $content, $encode = true)
238
    {
239
240
        // format & return
241
        return '<meta name="' . $name . '" content="' . $this->encodeContent($content, $encode) . '" />' . PHP_EOL;
242
243
    }
244
245
    /**
246
     * Returns markup for a Schema.org meta element.
@@ 254-260 (lines=7) @@
251
     *
252
     * @return string
253
     */
254
    public function MarkupSchema($itemprop, $content, $encode = true)
255
    {
256
257
        // format & return
258
        return '<meta itemprop="' . $itemprop . '" content="' . $this->encodeContent($content, $encode) . '" />' . PHP_EOL;
259
260
    }
261
262
263
    /* Meta Methods