Code Duplication    Length = 7-8 lines in 2 locations

core/modules/api/ApiController.php 1 location

@@ 5-11 (lines=7) @@
2
3
class ApiController extends Ajde_Api_Controller
4
{
5
    public function v1()
6
    {
7
        $id    = $this->getId();
8
        $route = new Ajde_Core_Route('api/v1:' . $id . '.json');
9
10
        return Ajde_Controller::fromRoute($route)->invoke();
11
    }
12
}
13

core/modules/node/model/NodeModel.php 1 location

@@ 192-199 (lines=8) @@
189
        return $addresses;
190
    }
191
192
    public function displayPanel()
193
    {
194
        $nodetype   = (string)$this->get('nodetype');
195
        $controller = Ajde_Controller::fromRoute(new Ajde_Core_Route('admin/node:panel'));
196
        $controller->setItem($this);
197
198
        return $controller->invoke();
199
    }
200
201
    public function displayTreeName()
202
    {