Code Duplication    Length = 8-8 lines in 2 locations

src/allejo/stakx/Document/StaticPageView.php 1 location

@@ 100-107 (lines=8) @@
97
    /**
98
     * {@inheritdoc}
99
     */
100
    public function jsonSerialize()
101
    {
102
        return array_merge($this->getFrontMatter(), [
103
            'content'   => $this->getContent(),
104
            'permalink' => $this->getPermalink(),
105
            'redirects' => $this->getRedirects(),
106
        ]);
107
    }
108
109
    protected function beforeCompile()
110
    {

src/allejo/stakx/Document/ContentItem.php 1 location

@@ 97-104 (lines=8) @@
94
    /**
95
     * {@inheritdoc}
96
     */
97
    public function jsonSerialize()
98
    {
99
        return array_merge($this->getFrontMatter(), [
100
            'content'   => $this->getContent(),
101
            'permalink' => $this->getPermalink(),
102
            'redirects' => $this->getRedirects(),
103
        ]);
104
    }
105
}
106