Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.974 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 540 | plugins/content/geshi/geshi.php |
2 | 6 | 597 | plugins/content/geshi/geshi.php |
| ||||
/** * Sets the styles for the code that will be outputted * when this object is parsed. The style should be a * string of valid stylesheet declarations * * @param string The overall style for the outputted code block * @param boolean Whether to merge the styles with the current styles or not * @since 1.0.0 */ function set_overall_style($style, $preserve_defaults= FALSE) { if (!$preserve_defaults) { $this->overall_style = $style; } else { $this->overall_style .= $style; } } |
| ||||
/** * Sets the style for the actual code. This should be a string * containing valid stylesheet declarations. If $preserve_defaults is * true, then styles are merged with the default styles, with the * user defined styles having priority * * Note: Use this method to override any style changes you made to * the line numbers if you are using line numbers, else the line of * code will have the same style as the line number! Consult the * GeSHi documentation for more information about this. * * @param string The style to use for actual code * @param boolean Whether to merge the current styles with the new styles */ function set_code_style($style, $preserve_defaults= FALSE) { if (!$preserve_defaults) { $this->code_style = $style; } else { $this->code_style .= $style; } } |
| |||
/** * Sets the style for the actual code. This should be a string * containing valid stylesheet declarations. If $preserve_defaults is * true, then styles are merged with the default styles, with the * user defined styles having priority * * Note: Use this method to override any style changes you made to * the line numbers if you are using line numbers, else the line of * code will have the same style as the line number! Consult the * GeSHi documentation for more information about this. * * @param string The style to use for actual code * @param boolean Whether to merge the current styles with the new styles */ /** * Sets the styles for the code that will be outputted * when this object is parsed. The style should be a * string of valid stylesheet declarations * * @param string The overall style for the outputted code block * @param boolean Whether to merge the styles with the current styles or not * @since 1.0.0 */ function [[#variable46d01200]]($style,$preserve_defaults=FALSE) { if (!$preserve_defaults) { $this-> [[#variable46d01180]]=$style; } else { $this-> [[#variable46d01180]].=$style; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#46d01200]] | set_code_style |
1 | 2 | [[#46d01200]] | set_overall_style |
2 | 1 | [[#46d01180]] | code_style |
2 | 2 | [[#46d01180]] | overall_style |