catalog(); $problems = ShortformCheck::problems($catalog); if ($problems !== []) { WP_CLI::error("Short form does not match the catalog:\n" . implode("\n", $problems)); } WP_CLI::success(sprintf( '%d short-form modules match the catalog of %d modules (%.0f ms).', count(ShortformMap::types()), count($catalog->names()), (microtime(true) - $started) * 1000 ));