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