CloneSet174


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12320.976for_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11256
administrator/components/com_installer/models/templates.php
21273
administrator/components/com_installer/models/templates.php
31292
administrator/components/com_installer/models/templates.php
Clone Instance
1
Line Count
12
Source Line
56
Source File
administrator/components/com_installer/models/templates.php

                        for ($i=0; $i<  count($templateDirs); $i ++) {
                                $template=  new stdClass();
                                $template->folder = $templateDirs[$i];
                                $template->client = 0;
                                $template->baseDir = JPATH_SITE
                                                     .          DS
                                                     .             'templates';
                                if ($this->_state->get('filter.string')) {
                                        if (strpos($template->folder ,$this->_state->get('filter.string')) !== FALSE) {
                                                $templates[]=  $template;
                                              }
                                      }
                                else   {
                                        $templates[]=  $template;
                                      }
                              }


Clone Instance
2
Line Count
12
Source Line
73
Source File
administrator/components/com_installer/models/templates.php

                        for ($i=0; $i<  count($templateDirs); $i ++) {
                                $template=  new stdClass();
                                $template->folder = $templateDirs[$i];
                                $template->client = 1;
                                $template->baseDir = JPATH_ADMINISTRATOR
                                                     .                   DS
                                                     .                      'templates';
                                if ($this->_state->get('filter.string')) {
                                        if (strpos($template->folder ,$this->_state->get('filter.string')) !== FALSE) {
                                                $templates[]=  $template;
                                              }
                                      }
                                else   {
                                        $templates[]=  $template;
                                      }
                              }


Clone Instance
3
Line Count
12
Source Line
92
Source File
administrator/components/com_installer/models/templates.php

                        for ($i=0; $i<  count($templateDirs); $i ++) {
                                $template=  new stdClass();
                                $template->folder = $templateDirs[$i];
                                $template->client = $clientInfo->id;
                                $template->baseDir = $clientInfo->path
                                                     .                 DS
                                                     .                    'templates';
                                if ($this->_state->get('filter.string')) {
                                        if (strpos($template->folder ,$this->_state->get('filter.string')) !== FALSE) {
                                                $templates[]=  $template;
                                              }
                                      }
                                else   {
                                        $templates[]=  $template;
                                      }
                              }


Clone AbstractionParameter Count: 2Parameter Bindings

for ($i=0; $i<count($templateDirs); $i ++) {
  $template=new stdClass();
  $template->folder =$templateDirs[$i];
  $template->client = [[#variable55a5f160]];
  $template->baseDir = [[#variable550735c0]]
                      . DS
                      . 'templates';
  if ($this->_state->get('filter.string')) {
    if (strpos($template->folder ,$this->_state->get('filter.string')) !== FALSE) {
      $templates[]=$template;
    }
  }
  else {
    $templates[]=$template;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#55a5f160]]
0 
12[[#55a5f160]]
$clientInfo->id 
13[[#55a5f160]]
1 
21[[#550735c0]]
JPATH_SITE 
22[[#550735c0]]
$clientInfo->path 
23[[#550735c0]]
JPATH_ADMINISTRATOR