Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
12 | public function isBlacklisted( array $review ) |
||
13 | { |
||
14 | $target = implode( "\n", array_filter([ |
||
15 | $review['name'], |
||
16 | $review['content'], |
||
17 | $review['email'], |
||
18 | $review['ip_address'], |
||
19 | $review['title'], |
||
20 | ])); |
||
21 | return (bool) apply_filters( 'site-reviews/blacklist/is-blacklisted', |
||
22 | $this->check( $target ), |
||
23 | $review |
||
24 | ); |
||
49 |