Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 3 | 0.979 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 431 | libraries/joomla/document/document.php |
2 | 6 | 463 | libraries/joomla/document/document.php |
| ||||
/** * Adds a script to the page * * @access public * @param string $content Script * @param string $type Scripting mime (defaults to 'text/javascript') * @return void */ function addScriptDeclaration($content, $type= 'text/javascript') { if (! isset ($this->_script[strtolower($type)])) { $this->_script[strtolower($type)]= $content; } else { $this->_script[strtolower($type)].= chr(13) . $content; } } |
| ||||
/** * Adds a stylesheet declaration to the page * * @param string $content Style declarations * @param string $type Type of stylesheet (defaults to 'text/css') * @access public * @return void */ function addStyleDeclaration($content, $type= 'text/css') { if (! isset ($this->_style[strtolower($type)])) { $this->_style[strtolower($type)]= $content; } else { $this->_style[strtolower($type)].= chr(13) . $content; } } |
| |||
/** * Adds a stylesheet declaration to the page * * @param string $content Style declarations * @param string $type Type of stylesheet (defaults to 'text/css') * @access public * @return void */ /** * Adds a script to the page * * @access public * @param string $content Script * @param string $type Scripting mime (defaults to 'text/javascript') * @return void */ function [[#variable3c909700]]($content,$type= [[#variable3c909640]]) { if (! isset ($this-> [[#variable3c9096c0]][strtolower($type)])) { $this-> [[#variable3c9096c0]][strtolower($type)]=$content; } else { $this-> [[#variable3c9096c0]][strtolower($type)].=chr(13) . $content; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3c909700]] | addStyleDeclaration |
1 | 2 | [[#3c909700]] | addScriptDeclaration |
2 | 1 | [[#3c909640]] | 'text/css' |
2 | 2 | [[#3c909640]] | 'text/javascript' |
3 | 1 | [[#3c9096c0]] | _style |
3 | 2 | [[#3c9096c0]] | _script |