Core/Security/Ban/BanLogEntry.php
public function setCode(int $code)
    {
        $allowed_codes = [
            0,
            1,
            2
        ];

        if (!in_array($code, $allowed_codes)) {
            $code = 1;
        }

        $this->code = $code;
    }
public function setCode(int $code)
    {
        $allowed_codes = [
            0,
            1,
            2
        ];

        if (!in_array($code, $allowed_codes)) {
            $code = 1;
        }

        $this->code = $code;
    }
public function setCode ( int $ code ) { $ allowed_codes = [ 0 , 1 , 2 ] ; if ( ! in_array ( $ code , $ allowed_codes ) ) { $ code = 1 ; } $ this -> code = $ code ; }
Sets banlog code

0 = Notice
1 = Banable event
2 = Enty activates ban

@param int $code
Sets banlog code