public function cat(): void
    {
        $paths = $this->getConfigPaths();

        foreach ($paths as $path) {
            WP_CLI::line(
                WP_CLI::colorize("%B====> Printing $path%n")
            );

            // phpcs:ignore WordPressVIPMinimum.VIP.FetchingRemoteData.fileGetContentsUknown
            $contents = file_get_contents($path);

            $contentsWithoutLineBreaks = str_replace(["\r", "\n"], '', $contents);
            if (empty($contentsWithoutLineBreaks)) {
                WP_CLI::error_multi_line([
                    "File '$path' is empty.",
                ]);
            }

            WP_CLI::line($contents);
            // Print a empty line for better UX.
            WP_CLI::line('');
        }
    }
public function cat(): void
    {
        $paths = $this->getConfigPaths();

        foreach ($paths as $path) {
            WP_CLI::line(
                WP_CLI::colorize("%B====> Printing $path%n")
            );

            // phpcs:ignore WordPressVIPMinimum.VIP.FetchingRemoteData.fileGetContentsUknown
            $contents = file_get_contents($path);

            $contentsWithoutLineBreaks = str_replace(["\r", "\n"], '', $contents);
            if (empty($contentsWithoutLineBreaks)) {
                WP_CLI::error_multi_line([
                    "File '$path' is empty.",
                ]);
            }

            WP_CLI::line($contents);
            // Print a empty line for better UX.
            WP_CLI::line('');
        }
    }
public function cat ( ) : void { $ paths = $ this -> getConfigPaths ( ) ; foreach ( $ paths as $ path ) { WP_CLI :: line ( WP_CLI :: colorize ( "%B====> Printing $path%n" ) ) ; // phpcs:ignore WordPressVIPMinimum.VIP.FetchingRemoteData.fileGetContentsUknown $ contents = file_get_contents ( $ path ) ; $ contentsWithoutLineBreaks = str_replace ( [ "\r" , "\n" ] , '' , $ contents ) ; if ( empty ( $ contentsWithoutLineBreaks ) ) { WP_CLI :: error_multi_line ( [ "File '$path' is empty." , ] ) ; } WP_CLI :: line ( $ contents ) ; // Print a empty line for better UX. WP_CLI :: line ( '' ) ; } }
Prints the content of all config files.

## EXAMPLES

# Print the content of all config files
$ wp preflight config cat
Prints the content of all config files .