| @@ -25,14 +25,14 @@ | ||
| 25 | 25 | * Store except id |
| 26 | 26 | * |
| 27 | 27 | * @var mixed|null |
| 28 | 28 | */ |
| 29 | - private $exceptId; | |
| 29 | + private $except_id; | |
| 30 | 30 | |
| 31 | - public function __construct( string $table, string $column, $exceptId = null ) { | |
| 31 | + public function __construct( string $table, string $column, $except_id = null ) { | |
| 32 | 32 | $this->table = $table; |
| 33 | 33 | $this->column = $column; |
| 34 | - $this->exceptId = $exceptId; | |
| 34 | + $this->except_id = $except_id; | |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * Check the rule passed or not |
| @@ -49,9 +49,9 @@ | ||
| 49 | 49 | if ( ! $existing_user ) { |
| 50 | 50 | return true; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - if ( intval( $existing_user->ID ) === intval( $this->exceptId ) ) { | |
| 53 | + if ( intval( $existing_user->ID ) === intval( $this->except_id ) ) { | |
| 54 | 54 | return true; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | return false; |