original_string: public function user_delete($id): int
    {
      if ( property_exists($this, 'user') && $this->check() ){
        return $this->db->delete('bbn_observers', ['id' => $id, 'id_user' => $this->user]);
      }
      return 0;
    }
code: public function user_delete($id): int
    {
      if ( property_exists($this, 'user') && $this->check() ){
        return $this->db->delete('bbn_observers', ['id' => $id, 'id_user' => $this->user]);
      }
      return 0;
    }
code_tokens: public function user_delete ( $ id ) : int { if ( property_exists ( $ this , 'user' ) && $ this -> check ( ) ) { return $ this -> db -> delete ( 'bbn_observers' , [ 'id' => $ id , 'id_user' => $ this -> user ] ) ; } return 0 ; }
docstring: Deletes the given observer for the current user
  @param string $id
  @return int
docstring_tokens: Deletes the given observer for the current user