CloneSet330


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14301.000statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1141147
libraries/joomla/database/table.php
214385
libraries/joomla/database/table/content.php
314798
libraries/joomla/database/tablenested.php
Clone Instance
1
Line Count
14
Source Line
1147
Source File
libraries/joomla/database/table.php

                // Sanitize input.
                JArrayHelper::toInteger($pks);
                $userId=  (int) $userId;
                $state=   (int) $state;

                // If there are no primary keys set check to see if the instance key is set.
                if (empty($pks))
                {
                        if ($this->$k) {
                                $pks=  array($this->$k);
                              }
                        // Nothing to set publishing state on, return false.
                        else {
                                $this->setError(JText::_('No_Rows_Selected'));
                                return FALSE;
                              }
                      }


Clone Instance
2
Line Count
14
Source Line
385
Source File
libraries/joomla/database/table/content.php

                // Sanitize input.
                JArrayHelper::toInteger($pks);
                $userId=  (int) $userId;
                $state=   (int) $state;

                // If there are no primary keys set check to see if the instance key is set.
                if (empty($pks))
                {
                        if ($this->$k) {
                                $pks=  array($this->$k);
                              }
                        // Nothing to set publishing state on, return false.
                        else {
                                $this->setError(JText::_('No_Rows_Selected'));
                                return FALSE;
                              }
                      }


Clone Instance
3
Line Count
14
Source Line
798
Source File
libraries/joomla/database/tablenested.php

                // Sanitize input.
                JArrayHelper::toInteger($pks);
                $userId=  (int) $userId;
                $state=   (int) $state;

                // If there are no primary keys set check to see if the instance key is set.
                if (empty($pks))
                {
                        if ($this->$k) {
                                $pks=  array($this->$k);
                              }
                        // Nothing to set publishing state on, return false.
                        else {
                                $this->setError(JText::_('No_Rows_Selected'));
                                return FALSE;
                              }
                      }


Clone AbstractionParameter Count: 0Parameter Bindings

// Sanitize input.
JArrayHelper::toInteger($pks);
$userId= (int) $userId;
$state= (int) $state;
// If there are no primary keys set check to see if the instance key is set.
if (empty($pks)) {
  if ($this->$k) {
    $pks=array($this->$k);
  }
  // Nothing to set publishing state on, return false.
  else {
    $this->setError(JText::_('No_Rows_Selected'));
    return FALSE;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None