Core/Security/Ban/BanCheck.php
public function getBanActiveTimestamp(): int
    {
        $this->db->qb([
            'table' => 'core_bans',
            'fields' => 'logstamp',
            'filter' => 'ip=:ip AND code=0',
            'params' => [
                ':ip' => $this->ip
            ],
            'order' => 'logstamp DESC',
            'limit' => 1
        ]);

        $data = $this->db->value();

        return $data ? $data : 0;
    }
public function getBanActiveTimestamp(): int
    {
        $this->db->qb([
            'table' => 'core_bans',
            'fields' => 'logstamp',
            'filter' => 'ip=:ip AND code=0',
            'params' => [
                ':ip' => $this->ip
            ],
            'order' => 'logstamp DESC',
            'limit' => 1
        ]);

        $data = $this->db->value();

        return $data ? $data : 0;
    }
public function getBanActiveTimestamp ( ) : int { $ this -> db -> qb ( [ 'table' => 'core_bans' , 'fields' => 'logstamp' , 'filter' => 'ip=:ip AND code=0' , 'params' => [ ':ip' => $ this -> ip ] , 'order' => 'logstamp DESC' , 'limit' => 1 ] ) ; $ data = $ this -> db -> value ( ) ; return $ data ? $ data : 0 ; }
Returns the timestamp from log when ban got active for this ip

@return int
Returns the timestamp from log when ban got active for this ip