CloneSet899


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8201.000switch_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1820
administrator/modules/mod_latest/mod_latest.php
2843
modules/mod_latestnews/helper.php
Clone Instance
1
Line Count
8
Source Line
20
Source File
administrator/modules/mod_latest/mod_latest.php

// User Filter
switch ($params->get('user_id')) {

        case 'by_me':
                $where.=  ' AND (created_by = '
                          .                       (int) $userId
                          .                                       ' OR modified_by = '
                          .                                                              (int) $userId
                          .                                                                              ')';
                break;
        case 'not_me':
                $where.=  ' AND (created_by <> '
                          .                        (int) $userId
                          .                                        ' AND modified_by <> '
                          .                                                                 (int) $userId
                          .                                                                                 ')';
                break;
      }


Clone Instance
2
Line Count
8
Source Line
43
Source File
modules/mod_latestnews/helper.php

                // User Filter
                switch ($params->get('user_id')) {

                        case 'by_me':
                                $where.=  ' AND (created_by = '
                                          .                       (int) $userId
                                          .                                       ' OR modified_by = '
                                          .                                                              (int) $userId
                                          .                                                                              ')';
                                break;
                        case 'not_me':
                                $where.=  ' AND (created_by <> '
                                          .                        (int) $userId
                                          .                                        ' AND modified_by <> '
                                          .                                                                 (int) $userId
                                          .                                                                                 ')';
                                break;
                      }


Clone AbstractionParameter Count: 0Parameter Bindings

// User Filter
switch ($params->get('user_id')) {
  case 'by_me':
    $where.=' AND (created_by = '
            . (int) $userId
            . ' OR modified_by = '
            . (int) $userId
            . ')';
    break;
  case 'not_me':
    $where.=' AND (created_by <> '
            . (int) $userId
            . ' AND modified_by <> '
            . (int) $userId
            . ')';
    break;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None