original_string: protected function _debugExpectedFields($expectedFields = [], $missingMessage = '')
      {
          if (count($expectedFields) === 0) {
              return null;
          }
  
          $expectedFieldNames = [];
          foreach ((array)$expectedFields as $key => $expectedField) {
              if (is_int($key)) {
                  $expectedFieldNames[] = $expectedField;
              } else {
                  $expectedFieldNames[] = $key;
              }
          }
  
          return sprintf($missingMessage, implode(', ', $expectedFieldNames));
      }
code: protected function _debugExpectedFields($expectedFields = [], $missingMessage = '')
      {
          if (count($expectedFields) === 0) {
              return null;
          }
  
          $expectedFieldNames = [];
          foreach ((array)$expectedFields as $key => $expectedField) {
              if (is_int($key)) {
                  $expectedFieldNames[] = $expectedField;
              } else {
                  $expectedFieldNames[] = $key;
              }
          }
  
          return sprintf($missingMessage, implode(', ', $expectedFieldNames));
      }
code_tokens: protected function _debugExpectedFields ( $ expectedFields = [ ] , $ missingMessage = '' ) { if ( count ( $ expectedFields ) === 0 ) { return null ; } $ expectedFieldNames = [ ] ; foreach ( ( array ) $ expectedFields as $ key => $ expectedField ) { if ( is_int ( $ key ) ) { $ expectedFieldNames [ ] = $ expectedField ; } else { $ expectedFieldNames [ ] = $ key ; } } return sprintf ( $ missingMessage , implode ( ', ' , $ expectedFieldNames ) ) ; }
docstring: Generate debug message for the expected fields
  
  @param array $expectedFields Expected fields
  @param string $missingMessage Message template
  @return string|null Error message about expected fields
docstring_tokens: Generate debug message for the expected fields