CloneSet642


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.992statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18142
components/com_content/models/categories.php
28163
components/com_content/models/frontpage.php
Clone Instance
1
Line Count
8
Source Line
142
Source File
components/com_content/models/categories.php

                // Filter by published state
                $published=  $this->getState('filter.published');
                if (is_numeric($published)) {
                        $query->where('a.published = '
                                      .                  (int) $published);
                      }
                else if (is_array($published))
                {
                        JArrayHelper::toInteger($published);
                        $query->where('a.published IN ('
                                      .                  $published
                                      .                             ')');
                      }


Clone Instance
2
Line Count
8
Source Line
163
Source File
components/com_content/models/frontpage.php

                // Filter by published state.
                $published=  $this->getState('filter.published');
                if (is_numeric($published)) {
                        $query->where('a.state = '
                                      .              (int) $published);
                      }
                else if (is_array($published))
                {
                        JArrayHelper::toInteger($published);
                        $query->where('a.state IN ('
                                      .              $published
                                      .                         ')');
                      }


Clone AbstractionParameter Count: 2Parameter Bindings

// Filter by published state.
// Filter by published state
$published=$this->getState('filter.published');
if (is_numeric($published)) {
  $query->where( [[#variable22eedf60]]
                . (int) $published);
}
else if (is_array($published)) {
       JArrayHelper::toInteger($published);
       $query->where( [[#variable22eedf20]]
                     . $published
                     . ')');
     }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#22eedf60]]
'a.state = ' 
12[[#22eedf60]]
'a.published = ' 
21[[#22eedf20]]
'a.state IN (' 
22[[#22eedf20]]
'a.published IN ('