Automattic\WooCommerce\Vendor\Sabberworm\CSS

OutputFormatter::spacepublicWC 1.0

Method of the class: OutputFormatter{}

No Hooks.

Returns

String.

Usage

$OutputFormatter = new OutputFormatter();
$OutputFormatter->space( $sName, $sType );
$sName(string) (required)
.
$sType(string|null)
.
Default: null

OutputFormatter::space() code WC 10.4.3

public function space($sName, $sType = null)
{
    $sSpaceString = $this->oFormat->get("Space$sName");
    // If $sSpaceString is an array, we have multiple values configured
    // depending on the type of object the space applies to
    if (is_array($sSpaceString)) {
        if ($sType !== null && isset($sSpaceString[$sType])) {
            $sSpaceString = $sSpaceString[$sType];
        } else {
            $sSpaceString = reset($sSpaceString);
        }
    }
    return $this->prepareSpace($sSpaceString);
}