CloneSet1687


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4210.981class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1460
plugins/authentication/openid/Auth/OpenID/PAPE.php
24187
plugins/authentication/openid/Auth/OpenID/PAPE.php
Clone Instance
1
Line Count
4
Source Line
60
Source File
plugins/authentication/openid/Auth/OpenID/PAPE.php

    /**
     * Add an acceptable authentication policy URI to this request
     *
     * This method is intended to be used by the relying party to add
     * acceptable authentication types to the request.
     *
     * policy_uri: The identifier for the preferred type of
     * authentication.
     */
    function addPolicyURI($policy_uri) {

        if (!in_array($policy_uri, $this->preferred_auth_policies)) {
            $this->preferred_auth_policies[]=  $policy_uri;
          }
      }


Clone Instance
2
Line Count
4
Source Line
187
Source File
plugins/authentication/openid/Auth/OpenID/PAPE.php

    /**
     * Add a authentication policy to this response
     *
     * This method is intended to be used by the provider to add a
     * policy that the provider conformed to when authenticating the
     * user.
     *
     * @param policy_uri: The identifier for the preferred type of
     * authentication.
     */
    function addPolicyURI($policy_uri) {

        if (!in_array($policy_uri, $this->auth_policies)) {
            $this->auth_policies[]=  $policy_uri;
          }
      }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Add a authentication policy to this response
     *
     * This method is intended to be used by the provider to add a
     * policy that the provider conformed to when authenticating the
     * user.
     *
     * @param policy_uri: The identifier for the preferred type of
     * authentication.
     */
/**
     * Add an acceptable authentication policy URI to this request
     *
     * This method is intended to be used by the relying party to add
     * acceptable authentication types to the request.
     *
     * policy_uri: The identifier for the preferred type of
     * authentication.
     */
function addPolicyURI($policy_uri) {
  if (!in_array($policy_uri,$this-> [[#variable3f751cc0]])) {
    $this-> [[#variable3f751cc0]][]=$policy_uri;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3f751cc0]]
auth_policies 
12[[#3f751cc0]]
preferred_auth_policies