| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | View Code Duplication | function commons_radioactivity_flag_flag($flag, $entity_id, $account, $flagging) { |
|
| 14 | if (in_array($flag->name, array('commons_follow_node', 'commons_follow_group'))) { |
||
| 15 | $node = node_load($entity_id); |
||
| 16 | |||
| 17 | // A user following their own node should not increase radioactivity. |
||
| 18 | if ($node->uid != $account->uid) { |
||
| 19 | commons_radioactivity_incident_node($node, COMMONS_RADIOACTIVITY_FLAG_NODE); |
||
| 20 | } |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 39 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.