CloneSet784


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4540.955statement_block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11046
plugins/authentication/example.php
2458
plugins/authentication/example.php
3441
plugins/authentication/joomla.php
4446
plugins/authentication/ldap.php
5479
plugins/authentication/openid.php
Clone Instance
1
Line Count
10
Source Line
46
Source File
plugins/authentication/example.php

                {
                        $response->status =                       JAUTHENTICATE_STATUS_SUCCESS;
                        $response->error_message =        '';
                        // You may also define other variables:
                        /*
                        $yourUser                                       = YourClass::getUser($credentials);
                        $response->email                        = $yourUser->email;
                        $response->fullname                     = $yourUser->name;
                        */
                        return TRUE;
                      }


Clone Instance
2
Line Count
4
Source Line
58
Source File
plugins/authentication/example.php

                {
                        $response->status =                       JAUTHENTICATE_STATUS_FAILURE;
                        $response->error_message =        'Could not authenticate';
                        return FALSE;
                      }


Clone Instance
3
Line Count
4
Source Line
41
Source File
plugins/authentication/joomla.php

                {
                        $response->status = JAUTHENTICATE_STATUS_FAILURE;
                        $response->error_message = 'Empty password not allowed';
                        return FALSE;
                      }


Clone Instance
4
Line Count
4
Source Line
46
Source File
plugins/authentication/ldap.php

                {
                        $response->status = JAUTHENTICATE_STATUS_FAILURE;
                        $response->error_message = 'LDAP can not have blank password';
                        return FALSE;
                      }


Clone Instance
5
Line Count
4
Source Line
79
Source File
plugins/authentication/openid.php

                                                                                         {
                                $response->type = JAUTHENTICATE_STATUS_FAILURE;
                                $response->error_message = 'Authentication error : could not connect to the openid server';
                                return FALSE;
                              }


Clone AbstractionParameter Count: 4Parameter Bindings

{
  $response-> [[#variable21f93500]]= [[#variable21f93460]];
  $response->error_message = [[#variable21f933c0]];
  // You may also define other variables:
  /*
                          $yourUser                                       = YourClass::getUser($credentials);
                          $response->email                        = $yourUser->email;
                          $response->fullname                     = $yourUser->name;
                          */
  return [[#variable21f93320]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#21f93500]]
status 
12[[#21f93500]]
status 
13[[#21f93500]]
status 
14[[#21f93500]]
type 
15[[#21f93500]]
status 
21[[#21f93460]]
JAUTHENTICATE_STATUS_FAILURE 
22[[#21f93460]]
JAUTHENTICATE_STATUS_FAILURE 
23[[#21f93460]]
JAUTHENTICATE_STATUS_FAILURE 
24[[#21f93460]]
JAUTHENTICATE_STATUS_FAILURE 
25[[#21f93460]]
JAUTHENTICATE_STATUS_SUCCESS 
31[[#21f933c0]]
'Could not authenticate' 
32[[#21f933c0]]
'Empty password not allowed' 
33[[#21f933c0]]
'LDAP can not have blank password' 
34[[#21f933c0]]
'Authentication error : could not connect to the openid server' 
35[[#21f933c0]]
'' 
41[[#21f93320]]
FALSE 
42[[#21f93320]]
FALSE 
43[[#21f93320]]
FALSE 
44[[#21f93320]]
FALSE 
45[[#21f93320]]
TRUE