CloneSet689


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7240.984case
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17398
libraries/joomla/user/helper.php
27406
libraries/joomla/user/helper.php
Clone Instance
1
Line Count
7
Source Line
398
Source File
libraries/joomla/user/helper.php

                        case 'crypt-md5' :
                                if ($seed) {
                                        return substr(preg_replace('|^{crypt}|i', '', $seed), 0, 12);
                                      }
                                else   {
                                        return '$1$'
                                               .     substr(md5(mt_rand()), 0, 8)
                                               .                                  '$';
                                      }
                                break;


Clone Instance
2
Line Count
7
Source Line
406
Source File
libraries/joomla/user/helper.php

                        case 'crypt-blowfish' :
                                if ($seed) {
                                        return substr(preg_replace('|^{crypt}|i', '', $seed), 0, 16);
                                      }
                                else   {
                                        return '$2$'
                                               .     substr(md5(mt_rand()), 0, 12)
                                               .                                   '$';
                                      }
                                break;


Clone AbstractionParameter Count: 4Parameter Bindings

case [[#variable24db8680]]:
  if ($seed) {
    return substr(preg_replace('|^{crypt}|i','',$seed),0, [[#variable24db8620]]);
  }
  else {
    return [[#variable24db85c0]]
          . substr(md5(mt_rand()),0, [[#variable24db84e0]])
          . '$';
  }
  break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#24db8680]]
'crypt-blowfish' 
12[[#24db8680]]
'crypt-md5' 
21[[#24db8620]]
16 
22[[#24db8620]]
12 
31[[#24db85c0]]
'$2$' 
32[[#24db85c0]]
'$1$' 
41[[#24db84e0]]
12 
42[[#24db84e0]]
8