original_string: public function wasSubmitted()
      {
          // If form was not (yet) populated, we can not use isChecked() so do this manually
          $request = $this->getRequest();
          if ($request->isPost() && strlen(trim($request->getPost($this->_submitFieldName)))) {
              return true;
          } else {
              return false;
          }
      }
code: public function wasSubmitted()
      {
          // If form was not (yet) populated, we can not use isChecked() so do this manually
          $request = $this->getRequest();
          if ($request->isPost() && strlen(trim($request->getPost($this->_submitFieldName)))) {
              return true;
          } else {
              return false;
          }
      }
code_tokens: public function wasSubmitted ( ) { // If form was not (yet) populated, we can not use isChecked() so do this manually $ request = $ this -> getRequest ( ) ; if ( $ request -> isPost ( ) && strlen ( trim ( $ request -> getPost ( $ this -> _submitFieldName ) ) ) ) { return true ; } else { return false ; } }
docstring: True when this form was submitted.
  
  @return boolean
docstring_tokens: True when this form was submitted .