original_string: public function set(string $id, array $cfg): bool
    {
      if (
        \bbn\str::is_uid($id) &&
        ($id_menu = $this->get_id_menu($id)) &&
        $this->pref->update_bit($id, $cfg)
      ){
        $this->delete_cache($id_menu);
        return true;
      }
      return false;
    }
code: public function set(string $id, array $cfg): bool
    {
      if (
        \bbn\str::is_uid($id) &&
        ($id_menu = $this->get_id_menu($id)) &&
        $this->pref->update_bit($id, $cfg)
      ){
        $this->delete_cache($id_menu);
        return true;
      }
      return false;
    }
code_tokens: public function set ( string $ id , array $ cfg ) : bool { if ( \ bbn \ str :: is_uid ( $ id ) && ( $ id_menu = $ this -> get_id_menu ( $ id ) ) && $ this -> pref -> update_bit ( $ id , $ cfg ) ) { $ this -> delete_cache ( $ id_menu ) ; return true ; } return false ; }
docstring: Updates a menu item and deletes the menu cache
  
  @param string $id
  @param array $cfg
  @return bool
docstring_tokens: Updates a menu item and deletes the menu cache