CloneSet710


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6230.979class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16431
libraries/joomla/document/document.php
26463
libraries/joomla/document/document.php
Clone Instance
1
Line Count
6
Source Line
431
Source File
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;
                      }
              }


Clone Instance
2
Line Count
6
Source Line
463
Source File
libraries/joomla/document/document.php

         /**
         * 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;
                      }
              }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3c909700]]
addStyleDeclaration 
12[[#3c909700]]
addScriptDeclaration 
21[[#3c909640]]
'text/css' 
22[[#3c909640]]
'text/javascript' 
31[[#3c9096c0]]
_style 
32[[#3c9096c0]]
_script