| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | View Code Duplication | function commons_radioactivity_flag_unflag($flag, $entity_id, $account, $flagging) { |
|
| 30 | if (in_array($flag->name, array('commons_follow_node', 'commons_follow_group'))) { |
||
| 31 | $node = node_load($entity_id); |
||
| 32 | |||
| 33 | // A user unfollowing their own node should not decrease radioactivity. |
||
| 34 | if ($node->uid != $account->uid) { |
||
| 35 | commons_radioactivity_incident_node($node, -1 * COMMONS_RADIOACTIVITY_FLAG_NODE); |
||
| 36 | } |
||
| 37 | } |
||
| 38 | } |
||
| 39 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.