original_string: protected function update()
    {
      $this->cfg = [];
      foreach ( $this as $key => $var ){
        if ( $key !== 'cfg' && !\is_null($var) ){
          if ( \is_array($var) ){
            foreach ( $var as $k => $v ){
              if ( !isset($this->cfg[$key]) ){
                $this->cfg[$key] = [];
              }
              if ( !\is_null($v) ){
                $this->cfg[$key][$k] = $v;
              }
            }
          }
          else{
            $this->cfg[$key] = $var;
          }
        }
      }
      return $this;
    }
code: protected function update()
    {
      $this->cfg = [];
      foreach ( $this as $key => $var ){
        if ( $key !== 'cfg' && !\is_null($var) ){
          if ( \is_array($var) ){
            foreach ( $var as $k => $v ){
              if ( !isset($this->cfg[$key]) ){
                $this->cfg[$key] = [];
              }
              if ( !\is_null($v) ){
                $this->cfg[$key][$k] = $v;
              }
            }
          }
          else{
            $this->cfg[$key] = $var;
          }
        }
      }
      return $this;
    }
code_tokens: protected function update ( ) { $ this -> cfg = [ ] ; foreach ( $ this as $ key => $ var ) { if ( $ key !== 'cfg' && ! \ is_null ( $ var ) ) { if ( \ is_array ( $ var ) ) { foreach ( $ var as $ k => $ v ) { if ( ! isset ( $ this -> cfg [ $ key ] ) ) { $ this -> cfg [ $ key ] = [ ] ; } if ( ! \ is_null ( $ v ) ) { $ this -> cfg [ $ key ] [ $ k ] = $ v ; } } } else { $ this -> cfg [ $ key ] = $ var ; } } } return $ this ; }
docstring: Sets the configuration property according to the current configuration
  
  @return bbn\html\element
docstring_tokens: Sets the configuration property according to the current configuration