Code Duplication    Length = 8-8 lines in 2 locations

code/pages/AbbreviationPage.php 1 location

@@ 54-61 (lines=8) @@
51
        return $this->renderWith(array('AbbreviationPage', 'Page'));
52
    }
53
54
    public function viewItem()
55
    {
56
        $item = $this->getItem($this->request->param('Item'));
57
        if (!$item) {
58
            $this->httpError(404);
59
        }
60
        return $this->customise(array('Item' => $item))->renderWith(array('AbbreviationPage_view', 'Page'));
61
    }
62
63
    public function getItem($slug)
64
    {

code/pages/ExplanationPage.php 1 location

@@ 33-40 (lines=8) @@
30
        'viewItem'
31
    );
32
33
    public function viewItem()
34
    {
35
        $item = $this->getItem($this->request->param('Item'));
36
        if (!$item) {
37
            $this->httpError(404);
38
        }
39
        return $this->customise(array('Item' => $item))->renderWith(array('ExplanationPage_view', 'Page'));
40
    }
41
42
    public function getItem($slug)
43
    {