Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 3 | 0.973 | class_member_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 85 | libraries/joomla/installer/installer.php |
2 | 20 | 30 | libraries/joomla/updater/updater.php |
| ||||
/** * Constructor * * @access protected */ public function __construct() { parent:: __construct(dirname( __FILE__),'JInstaller'); } /** * Returns a reference to the global Installer object, only creating it * if it doesn't already exist. * * @static * @return object An installer object * @since 1.5 */ public static function &getInstance() { static $instance; if (! isset ($instance)) { $instance= new JInstaller(); } return $instance; } |
| ||||
/** * Constructor */ public function __construct() { // adapter base path, class prefix parent:: __construct(dirname( __FILE__),'JUpdater'); } /** * Returns a reference to the global Installer object, only creating it * if it doesn't already exist. * * @static * @return object An installer object */ public function &getInstance() { static $instance; if (! isset ($instance)) { $instance= new JUpdater(); } return $instance; } |
| |||
/** * Constructor * * @access protected */ /** * Constructor */ public function __construct() { // adapter base path, class prefix parent:: __construct(dirname( __FILE__), [[#variable460714e0]]); } [[#variable46071460]] function &getInstance() { static $instance; if (! isset ($instance)) { $instance=new [[#variable460713c0]](); } return $instance; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#460714e0]] | 'JInstaller' |
1 | 2 | [[#460714e0]] | 'JUpdater' |
2 | 1 | [[#46071460]] | /** * Returns a reference to the global Installer object, only creating it * if it doesn't already exist. * * @static * @return object An installer object * @since 1.5 */ public static |
2 | 2 | [[#46071460]] | /** * Returns a reference to the global Installer object, only creating it * if it doesn't already exist. * * @static * @return object An installer object */ public |
3 | 1 | [[#460713c0]] | JInstaller |
3 | 2 | [[#460713c0]] | JUpdater |