original_string: public function block($id_chat): bool
    {
      if ( $this->is_admin($id_chat) ){
        return (bool)$this->db->update('bbn_chats', ['blocked' => 1], ['id' => $id_chat]);
      }
      return false;
    }
code: public function block($id_chat): bool
    {
      if ( $this->is_admin($id_chat) ){
        return (bool)$this->db->update('bbn_chats', ['blocked' => 1], ['id' => $id_chat]);
      }
      return false;
    }
code_tokens: public function block ( $ id_chat ) : bool { if ( $ this -> is_admin ( $ id_chat ) ) { return ( bool ) $ this -> db -> update ( 'bbn_chats' , [ 'blocked' => 1 ] , [ 'id' => $ id_chat ] ) ; } return false ; }
docstring: Close a chat by setting blocked to 1.
  
  @param $id_chat
  @return bool
docstring_tokens: Close a chat by setting blocked to 1 .