public function onBanSelf()
    {
        $rulesToRemove = ['notSubmitterIpHostname'];
        $rules         = (array) array_get($this->rules, 'value', []);

        foreach ($rules as $index => $rule) {
            if (in_array($rule, $rulesToRemove, true)) {
                unset($this->rules['value'][$index]);
            }
        }
    }
public function onBanSelf()
    {
        $rulesToRemove = ['notSubmitterIpHostname'];
        $rules         = (array) array_get($this->rules, 'value', []);

        foreach ($rules as $index => $rule) {
            if (in_array($rule, $rulesToRemove, true)) {
                unset($this->rules['value'][$index]);
            }
        }
    }
public function onBanSelf ( ) { $ rulesToRemove = [ 'notSubmitterIpHostname' ] ; $ rules = ( array ) array_get ( $ this -> rules , 'value' , [ ] ) ; foreach ( $ rules as $ index => $ rule ) { if ( in_array ( $ rule , $ rulesToRemove , true ) ) { unset ( $ this -> rules [ 'value' ] [ $ index ] ) ; } } }
Remove rules which restrict submitter.

@return void
Remove rules which restrict submitter .