Code Duplication    Length = 9-9 lines in 2 locations

lib/Ajde/Component/Resource.php 2 locations

@@ 32-40 (lines=9) @@
29
        $this->getParser()->getDocument()->addResource($resource, $position);
30
    }
31
32
    public function requirePublicResource(
33
        $type,
34
        $filename,
35
        $position = Ajde_Document_Format_Html::RESOURCE_POSITION_DEFAULT,
36
        $arguments = ''
37
    ) {
38
        $resource = new Ajde_Resource_Public($type, $filename, $arguments);
39
        $this->getParser()->getDocument()->addResource($resource, $position);
40
    }
41
42
    public function requireRemoteResource(
43
        $type,
@@ 42-50 (lines=9) @@
39
        $this->getParser()->getDocument()->addResource($resource, $position);
40
    }
41
42
    public function requireRemoteResource(
43
        $type,
44
        $url,
45
        $position = Ajde_Document_Format_Html::RESOURCE_POSITION_DEFAULT,
46
        $arguments = ''
47
    ) {
48
        $resource = new Ajde_Resource_Remote($type, $url, $arguments);
49
        $this->getParser()->getDocument()->addResource($resource, $position);
50
    }
51
}
52