| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function updateNotificationRecipients(&$list, &$comment) |
||
| 33 | { |
||
| 34 | //default is notification is on regardless of spam status |
||
| 35 | $list = $this->owner->Authors(); |
||
| 36 | |||
| 37 | // If comment is spam and notification are set to not send on spam clear the recipient list |
||
| 38 | if (Config::inst()->get(__CLASS__, 'notification_on_spam') == false && $comment->IsSpam) { |
||
| 39 | $list = []; |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.