CloneSet124


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
35220.982statement_sequence[14]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
136295
libraries/joomla/installer/adapters/module.php
235269
libraries/joomla/installer/adapters/plugin.php
Clone Instance
1
Line Count
36
Source Line
295
Source File
libraries/joomla/installer/adapters/module.php

                if ($utfresult === FALSE) {
                        // Install failed, rollback changes
                        $this->parent->abort(JText::_('Module')
                                             .                  ' '
                                             .                      JText::_($this->route)
                                             .                                             ': '
                                             .                                                  JText::_('SQLERRORORFILE')
                                             .                                                                             " "
                                             .                                                                                 $db->stderr(TRUE));
                        return FALSE;
                      }
                // Start Joomla! 1.6
                ob_start();
                ob_implicit_flush(FALSE);
                if ($this->parent->manifestClass
                    &&                              method_exists($this->parent->manifestClass ,$this->route)) $this->parent->manifestClass->{$this->route }($this);
                $msg.=  ob_get_contents(); // append messages
                ob_end_clean();
                /**
                 * ---------------------------------------------------------------------------------------------
                 * Finalization and Cleanup Section
                 * ---------------------------------------------------------------------------------------------
                 */
                // Lastly, we will copy the manifest file to its appropriate place.
                if (!$this->parent->copyManifest(-1)) {
                        // Install failed, rollback changes
                        $this->parent->abort(JText::_('Module')
                                             .                  ' '
                                             .                      JText::_($this->route)
                                             .                                             ': '
                                             .                                                  JText::_('Could not copy setup file'));
                        return FALSE;
                      }
                // And now we run the postflight
                ob_start();
                ob_implicit_flush(FALSE);
                if ($this->parent->manifestClass
                    &&                              method_exists($this->parent->manifestClass ,'postflight')) $this->parent->manifestClass->postflight($this->route ,$this);
                $msg.=  ob_get_contents(); // append messages
                ob_end_clean();
                if ($msg != '') {
                        $this->parent->set('extension_message', $msg);
                      }
                return $row->get('extension_id');


Clone Instance
2
Line Count
35
Source Line
269
Source File
libraries/joomla/installer/adapters/plugin.php

                if ($utfresult === FALSE) {
                        // Install failed, rollback changes
                        $this->parent->abort(JText::_('Module')
                                             .                  ' '
                                             .                      JText::_($this->route)
                                             .                                             ': '
                                             .                                                  JText::_('SQLERRORORFILE')
                                             .                                                                             " "
                                             .                                                                                 $db->stderr(TRUE));
                        return FALSE;
                      }
                // Start Joomla! 1.6
                ob_start();
                ob_implicit_flush(FALSE);
                if ($this->parent->manifestClass
                    &&                              method_exists($this->parent->manifestClass ,$this->route)) $this->parent->manifestClass->{$this->route }($this);
                $msg.=  ob_get_contents(); // append messages
                ob_end_clean();
                /**
                 * ---------------------------------------------------------------------------------------------
                 * Finalization and Cleanup Section
                 * ---------------------------------------------------------------------------------------------
                 */
                // Lastly, we will copy the manifest file to its appropriate place.
                if (!$this->parent->copyManifest(-1)) {
                        // Install failed, rollback changes
                        $this->parent->abort(JText::_('Plugin')
                                             .                  ' '
                                             .                      JText::_($this->route)
                                             .                                             ': '
                                             .                                                  JText::_('Could not copy setup file'));
                        return FALSE;
                      }
                // And now we run the postflight
                ob_start();
                ob_implicit_flush(FALSE);
                if ($this->parent->manifestClass
                    &&                              method_exists($this->parent->manifestClass ,'postflight')) $this->parent->manifestClass->postflight($this->route ,$this);
                $msg.=  ob_get_contents(); // append messages
                ob_end_clean();
                if ($msg != '') {
                        $this->parent->set('extension_message', $msg);
                      }
                return $id;


Clone AbstractionParameter Count: 2Parameter Bindings

if ($utfresult === FALSE) {
  // Install failed, rollback changes
  $this->parent->abort(JText::_('Module')
                       . ' '
                       . JText::_($this->route)
                       . ': '
                       . JText::_('SQLERRORORFILE')
                       . " "
                       . $db->stderr(TRUE));
  return FALSE;
}
// Start Joomla! 1.6
ob_start();
ob_implicit_flush(FALSE);
if ($this->parent->manifestClass
    && method_exists($this->parent->manifestClass ,$this->route))
  $this->parent->manifestClass->{ $this->route }($this);
$msg.=ob_get_contents(); // append messages
ob_end_clean();
/**
                 * ---------------------------------------------------------------------------------------------
                 * Finalization and Cleanup Section
                 * ---------------------------------------------------------------------------------------------
                 */
// Lastly, we will copy the manifest file to its appropriate place.
if (!$this->parent->copyManifest(-1)) {
  // Install failed, rollback changes
  $this->parent->abort(JText::_( [[#variable22c10540]])
                       . ' '
                       . JText::_($this->route)
                       . ': '
                       . JText::_('Could not copy setup file'));
  return FALSE;
}
// And now we run the postflight
ob_start();
ob_implicit_flush(FALSE);
if ($this->parent->manifestClass
    && method_exists($this->parent->manifestClass ,'postflight'))
  $this->parent->manifestClass->postflight($this->route ,$this);
$msg.=ob_get_contents(); // append messages
ob_end_clean();
if ($msg != '') {
  $this->parent->set('extension_message',$msg);
}
return [[#variable3c63a440]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#22c10540]]
'Plugin' 
12[[#22c10540]]
'Module' 
21[[#3c63a440]]
$id 
22[[#3c63a440]]
$row->get('extension_id')