Leafo\ScssPhp\Formatter\Nested
Nested formatter
- Author: Leaf Corcoran <leafot@gmail.com>
Synopsis
class Nested
extends Formatter
{
- // members
- private $depth;
- // Inherited members from Formatter
- public $indentLevel;
- public $indentChar;
- public $break;
- public $open;
- public $close;
- public $tagSeparator;
- public $assignSeparator;
- public boolea $keepSemicolons;
- // methods
- public void __construct()
- protected void indentStr()
- protected void blockLines()
- protected void blockSelectors()
- protected void blockChildren()
- protected void block()
- private void adjustAllChildren()
- // Inherited methods from Formatter
- public abstract void __construct()
- protected string indentStr()
- public string property()
- public void stripSemicolon()
- protected void blockLines()
- protected void blockSelectors()
- protected void blockChildren()
- protected void block()
- public string format()
Hierarchy
Extends
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
49 | ShortVariable | Avoid variables with short names like $n. Configured minimum length is 3. |
155 - 197 | CyclomaticComplexity | The method adjustAllChildren() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. |
176 | ShortVariable | Avoid variables with short names like $j. Configured minimum length is 3. |
Members
private
- $depth — integer
public
- $assignSeparator — string
- $break — string
- $close — string
- $indentChar — string
- $indentLevel — integer
- $keepSemicolons — Leafo\ScssPhp\boolea
- $open — string
- $tagSeparator — string
Methods
private
- adjustAllChildren() — Adjust the depths of all children, depth first
protected
- block() — {@inheritdoc}
- blockChildren() — {@inheritdoc}
- blockLines() — {@inheritdoc}
- blockSelectors() — {@inheritdoc}
- indentStr() — {@inheritdoc}
Inherited from Leafo\ScssPhp\Formatter
protected
- block() — Output non-empty block
- blockChildren() — Output block children
- blockLines() — Output lines inside a block
- blockSelectors() — Output block selectors
- indentStr() — Return indentation (whitespace)
public
- format() — Entry point to formatting a block
- property() — Return property assignment
- stripSemicolon() — Strip semi-colon appended by property(); it's a separator, not a terminator
History
-
2017-05-18T21:45:34+00:00 (commit #62babba)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Pre 3.0.0
-
2017-05-17T09:50:09+00:00 (commit #bcd6e9c)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2
-
2017-05-16T19:52:59+00:00 (commit #fd0a296)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2 applied
-
2016-01-25T17:45:50+00:00 (commit #97e2af2)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Pre v.3.0
-
2015-04-02T12:09:45+00:00 (commit #80007ff)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Added advertizing. Added SCSS processor.