CloneSet256


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21201.000statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123510
administrator/components/com_content/models/article.php
221603
administrator/components/com_menus/models/item.php
Clone Instance
1
Line Count
23
Source Line
510
Source File
administrator/components/com_content/models/article.php

                // $value comes as {menutype}.{parent_id}
                $parts=           explode('.', $value);
                $menuType=        $parts[0];
                $parentId=        (int) JArrayHelper::getValue($parts, 1, 0);

                $table=   &$this->getTable();
                $db=              &$this->getDbo();

                // Check that the parent exists
                if ($parentId)
                {
                        if (!$table->load($parentId))
                        {
                                if ($error=  $table->getError())
                                {
                                        // Fatal error
                                        $this->setError($error);
                                        return FALSE;
                                      }
                                else
                                {
                                        // Non-fatal error
                                        $this->setError(JText::_('Menus_Batch_Move_parent_not_found'));
                                        $parentId=  0;
                                      }
                              }
                      }


Clone Instance
2
Line Count
21
Source Line
603
Source File
administrator/components/com_menus/models/item.php

                // $value comes as {menutype}.{parent_id}
                $parts=           explode('.', $value);
                $menuType=        $parts[0];
                $parentId=        (int) JArrayHelper::getValue($parts, 1, 0);

                $table=   &$this->getTable();
                $db=              &$this->getDbo();

                // Check that the parent exists.
                if ($parentId)
                {
                        if (!$table->load($parentId))
                        {
                                if ($error=  $table->getError()) {
                                        // Fatal error
                                        $this->setError($error);
                                        return FALSE;
                                      }
                                else {
                                        // Non-fatal error
                                        $this->setError(JText::_('Menus_Batch_Move_parent_not_found'));
                                        $parentId=  0;
                                      }
                              }
                      }


Clone AbstractionParameter Count: 0Parameter Bindings

// $value comes as {menutype}.{parent_id}
$parts=explode('.',$value);
$menuType=$parts[0];
$parentId= (int) JArrayHelper::getValue($parts,1,0);
$table= &$this->getTable();
$db= &$this->getDbo();
// Check that the parent exists.
// Check that the parent exists
if ($parentId) {
  if (!$table->load($parentId)) {
    if ($error=$table->getError()) {
      // Fatal error
      $this->setError($error);
      return FALSE;
    }
    else {
      // Non-fatal error
      $this->setError(JText::_('Menus_Batch_Move_parent_not_found'));
      $parentId=0;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None