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
        );
    }
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
        );
    }
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 ) ; }
Display a result collection in a given format.

@param array            $assocArgs        Associative CLI argument.
@param ResultCollection $resultCollection The checker collection instance.
Display a result collection in a given format .