original_string: private function checkRequired(array $options, array $keys)
      {
          $missing = array_keys(array_diff_key(array_flip($keys), $options));
  
          if (!empty($missing)) {
              throw CommandException::missingOptions($missing);
          }
      }
code: private function checkRequired(array $options, array $keys)
      {
          $missing = array_keys(array_diff_key(array_flip($keys), $options));
  
          if (!empty($missing)) {
              throw CommandException::missingOptions($missing);
          }
      }
code_tokens: private function checkRequired ( array $ options , array $ keys ) { $ missing = array_keys ( array_diff_key ( array_flip ( $ keys ) , $ options ) ) ; if ( ! empty ( $ missing ) ) { throw CommandException :: missingOptions ( $ missing ) ; } }
docstring: Check that the given options contain all required keys.
  
  @param array $options
  @param array $keys
  
  @return void
  
  @throws CommandException
  If any required options are missing.
docstring_tokens: Check that the given options contain all required keys .