original_string: public function new_submission_empty($data) {
          foreach ($this->submissionplugins as $plugin) {
              if ($plugin->is_enabled() && $plugin->is_visible() && $plugin->allow_submissions() &&
                      !$plugin->submission_is_empty($data)) {
                  return false;
              }
          }
          return true;
      }
code: public function new_submission_empty($data) {
          foreach ($this->submissionplugins as $plugin) {
              if ($plugin->is_enabled() && $plugin->is_visible() && $plugin->allow_submissions() &&
                      !$plugin->submission_is_empty($data)) {
                  return false;
              }
          }
          return true;
      }
code_tokens: public function new_submission_empty ( $ data ) { foreach ( $ this -> submissionplugins as $ plugin ) { if ( $ plugin -> is_enabled ( ) && $ plugin -> is_visible ( ) && $ plugin -> allow_submissions ( ) && ! $ plugin -> submission_is_empty ( $ data ) ) { return false ; } } return true ; }
docstring: Determine if a new submission is empty or not
  
  @param stdClass $data Submission data
  @return bool
docstring_tokens: Determine if a new submission is empty or not