Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
ScssPhp\ScssPhp\Formatter\Crunched Class Reference

Crunched formatter. More...

Inheritance diagram for ScssPhp\ScssPhp\Formatter\Crunched:
ScssPhp\ScssPhp\Formatter

Public Member Functions

 __construct ()
 {Initialize formatter.@api}
 
 blockLines (OutputBlock $block)
 {Output lines inside a block.
Parameters
ScssPhp\ScssPhp\Formatter\OutputBlock$block
Return values
void
}
 
 customProperty ($name, $value)
 Return custom property assignment differs in that you have to keep spaces in the value as is.
 
 format (OutputBlock $block, SourceMapGenerator $sourceMapGenerator=null)
 Entry point to formatting a block.
 
 property ($name, $value)
 Return property assignment.
 

Public Attributes

string $assignSeparator
 
string $break
 
string $close
 
string $indentChar
 
int $indentLevel
 
bool $keepSemicolons
 
string $open
 
string $tagSeparator
 

Protected Member Functions

 block (OutputBlock $block)
 Output non-empty block.
 
 blockChildren (OutputBlock $block)
 Output block children.
 
 blockSelectors (OutputBlock $block)
 Output block selectors.
 
 indentStr ()
 Return indentation (whitespace)
 
 testEmptyChildren ($block)
 Test and clean safely empty children.
 
 write ($str)
 Output content.
 

Protected Attributes

ScssPhp ScssPhp Formatter OutputBlock $currentBlock
 
int $currentColumn
 
int $currentLine
 
ScssPhp ScssPhp SourceMap SourceMapGenerator null $sourceMapGenerator
 
string $strippedSemicolon
 

Detailed Description

Crunched formatter.

Author
Anthon Pang antho.nosp@m.n.pa.nosp@m.ng@gm.nosp@m.ail..nosp@m.com
Deprecated
since 1.4.0. Use the Compressed formatter instead.

Constructor & Destructor Documentation

◆ __construct()

ScssPhp\ScssPhp\Formatter\Crunched::__construct ( )

{Initialize formatter.@api}

Reimplemented from ScssPhp\ScssPhp\Formatter.

Member Function Documentation

◆ block()

ScssPhp\ScssPhp\Formatter::block ( OutputBlock $block)
protectedinherited

Output non-empty block.

Parameters
ScssPhp\ScssPhp\Formatter\OutputBlock$block
Return values
void

Reimplemented in ScssPhp\ScssPhp\Formatter\Debug, and ScssPhp\ScssPhp\Formatter\Nested.

◆ blockChildren()

ScssPhp\ScssPhp\Formatter::blockChildren ( OutputBlock $block)
protectedinherited

Output block children.

Parameters
ScssPhp\ScssPhp\Formatter\OutputBlock$block
Return values
void

Reimplemented in ScssPhp\ScssPhp\Formatter\Debug.

◆ blockLines()

ScssPhp\ScssPhp\Formatter\Crunched::blockLines ( OutputBlock $block)

{Output lines inside a block.

Parameters
ScssPhp\ScssPhp\Formatter\OutputBlock$block
Return values
void
}

Reimplemented from ScssPhp\ScssPhp\Formatter.

◆ blockSelectors()

ScssPhp\ScssPhp\Formatter\Crunched::blockSelectors ( OutputBlock $block)
protected

Output block selectors.

Parameters
ScssPhp\ScssPhp\Formatter\OutputBlock$block

Reimplemented from ScssPhp\ScssPhp\Formatter.

◆ customProperty()

ScssPhp\ScssPhp\Formatter::customProperty ( $name,
$value )
inherited

Return custom property assignment differs in that you have to keep spaces in the value as is.

@api

Parameters
string$name
mixed$value
Return values
string

◆ format()

ScssPhp\ScssPhp\Formatter::format ( OutputBlock $block,
SourceMapGenerator $sourceMapGenerator = null )
inherited

Entry point to formatting a block.

@api

Parameters
ScssPhp\ScssPhp\Formatter\OutputBlock$blockAn abstract syntax tree
ScssPhp\ScssPhp\SourceMap\SourceMapGenerator | null$sourceMapGeneratorOptional source map generator
Return values
string

◆ indentStr()

ScssPhp\ScssPhp\Formatter::indentStr ( )
protectedinherited

◆ property()

ScssPhp\ScssPhp\Formatter::property ( $name,
$value )
inherited

Return property assignment.

@api

Parameters
string$name
mixed$value
Return values
string

◆ testEmptyChildren()

ScssPhp\ScssPhp\Formatter::testEmptyChildren ( $block)
protectedinherited

Test and clean safely empty children.

Parameters
ScssPhp\ScssPhp\Formatter\OutputBlock$block
Return values
bool

◆ write()

ScssPhp\ScssPhp\Formatter::write ( $str)
protectedinherited

Output content.

Parameters
string$str
Return values
void

The documentation for this class was generated from the following file: