CloneSet249


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000foreach_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111492
libraries/joomla/installer/adapters/plugin.php
211507
libraries/joomla/installer/adapters/plugin.php
Clone Instance
1
Line Count
11
Source Line
492
Source File
libraries/joomla/installer/adapters/plugin.php

                        foreach ($file_list as $file) {
                                $file=  JFile::stripExt($file);
                                if ($file == 'example') continue; // ignore example plugins
                                $extension=  &JTable::getInstance('extension');
                                $extension->set('type', 'plugin');
                                $extension->set('client_id', 0);
                                $extension->set('element', $file);
                                $extension->set('folder', $folder);
                                $extension->set('name', $file);
                                $extension->set('state', -1);
                                $results[]=  $extension;
                              }


Clone Instance
2
Line Count
11
Source Line
507
Source File
libraries/joomla/installer/adapters/plugin.php

                                foreach ($file_list as $file) {
                                        $file=  JFile::stripExt($file);
                                        if ($file == 'example') continue; // ignore example plugins
                                        $extension=  &JTable::getInstance('extension');
                                        $extension->set('type', 'plugin');
                                        $extension->set('client_id', 0);
                                        $extension->set('element', $file);
                                        $extension->set('folder', $folder);
                                        $extension->set('name', $file);
                                        $extension->set('state', -1);
                                        $results[]=  $extension;
                                      }


Clone AbstractionParameter Count: 0Parameter Bindings

foreach ($file_list as $file) {
  $file=JFile::stripExt($file);
  if ($file == 'example')
    continue; // ignore example plugins
  $extension= &JTable::getInstance('extension');
  $extension->set('type','plugin');
  $extension->set('client_id',0);
  $extension->set('element',$file);
  $extension->set('folder',$folder);
  $extension->set('name',$file);
  $extension->set('state',-1);
  $results[]=$extension;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None