Code Duplication    Length = 9-9 lines in 2 locations

Http/class.WebPage.php 2 locations

@@ 97-105 (lines=9) @@
94
        $this->templateName = $name;
95
    }
96
97
    public function addCSS($uri)
98
    {
99
        if(!isset($this->content['css']))
100
        {
101
            $this->content['css'] = array($uri);
102
            return;
103
        }
104
        array_push($this->content['css'],$uri);
105
    }
106
107
    /**
108
     * Add a JavaScript file from its src URI
@@ 112-120 (lines=9) @@
109
     *
110
     * @param string $uri The webpath to the JavaScript file
111
     */
112
    public function addJS($uri)
113
    {
114
        if(!isset($this->content['js']))
115
        {
116
            $this->content['js'] = array($uri);
117
            return;
118
        }
119
        array_push($this->content['js'],$uri);
120
    }
121
122
    /**
123
     * Add a JavaScript file from a set of files known to the framework