original_string: protected function _debugCheckFields($dataFields, $expectedFields = [], $intKeyMessage = '', $stringKeyMessage = '', $missingMessage = '')
      {
          $messages = $this->_matchExistingFields($dataFields, $expectedFields, $intKeyMessage, $stringKeyMessage);
          $expectedFieldsMessage = $this->_debugExpectedFields($expectedFields, $missingMessage);
          if ($expectedFieldsMessage !== null) {
              $messages[] = $expectedFieldsMessage;
          }
  
          return $messages;
      }
code: protected function _debugCheckFields($dataFields, $expectedFields = [], $intKeyMessage = '', $stringKeyMessage = '', $missingMessage = '')
      {
          $messages = $this->_matchExistingFields($dataFields, $expectedFields, $intKeyMessage, $stringKeyMessage);
          $expectedFieldsMessage = $this->_debugExpectedFields($expectedFields, $missingMessage);
          if ($expectedFieldsMessage !== null) {
              $messages[] = $expectedFieldsMessage;
          }
  
          return $messages;
      }
code_tokens: protected function _debugCheckFields ( $ dataFields , $ expectedFields = [ ] , $ intKeyMessage = '' , $ stringKeyMessage = '' , $ missingMessage = '' ) { $ messages = $ this -> _matchExistingFields ( $ dataFields , $ expectedFields , $ intKeyMessage , $ stringKeyMessage ) ; $ expectedFieldsMessage = $ this -> _debugExpectedFields ( $ expectedFields , $ missingMessage ) ; if ( $ expectedFieldsMessage !== null ) { $ messages [ ] = $ expectedFieldsMessage ; } return $ messages ; }
docstring: Iterates data array to check against expected
  
  @param array $dataFields Fields array, containing the POST data fields
  @param array $expectedFields Fields array, containing the expected fields we should have in POST
  @param string $intKeyMessage Message string if unexpected found in data fields indexed by int (not protected)
  @param string $stringKeyMessage Message string if tampered found in data fields indexed by string (protected)
  @param string $missingMessage Message string if missing field
  @return array Messages
docstring_tokens: Iterates data array to check against expected