CloneSet1474


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22260.952toplevel_statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12328
plugins/authentication/openid/Auth/OpenID.php
22220
plugins/authentication/openid/Auth/Yadis/Yadis.php
Clone Instance
1
Line Count
23
Source Line
28
Source File
plugins/authentication/openid/Auth/OpenID.php

/**
 * Require the fetcher code.
 */
require_once "Auth/Yadis/PlainHTTPFetcher.php";
require_once "Auth/Yadis/ParanoidHTTPFetcher.php";
require_once "Auth/OpenID/BigMath.php";
require_once "Auth/OpenID/URINorm.php";

/**
 * Status code returned by the server when the only option is to show
 * an error page, since we do not have enough information to redirect
 * back to the consumer. The associated value is an error message that
 * should be displayed on an HTML error page.
 *
 * @see Auth_OpenID_Server
 */
define( "Auth_OpenID_LOCAL_ERROR" ,'local_error');

/**
 * Status code returned when there is an error to return in key-value
 * form to the consumer. The caller should return a 400 Bad Request
 * response with content-type text/plain and the value as the body.
 *
 * @see Auth_OpenID_Server
 */
define( "Auth_OpenID_REMOTE_ERROR" ,'remote_error');


Clone Instance
2
Line Count
22
Source Line
20
Source File
plugins/authentication/openid/Auth/Yadis/Yadis.php

/**
 * The core PHP Yadis implementation.
 *
 * PHP versions 4 and 5
 *
 * LICENSE: See the COPYING file included in this distribution.
 *
 * @package OpenID
 * @author JanRain, Inc. <openid@janrain.com>
 * @copyright 2005-2008 Janrain, Inc.
 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache
 */

/**
 * Need both fetcher types so we can use the right one based on the
 * presence or absence of CURL.
 */
require_once "Auth/Yadis/PlainHTTPFetcher.php";
require_once "Auth/Yadis/ParanoidHTTPFetcher.php";

/**
 * Need this for parsing HTML (looking for META tags).
 */
require_once "Auth/Yadis/ParseHTML.php";

/**
 * Need this to parse the XRDS document during Yadis discovery.
 */
require_once "Auth/Yadis/XRDS.php";

/**
 * XRDS (yadis) content type
 */
define( "Auth_Yadis_CONTENT_TYPE" ,'application/xrds+xml');

/**
 * Yadis header
 */
define( "Auth_Yadis_HEADER_NAME" ,'X-XRDS-Location');


Clone AbstractionParameter Count: 6Parameter Bindings

/**
 * The core PHP Yadis implementation.
 *
 * PHP versions 4 and 5
 *
 * LICENSE: See the COPYING file included in this distribution.
 *
 * @package OpenID
 * @author JanRain, Inc. <openid@janrain.com>
 * @copyright 2005-2008 Janrain, Inc.
 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache
 */
/**
 * Need both fetcher types so we can use the right one based on the
 * presence or absence of CURL.
 */
/**
 * Require the fetcher code.
 */
require_once "Auth/Yadis/PlainHTTPFetcher.php";
require_once "Auth/Yadis/ParanoidHTTPFetcher.php";
/**
 * Need this for parsing HTML (looking for META tags).
 */
require_once [[#variable515f7d00]];
/**
 * Need this to parse the XRDS document during Yadis discovery.
 */
require_once [[#variable515f7c60]];
/**
 * XRDS (yadis) content type
 */
/**
 * Status code returned by the server when the only option is to show
 * an error page, since we do not have enough information to redirect
 * back to the consumer. The associated value is an error message that
 * should be displayed on an HTML error page.
 *
 * @see Auth_OpenID_Server
 */
define( [[#variable515f7c00]], [[#variable515f7b60]]);
/**
 * Yadis header
 */
/**
 * Status code returned when there is an error to return in key-value
 * form to the consumer. The caller should return a 400 Bad Request
 * response with content-type text/plain and the value as the body.
 *
 * @see Auth_OpenID_Server
 */
define( [[#variable515f7ae0]], [[#variable523a2740]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#515f7d00]]
"Auth/Yadis/ParseHTML.php" 
12[[#515f7d00]]
"Auth/OpenID/BigMath.php" 
21[[#515f7c60]]
"Auth/Yadis/XRDS.php" 
22[[#515f7c60]]
"Auth/OpenID/URINorm.php" 
31[[#515f7c00]]
"Auth_Yadis_CONTENT_TYPE" 
32[[#515f7c00]]
"Auth_OpenID_LOCAL_ERROR" 
41[[#515f7b60]]
'application/xrds+xml' 
42[[#515f7b60]]
'local_error' 
51[[#515f7ae0]]
"Auth_Yadis_HEADER_NAME" 
52[[#515f7ae0]]
"Auth_OpenID_REMOTE_ERROR" 
61[[#523a2740]]
'X-XRDS-Location' 
62[[#523a2740]]
'remote_error'