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

@param array             $assocArgs         Associative CLI argument.
@param CheckerCollection $checkerCollection The checker collection instance.
Display a checker collection in a given format .