Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 2 | 0.984 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 998 | plugins/content/geshi/geshi.php |
2 | 13 | 1019 | plugins/content/geshi/geshi.php |
| ||||
/** * Disables all highlighting * * @since 1.0.0 * @todo Rewrite with an array traversal */ function disable_highlighting() { foreach ($this->lexic_permissions as $key => $value) { if (is_array($value)) { foreach ($value as $k => $v) { $this->lexic_permissions[$key][$k]= FALSE; } } else { $this->lexic_permissions[$key]= FALSE; } } // Context blocks $this->enable_important_blocks = FALSE; } |
| ||||
/** * Enables all highlighting * * @since 1.0.0 * @todo Rewrite with array traversal */ function enable_highlighting() { foreach ($this->lexic_permissions as $key => $value) { if (is_array($value)) { foreach ($value as $k => $v) { $this->lexic_permissions[$key][$k]= TRUE; } } else { $this->lexic_permissions[$key]= TRUE; } } // Context blocks $this->enable_important_blocks = TRUE; } |
| |||
/** * Enables all highlighting * * @since 1.0.0 * @todo Rewrite with array traversal */ /** * Disables all highlighting * * @since 1.0.0 * @todo Rewrite with an array traversal */ function [[#variable25410c60]]() { foreach ($this->lexic_permissions as $key => $value) { if (is_array($value)) { foreach ($value as $k => $v) { $this->lexic_permissions[$key][$k]= [[#variable25410c00]]; } } else { $this->lexic_permissions[$key]= [[#variable25410c00]]; } } // Context blocks $this->enable_important_blocks = [[#variable25410c00]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#25410c60]] | enable_highlighting |
1 | 2 | [[#25410c60]] | disable_highlighting |
2 | 1 | [[#25410c00]] | TRUE |
2 | 2 | [[#25410c00]] | FALSE |