src/Salts.php
public function traditional(): string
    {
        $salts = $this->wordPressSalts();

        return array_reduce(array_keys($salts), function ($saltsString, $key) use ($salts) {
            $saltsString .= "define('$key', '$salts[$key]');" . PHP_EOL;

            return $saltsString;
        }, '');
    }
public function traditional(): string
    {
        $salts = $this->wordPressSalts();

        return array_reduce(array_keys($salts), function ($saltsString, $key) use ($salts) {
            $saltsString .= "define('$key', '$salts[$key]');" . PHP_EOL;

            return $saltsString;
        }, '');
    }
public function traditional ( ) : string { $ salts = $ this -> wordPressSalts ( ) ; return array_reduce ( array_keys ( $ salts ) , function ( $ saltsString , $ key ) use ( $ salts ) { $ saltsString .= "define('$key', '$salts[$key]');" . PHP_EOL ; return $ saltsString ; } , '' ) ; }
Gets an array of WordPress salts and then reduces them to a string for
output to the CLI. Returns them in the traditional WordPress define
format used in wp-config.php files.

@return string
Gets an array of WordPress salts and then reduces them to a string for output to the CLI . Returns them in the traditional WordPress define format used in wp - config . php files .