Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 3 | 0.979 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 106 | plugins/authentication/openid/Auth/OpenID/MemcachedStore.php |
2 | 8 | 134 | plugins/authentication/openid/Auth/OpenID/MemcachedStore.php |
| ||||
// get list of associations $serverAssociations= $this->connection->get($serverKey); // return null if failed or got empty list if (!$serverAssociations) { return NULL; } // get key of most recently issued association $keys= array_keys($serverAssociations); |
| ||||
// get list of associations $serverAssociations= $this->connection->get($serverKey); // return null if failed or got empty list if (!$serverAssociations) { return FALSE; } // ensure that given association key exists in list $serverAssociations= array_flip($serverAssociations); |
| |||
// get list of associations $serverAssociations=$this->connection->get($serverKey); // return null if failed or got empty list if (!$serverAssociations) { return [[#variable20a60660]]; } [[#variable20a605e0]]= [[#variable20a605c0]]($serverAssociations); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#20a60660]] | FALSE |
1 | 2 | [[#20a60660]] | NULL |
2 | 1 | [[#20a605e0]] | // ensure that given association key exists in list $serverAssociations |
2 | 2 | [[#20a605e0]] | // get key of most recently issued association $keys |
3 | 1 | [[#20a605c0]] | array_flip |
3 | 2 | [[#20a605c0]] | array_keys |