original_string: public function checkRecord($marc)
      {
          // Reset warnings:
          $this->warnings = array();
  
          // Fail if we didn't get a valid object:
          if (!is_a($marc, 'File_MARC_Record')) {
              $this->warn('Must pass a File_MARC_Record object to checkRecord');
          } else {
              $this->checkDuplicate1xx($marc);
              $this->checkMissing245($marc);
              $this->standardFieldChecks($marc);
          }
  
          return $this->warnings;
      }
code: public function checkRecord($marc)
      {
          // Reset warnings:
          $this->warnings = array();
  
          // Fail if we didn't get a valid object:
          if (!is_a($marc, 'File_MARC_Record')) {
              $this->warn('Must pass a File_MARC_Record object to checkRecord');
          } else {
              $this->checkDuplicate1xx($marc);
              $this->checkMissing245($marc);
              $this->standardFieldChecks($marc);
          }
  
          return $this->warnings;
      }
code_tokens: public function checkRecord ( $ marc ) { // Reset warnings: $ this -> warnings = array ( ) ; // Fail if we didn't get a valid object: if ( ! is_a ( $ marc , 'File_MARC_Record' ) ) { $ this -> warn ( 'Must pass a File_MARC_Record object to checkRecord' ) ; } else { $ this -> checkDuplicate1xx ( $ marc ) ; $ this -> checkMissing245 ( $ marc ) ; $ this -> standardFieldChecks ( $ marc ) ; } return $ this -> warnings ; }
docstring: Check the provided MARC record and return an array of warning messages.
  
  @param File_MARC_Record $marc Record to check
  
  @return array
docstring_tokens: Check the provided MARC record and return an array of warning messages .