final class FormattingOptions (View source)

Properties

string $lineEnding
string $indentation

Methods

__construct(string $type = PHP_SAPI === 'cli' ? 'cli' : 'text', string|null $lineEnding = null, string|null $indentation = null, bool $removeComments = false, bool $clauseNewline = true, array $formats = [])

No description

static array
getDefaultFormats()

The styles used for HTML formatting.

Details

__construct(string $type = PHP_SAPI === 'cli' ? 'cli' : 'text', string|null $lineEnding = null, string|null $indentation = null, bool $removeComments = false, bool $clauseNewline = true, array $formats = [])

No description

Parameters

string $type
string|null $lineEnding
string|null $indentation
bool $removeComments
bool $clauseNewline
array $formats

static array getDefaultFormats()

The styles used for HTML formatting.

Return Value

array