CloneSet581


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118165
libraries/joomla/form/form.php
218333
libraries/joomla/form/form.php
Clone Instance
1
Line Count
18
Source Line
165
Source File
libraries/joomla/form/form.php

                // The data must be an object or array.
                if (!is_object($data)
                    &&                   !is_array($data)) {
                        return FALSE;
                      }
                // Convert objects to arrays.
                if (is_object($data))
                {
                        // Handle a JRegistry/JParameter object.
                        if ($data instanceof JRegistry) {
                                $data=  $data->toArray();
                              }
                        // Handle a JObject.
                        elseif ($data instanceof JObject) {
                                $data=  $data->getProperties();
                              }
                        // Handle other types of objects.
                        else {
                                $data=  (array) $data;
                              }
                      }


Clone Instance
2
Line Count
18
Source Line
333
Source File
libraries/joomla/form/form.php

                // The data must be an object or array.
                if (!is_object($data)
                    &&                   !is_array($data)) {
                        return FALSE;
                      }
                // Convert objects to arrays.
                if (is_object($data))
                {
                        // Handle a JRegistry/JParameter object.
                        if ($data instanceof JRegistry) {
                                $data=  $data->toArray();
                              }
                        // Handle a JObject.
                        elseif ($data instanceof JObject) {
                                $data=  $data->getProperties();
                              }
                        // Handle other types of objects.
                        else {
                                $data=  (array) $data;
                              }
                      }


Clone AbstractionParameter Count: 0Parameter Bindings

// The data must be an object or array.
if (!is_object($data)
    && !is_array($data)) {
  return FALSE;
}
// Convert objects to arrays.
if (is_object($data)) {
  // Handle a JRegistry/JParameter object.
  if ($data instanceof JRegistry) {
    $data=$data->toArray();
  }
  // Handle a JObject.
  elseif ($data instanceof JObject) {
    $data=$data->getProperties();
  }
  // Handle other types of objects.
  else {
    $data= (array) $data;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None