CloneSet178


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15440.989statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115132
administrator/components/com_categories/models/categories.php
215127
administrator/components/com_content/models/articles.php
31563
administrator/components/com_content/models/featured.php
415131
administrator/components/com_weblinks/models/weblinks.php
Clone Instance
1
Line Count
15
Source Line
132
Source File
administrator/components/com_categories/models/categories.php

                // Filter by access level.
                if ($access=  $this->getState('filter.access')) {
                        $query->where('a.access = '
                                      .               (int) $access);
                      }
                // Filter by published state
                $published=  $this->getState('filter.published');
                if (is_numeric($published)) {
                        $query->where('a.published = '
                                      .                  (int) $published);
                      }
                else if ($published === '') {
                        $query->where('(a.published IN (0, 1))');
                      }
                // Filter by search in title
                $search=  $this->getState('filter.search');


Clone Instance
2
Line Count
15
Source Line
127
Source File
administrator/components/com_content/models/articles.php

                // Filter by access level.
                if ($access=  $this->getState('filter.access')) {
                        $query->where('a.access = '
                                      .               (int) $access);
                      }
                // Filter by published state
                $published=  $this->getState('filter.published');
                if (is_numeric($published)) {
                        $query->where('a.state = '
                                      .              (int) $published);
                      }
                else if ($published === '') {
                        $query->where('(a.state = 0 OR a.state = 1)');
                      }
                // Filter by category.
                $categoryId=  $this->getState('filter.category_id');


Clone Instance
3
Line Count
15
Source Line
63
Source File
administrator/components/com_content/models/featured.php

                // Filter by access level.
                if ($access=  $this->getState('filter.access')) {
                        $query->where('a.access = '
                                      .               (int) $access);
                      }
                // Filter by published state
                $published=  $this->getState('filter.published');
                if (is_numeric($published)) {
                        $query->where('a.state = '
                                      .              (int) $published);
                      }
                else if ($published === '') {
                        $query->where('(a.state = 0 OR a.state = 1)');
                      }
                // Filter by search in title
                $search=  $this->getState('filter.search');


Clone Instance
4
Line Count
15
Source Line
131
Source File
administrator/components/com_weblinks/models/weblinks.php

                // Filter on the access level.
                if ($access=  $this->getState('filter.access')) {
                        $query->where('a.access = '
                                      .             (int) $access);
                      }
                // Filter on the published state.
                $published=  $this->getState('filter.published');
                if (is_numeric($published)) {
                        $query->where('a.state = '
                                      .            (int) $published);
                      }
                else if ($published === '') {
                        $query->where('(a.state IN (0, 1))');
                      }
                // Filter by category
                $categoryId=  $this->getState('filter.category_id');


Clone AbstractionParameter Count: 4Parameter Bindings

// Filter on the access level.
// Filter by access level.
if ($access=$this->getState('filter.access')) {
  $query->where('a.access = '
                . (int) $access);
}
// Filter on the published state.
// Filter by published state
$published=$this->getState('filter.published');
if (is_numeric($published)) {
  $query->where( [[#variable4c7ff0e0]]
                . (int) $published);
}
else if ($published === '') {
       $query->where( [[#variable4cf0a820]]);
     }
 [[#variable4c7ff140]]=$this->getState( [[#variable51f5ae60]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4c7ff0e0]]
'a.state = ' 
12[[#4c7ff0e0]]
'a.state = ' 
13[[#4c7ff0e0]]
'a.state = ' 
14[[#4c7ff0e0]]
'a.published = ' 
21[[#4cf0a820]]
'(a.state IN (0, 1))' 
22[[#4cf0a820]]
'(a.state = 0 OR a.state = 1)' 
23[[#4cf0a820]]
'(a.state = 0 OR a.state = 1)' 
24[[#4cf0a820]]
'(a.published IN (0, 1))' 
31[[#4c7ff140]]
// Filter by category
$categoryId 
32[[#4c7ff140]]
// Filter by search in title
$search 
33[[#4c7ff140]]
// Filter by category.
$categoryId 
34[[#4c7ff140]]
// Filter by search in title
$search 
41[[#51f5ae60]]
'filter.category_id' 
42[[#51f5ae60]]
'filter.search' 
43[[#51f5ae60]]
'filter.category_id' 
44[[#51f5ae60]]
'filter.search'