original_string: public function precheck_notices($results) {
          $output = html_writer::start_tag('div', array('class' => 'restore-precheck-notices'));
          if (array_key_exists('errors', $results)) {
              foreach ($results['errors'] as $error) {
                  $output .= $this->output->notification($error);
              }
          }
          if (array_key_exists('warnings', $results)) {
              foreach ($results['warnings'] as $warning) {
                  $output .= $this->output->notification($warning, 'notifyproblem');
              }
          }
          return $output.html_writer::end_tag('div');
      }
code: public function precheck_notices($results) {
          $output = html_writer::start_tag('div', array('class' => 'restore-precheck-notices'));
          if (array_key_exists('errors', $results)) {
              foreach ($results['errors'] as $error) {
                  $output .= $this->output->notification($error);
              }
          }
          if (array_key_exists('warnings', $results)) {
              foreach ($results['warnings'] as $warning) {
                  $output .= $this->output->notification($warning, 'notifyproblem');
              }
          }
          return $output.html_writer::end_tag('div');
      }
code_tokens: public function precheck_notices ( $ results ) { $ output = html_writer :: start_tag ( 'div' , array ( 'class' => 'restore-precheck-notices' ) ) ; if ( array_key_exists ( 'errors' , $ results ) ) { foreach ( $ results [ 'errors' ] as $ error ) { $ output .= $ this -> output -> notification ( $ error ) ; } } if ( array_key_exists ( 'warnings' , $ results ) ) { foreach ( $ results [ 'warnings' ] as $ warning ) { $ output .= $ this -> output -> notification ( $ warning , 'notifyproblem' ) ; } } return $ output . html_writer :: end_tag ( 'div' ) ; }
docstring: Displays precheck notices
  
  @param array $results
  @return string
docstring_tokens: Displays precheck notices