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