| @@ -2,9 +2,8 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Anti-spam controller |
| 4 | 4 | * |
| 5 | 5 | * @package Formidable |
| 6 | - * | |
| 7 | 6 | * @since 6.21 |
| 8 | 7 | */ |
| 9 | 8 | |
| 10 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -28,14 +27,13 @@ | ||
| 28 | 27 | 'is_wp_comment_spam', |
| 29 | 28 | ); |
| 30 | 29 | |
| 31 | 30 | foreach ( $methods as $method ) { |
| 32 | - if ( ! is_callable( array( self::class, $method ) ) ) { | |
| 31 | + if ( ! is_callable( array( __CLASS__, $method ) ) ) { | |
| 33 | 32 | continue; |
| 34 | 33 | } |
| 35 | 34 | |
| 36 | - $is_spam = call_user_func( array( self::class, $method ), $values ); | |
| 37 | - | |
| 35 | + $is_spam = call_user_func( array( __CLASS__, $method ), $values ); | |
| 38 | 36 | if ( $is_spam ) { |
| 39 | 37 | return $is_spam; |
| 40 | 38 | } |
| 41 | 39 | } |
| @@ -103,9 +101,8 @@ | ||
| 103 | 101 | /** |
| 104 | 102 | * Extracts email addresses from values. |
| 105 | 103 | * |
| 106 | 104 | * @param array $values Values to check. |
| 107 | - * | |
| 108 | 105 | * @return string[] |
| 109 | 106 | */ |
| 110 | 107 | public static function extract_emails_from_values( $values ) { |
| 111 | 108 | $values = FrmAppHelper::maybe_json_encode( $values ); |