original_string: public function make_admin(string $id_chat, string $id_user): bool
    {
      if ( $this->is_admin($id_chat) ){
        return (bool)$this->db->update_ignore('bbn_chats_users', [
          'admin' => 1
        ], [
          'id_chat' => $id_chat,
          'id_user' => $id_user,
        ]);
      }
      return false;
    }
code: public function make_admin(string $id_chat, string $id_user): bool
    {
      if ( $this->is_admin($id_chat) ){
        return (bool)$this->db->update_ignore('bbn_chats_users', [
          'admin' => 1
        ], [
          'id_chat' => $id_chat,
          'id_user' => $id_user,
        ]);
      }
      return false;
    }
code_tokens: public function make_admin ( string $ id_chat , string $ id_user ) : bool { if ( $ this -> is_admin ( $ id_chat ) ) { return ( bool ) $ this -> db -> update_ignore ( 'bbn_chats_users' , [ 'admin' => 1 ] , [ 'id_chat' => $ id_chat , 'id_user' => $ id_user , ] ) ; } return false ; }
docstring: Makes the given participant an admin of the given chat provided the current user is admin of this chat.
  
  @param string $id_chat
  @param string $id_user
  @return bool
docstring_tokens: Makes the given participant an admin of the given chat provided the current user is admin of this chat .