original_string: public function restoreFormSettings()
      {
          if (count($this->settingsStack) < 1) {
              throw new \UnderflowException("No settings on the stack to restore");
          }
  
          $settings = array_pop($this->settingsStack);
  
          $this->style     = $settings['style'];
          $this->colSize   = $settings['colSize'];
          $this->widgetCol = $settings['widgetCol'];
          $this->labelCol  = $settings['labelCol'];
          $this->simpleCol = $settings['simpleCol'];
      }
code: public function restoreFormSettings()
      {
          if (count($this->settingsStack) < 1) {
              throw new \UnderflowException("No settings on the stack to restore");
          }
  
          $settings = array_pop($this->settingsStack);
  
          $this->style     = $settings['style'];
          $this->colSize   = $settings['colSize'];
          $this->widgetCol = $settings['widgetCol'];
          $this->labelCol  = $settings['labelCol'];
          $this->simpleCol = $settings['simpleCol'];
      }
code_tokens: public function restoreFormSettings ( ) { if ( count ( $ this -> settingsStack ) < 1 ) { throw new \ UnderflowException ( "No settings on the stack to restore" ) ; } $ settings = array_pop ( $ this -> settingsStack ) ; $ this -> style = $ settings [ 'style' ] ; $ this -> colSize = $ settings [ 'colSize' ] ; $ this -> widgetCol = $ settings [ 'widgetCol' ] ; $ this -> labelCol = $ settings [ 'labelCol' ] ; $ this -> simpleCol = $ settings [ 'simpleCol' ] ; }
docstring: Restore the form settings from the stack.
  
  @internal Should only be used at the end of form_end.
  @see backupFormSettings
  @throws \UnderflowException
docstring_tokens: Restore the form settings from the stack .