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

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