CloneSet626


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6201.000if_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1699
components/com_content/models/article.php
26154
components/com_content/models/frontpage.php
Clone Instance
1
Line Count
6
Source Line
99
Source File
components/com_content/models/article.php

                                // Filter by access level.
                                if ($access=  $this->getState('filter.access'))
                                {
                                        $user=    &JFactory::getUser();
                                        $groups=  implode(',', $user->authorisedLevels());
                                        $query->where('a.access IN ('
                                                      .               $groups
                                                      .                       ')');
                                        $query->where('(c.access IS NULL OR c.access IN ('
                                                      .                                    $groups
                                                      .                                            '))');
                                      }


Clone Instance
2
Line Count
6
Source Line
154
Source File
components/com_content/models/frontpage.php

                // Filter by access level.
                if ($access=  $this->getState('filter.access'))
                {
                        $user=    &JFactory::getUser();
                        $groups=  implode(',', $user->authorisedLevels());
                        $query->where('a.access IN ('
                                      .               $groups
                                      .                       ')');
                        $query->where('(c.access IS NULL OR c.access IN ('
                                      .                                    $groups
                                      .                                            '))');
                      }


Clone AbstractionParameter Count: 0Parameter Bindings

// Filter by access level.
if ($access=$this->getState('filter.access')) {
  $user= &JFactory::getUser();
  $groups=implode(',',$user->authorisedLevels());
  $query->where('a.access IN ('
                . $groups
                . ')');
  $query->where('(c.access IS NULL OR c.access IN ('
                . $groups
                . '))');
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None