CloneSet215


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17440.962class_member_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117731
plugins/content/geshi/geshi.php
221764
plugins/content/geshi/geshi.php
317830
plugins/content/geshi/geshi.php
417859
plugins/content/geshi/geshi.php
Clone Instance
1
Line Count
17
Source Line
731
Source File
plugins/content/geshi/geshi.php

    /**
     * Sets the styles for escaped characters. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param string  The style to make the escape characters
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
    function set_escape_characters_style($style, $preserve_defaults=  FALSE) {
        if (!$preserve_defaults) {
            $this->language_data['STYLES']['ESCAPE_CHAR'][0]=  $style;
          }
        else {
            $this->language_data['STYLES']['ESCAPE_CHAR'][0].=  $style;
          }
      }

    /**
     * Turns highlighting on/off for escaped characters
     *
     * @param boolean Whether to turn highlighting for escape characters on or off
     * @since 1.0.0
     */
    function set_escape_characters_highlighting($flag=  TRUE) {
        $this->lexic_permissions['ESCAPE_CHAR']=  ($flag)
                                                  ?         TRUE
                                                  :                FALSE;
      }


Clone Instance
2
Line Count
21
Source Line
764
Source File
plugins/content/geshi/geshi.php

    /**
     * Sets the styles for brackets. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * This method is DEPRECATED: use set_symbols_style instead.
     * This method will be removed in 1.2.X
     *
     * @param string  The style to make the brackets
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     * @deprecated In favour of set_symbols_style
     */
    function set_brackets_style($style, $preserve_defaults=  FALSE) {
        if (!$preserve_defaults) {
            $this->language_data['STYLES']['BRACKETS'][0]=  $style;
          }
        else {
            $this->language_data['STYLES']['BRACKETS'][0].=  $style;
          }
      }

    /**
     * Turns highlighting on/off for brackets
     *
     * This method is DEPRECATED: use set_symbols_highlighting instead.
     * This method will be remove in 1.2.X
     *
     * @param boolean Whether to turn highlighting for brackets on or off
     * @since 1.0.0
     * @deprecated In favour of set_symbols_highlighting
     */
    function set_brackets_highlighting($flag) {
        $this->lexic_permissions['BRACKETS']=  ($flag)
                                               ?         TRUE
                                               :                FALSE;
      }


Clone Instance
3
Line Count
17
Source Line
830
Source File
plugins/content/geshi/geshi.php

    /**
     * Sets the styles for strings. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param string  The style to make the escape characters
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
    function set_strings_style($style, $preserve_defaults=  FALSE) {
        if (!$preserve_defaults) {
            $this->language_data['STYLES']['STRINGS'][0]=  $style;
          }
        else {
            $this->language_data['STYLES']['STRINGS'][0].=  $style;
          }
      }

    /**
     * Turns highlighting on/off for strings
     *
     * @param boolean Whether to turn highlighting for strings on or off
     * @since 1.0.0
     */
    function set_strings_highlighting($flag) {
        $this->lexic_permissions['STRINGS']=  ($flag)
                                              ?         TRUE
                                              :                FALSE;
      }


Clone Instance
4
Line Count
17
Source Line
859
Source File
plugins/content/geshi/geshi.php

    /**
     * Sets the styles for numbers. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param string  The style to make the numbers
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
    function set_numbers_style($style, $preserve_defaults=  FALSE) {
        if (!$preserve_defaults) {
            $this->language_data['STYLES']['NUMBERS'][0]=  $style;
          }
        else {
            $this->language_data['STYLES']['NUMBERS'][0].=  $style;
          }
      }

    /**
     * Turns highlighting on/off for numbers
     *
     * @param boolean Whether to turn highlighting for numbers on or off
     * @since 1.0.0
     */
    function set_numbers_highlighting($flag) {
        $this->lexic_permissions['NUMBERS']=  ($flag)
                                              ?         TRUE
                                              :                FALSE;
      }


Clone AbstractionParameter Count: 4Parameter Bindings

/**
     * Sets the styles for escaped characters. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param string  The style to make the escape characters
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
/**
     * Sets the styles for brackets. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * This method is DEPRECATED: use set_symbols_style instead.
     * This method will be removed in 1.2.X
     *
     * @param string  The style to make the brackets
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     * @deprecated In favour of set_symbols_style
     */
/**
     * Sets the styles for strings. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param string  The style to make the escape characters
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
/**
     * Sets the styles for numbers. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param string  The style to make the numbers
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
function [[#variable5782ca60]]($style,$preserve_defaults=FALSE) {
  if (!$preserve_defaults) {
    $this->language_data['STYLES'][ [[#variable5782cb40]]][0]=$style;
  }
  else {
    $this->language_data['STYLES'][ [[#variable5782cb40]]][0].=$style;
  }
}

/**
     * Turns highlighting on/off for escaped characters
     *
     * @param boolean Whether to turn highlighting for escape characters on or off
     * @since 1.0.0
     */
/**
     * Turns highlighting on/off for brackets
     *
     * This method is DEPRECATED: use set_symbols_highlighting instead.
     * This method will be remove in 1.2.X
     *
     * @param boolean Whether to turn highlighting for brackets on or off
     * @since 1.0.0
     * @deprecated In favour of set_symbols_highlighting
     */
/**
     * Turns highlighting on/off for strings
     *
     * @param boolean Whether to turn highlighting for strings on or off
     * @since 1.0.0
     */
/**
     * Turns highlighting on/off for numbers
     *
     * @param boolean Whether to turn highlighting for numbers on or off
     * @since 1.0.0
     */
function [[#variable5782ca40]]( [[#variable5782ca80]]) {
  $this->lexic_permissions[ [[#variable5782cb40]]]=($flag)
                                                   ? TRUE
                                                   : FALSE;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5782ca60]]
set_escape_characters_style 
12[[#5782ca60]]
set_brackets_style 
13[[#5782ca60]]
set_strings_style 
14[[#5782ca60]]
set_numbers_style 
21[[#5782cb40]]
'ESCAPE_CHAR' 
22[[#5782cb40]]
'BRACKETS' 
23[[#5782cb40]]
'STRINGS' 
24[[#5782cb40]]
'NUMBERS' 
31[[#5782ca40]]
set_escape_characters_highlighting 
32[[#5782ca40]]
set_brackets_highlighting 
33[[#5782ca40]]
set_strings_highlighting 
34[[#5782ca40]]
set_numbers_highlighting 
41[[#5782ca80]]
$flag=TRUE 
42[[#5782ca80]]
$flag 
43[[#5782ca80]]
$flag 
44[[#5782ca80]]
$flag