original_string: protected function display($key, array $data)
      {
          if ($pluck = $this->option('pluck')) {
  
              if ( ! array_has($data, $pluck)) {
                  $this->warn("Nothing to pluck for '{$pluck}'.");
                  return;
              }
  
              $data = array_get($data, $pluck);
          }
  
          $this->comment($key);
          
          if ($this->option('keys') && is_array($data)) {
              $data = array_keys($data);
          }
  
          $this->getDumper()->dump($data);
  
          $this->info('');
      }
code: protected function display($key, array $data)
      {
          if ($pluck = $this->option('pluck')) {
  
              if ( ! array_has($data, $pluck)) {
                  $this->warn("Nothing to pluck for '{$pluck}'.");
                  return;
              }
  
              $data = array_get($data, $pluck);
          }
  
          $this->comment($key);
          
          if ($this->option('keys') && is_array($data)) {
              $data = array_keys($data);
          }
  
          $this->getDumper()->dump($data);
  
          $this->info('');
      }
code_tokens: protected function display ( $ key , array $ data ) { if ( $ pluck = $ this -> option ( 'pluck' ) ) { if ( ! array_has ( $ data , $ pluck ) ) { $ this -> warn ( "Nothing to pluck for '{$pluck}'." ) ; return ; } $ data = array_get ( $ data , $ pluck ) ; } $ this -> comment ( $ key ) ; if ( $ this -> option ( 'keys' ) && is_array ( $ data ) ) { $ data = array_keys ( $ data ) ; } $ this -> getDumper ( ) -> dump ( $ data ) ; $ this -> info ( '' ) ; }
docstring: Displays data in the console for a single information array.
  
  @param string $key   model key or class for display only
  @param array  $data
docstring_tokens: Displays data in the console for a single information array .