original_string: public static function display(array $assocArgs, CheckerCollection $checkerCollection): void
      {
          // TODO: Use null coalescing assignment operator.
          $assocArgs['fields'] = $assocArgs['fields'] ?? self::DEFAULT_FIELDS;
          $formatter = new Formatter($assocArgs, $assocArgs['fields']);
  
          $items = (in_array($formatter->format, ['ids', 'count'], true))
              ? self::pluckIds($checkerCollection)
              : self::toArray($checkerCollection);
  
          $formatter->display_items($items);
      }
code: public static function display(array $assocArgs, CheckerCollection $checkerCollection): void
      {
          // TODO: Use null coalescing assignment operator.
          $assocArgs['fields'] = $assocArgs['fields'] ?? self::DEFAULT_FIELDS;
          $formatter = new Formatter($assocArgs, $assocArgs['fields']);
  
          $items = (in_array($formatter->format, ['ids', 'count'], true))
              ? self::pluckIds($checkerCollection)
              : self::toArray($checkerCollection);
  
          $formatter->display_items($items);
      }
code_tokens: public static function display ( array $ assocArgs , CheckerCollection $ checkerCollection ) : void { // TODO: Use null coalescing assignment operator. $ assocArgs [ 'fields' ] = $ assocArgs [ 'fields' ] ?? self :: DEFAULT_FIELDS ; $ formatter = new Formatter ( $ assocArgs , $ assocArgs [ 'fields' ] ) ; $ items = ( in_array ( $ formatter -> format , [ 'ids' , 'count' ] , true ) ) ? self :: pluckIds ( $ checkerCollection ) : self :: toArray ( $ checkerCollection ) ; $ formatter -> display_items ( $ items ) ; }
docstring: Display a checker collection in a given format.
  
  @param array             $assocArgs         Associative CLI argument.
  @param CheckerCollection $checkerCollection The checker collection instance.
docstring_tokens: Display a checker collection in a given format .