original_string: protected function isSubmitComplete() {
      if (!isset($_POST['submit'])) {
        return false;
      }
      foreach ($this->getInputParameters() as $parameter) {
        if ($parameter['required'] &&
            empty($_POST[$parameter['name']])) {
          return false;
        }
      }
      return true;
    }
code: protected function isSubmitComplete() {
      if (!isset($_POST['submit'])) {
        return false;
      }
      foreach ($this->getInputParameters() as $parameter) {
        if ($parameter['required'] &&
            empty($_POST[$parameter['name']])) {
          return false;
        }
      }
      return true;
    }
code_tokens: protected function isSubmitComplete ( ) { if ( ! isset ( $ _POST [ 'submit' ] ) ) { return false ; } foreach ( $ this -> getInputParameters ( ) as $ parameter ) { if ( $ parameter [ 'required' ] && empty ( $ _POST [ $ parameter [ 'name' ] ] ) ) { return false ; } } return true ; }
docstring: Checks if the form has been submitted and all required parameters are
  set.
  @return bool
docstring_tokens: Checks if the form has been submitted and all required parameters are set .