Code Duplication    Length = 9-9 lines in 2 locations

Http/WebPage.php 2 locations

@@ 108-116 (lines=9) @@
105
        $this->templateName = $name;
106
    }
107
108
    public function addCSS($uri)
109
    {
110
        if(!isset($this->content['css']))
111
        {
112
            $this->content['css'] = array($uri);
113
            return;
114
        }
115
        array_push($this->content['css'],$uri);
116
    }
117
118
    /**
119
     * Add a JavaScript file from its src URI
@@ 123-131 (lines=9) @@
120
     *
121
     * @param string $uri The webpath to the JavaScript file
122
     */
123
    public function addJS($uri)
124
    {
125
        if(!isset($this->content['js']))
126
        {
127
            $this->content['js'] = array($uri);
128
            return;
129
        }
130
        array_push($this->content['js'],$uri);
131
    }
132
133
    /**
134
     * Add a JavaScript file from a set of files known to the framework