Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 6 | 0.952 | toplevel_statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 23 | 28 | plugins/authentication/openid/Auth/OpenID.php |
2 | 22 | 20 | plugins/authentication/openid/Auth/Yadis/Yadis.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'); |
| ||||
/** * The core PHP Yadis implementation. * * PHP versions 4 and 5 * * LICENSE: See the COPYING file included in this distribution. * * @package OpenID * @author JanRain, Inc. <[email protected]> * @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'); |
| |||
/** * The core PHP Yadis implementation. * * PHP versions 4 and 5 * * LICENSE: See the COPYING file included in this distribution. * * @package OpenID * @author JanRain, Inc. <[email protected]> * @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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#515f7d00]] | "Auth/Yadis/ParseHTML.php" |
1 | 2 | [[#515f7d00]] | "Auth/OpenID/BigMath.php" |
2 | 1 | [[#515f7c60]] | "Auth/Yadis/XRDS.php" |
2 | 2 | [[#515f7c60]] | "Auth/OpenID/URINorm.php" |
3 | 1 | [[#515f7c00]] | "Auth_Yadis_CONTENT_TYPE" |
3 | 2 | [[#515f7c00]] | "Auth_OpenID_LOCAL_ERROR" |
4 | 1 | [[#515f7b60]] | 'application/xrds+xml' |
4 | 2 | [[#515f7b60]] | 'local_error' |
5 | 1 | [[#515f7ae0]] | "Auth_Yadis_HEADER_NAME" |
5 | 2 | [[#515f7ae0]] | "Auth_OpenID_REMOTE_ERROR" |
6 | 1 | [[#523a2740]] | 'X-XRDS-Location' |
6 | 2 | [[#523a2740]] | 'remote_error' |