Code Duplication    Length = 7-7 lines in 2 locations

src/Metadata.php 2 locations

@@ 46-52 (lines=7) @@
43
     *
44
     * @return string
45
     */
46
    public function title()
47
    {
48
        $title = empty($this->page['title']) ? null : htmlspecialchars($this->page['title'], ENT_QUOTES);
49
        return $title
50
            ? '<meta property="og:title" content="' . $title . '" />'
51
            : null;
52
    }
53
54
    /**
55
     * Get the description metatag.
@@ 59-65 (lines=7) @@
56
     *
57
     * @return string
58
     */
59
    public function description()
60
    {
61
        $summary = empty($this->page['summary']) ? null : htmlspecialchars($this->page['summary'], ENT_QUOTES);
62
        return $summary
63
            ? '<meta property="og:description" content="' . $summary . '" />'
64
            : null;
65
    }
66
67
    /**
68
     * Get the image metatag.