original_string: public function submission_empty($submission) {
          $allempty = true;
  
          foreach ($this->submissionplugins as $plugin) {
              if ($plugin->is_enabled() && $plugin->is_visible()) {
                  if (!$allempty || !$plugin->is_empty($submission)) {
                      $allempty = false;
                  }
              }
          }
          return $allempty;
      }
code: public function submission_empty($submission) {
          $allempty = true;
  
          foreach ($this->submissionplugins as $plugin) {
              if ($plugin->is_enabled() && $plugin->is_visible()) {
                  if (!$allempty || !$plugin->is_empty($submission)) {
                      $allempty = false;
                  }
              }
          }
          return $allempty;
      }
code_tokens: public function submission_empty ( $ submission ) { $ allempty = true ; foreach ( $ this -> submissionplugins as $ plugin ) { if ( $ plugin -> is_enabled ( ) && $ plugin -> is_visible ( ) ) { if ( ! $ allempty || ! $ plugin -> is_empty ( $ submission ) ) { $ allempty = false ; } } } return $ allempty ; }
docstring: Determine if the current submission is empty or not.
  
  @param submission $submission the students submission record to check.
  @return bool
docstring_tokens: Determine if the current submission is empty or not .