Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CSSList/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function createShorthands()
}

/**
* Override render() to make format argument optional
* Override `render()` to make format argument optional
*
* @param OutputFormat|null $oOutputFormat
*
Expand Down
2 changes: 0 additions & 2 deletions src/CSSList/KeyFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ public function __toString()
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/Property/CSSNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ public function getLineNo()
return $this->iLineNo;
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
2 changes: 0 additions & 2 deletions src/Property/Charset.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ public function __toString()
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/Property/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ public function getLocation()
return $this->oLocation;
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/Renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ interface Renderable
public function __toString();

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat);

/**
* @return int
*/
public function getLineNo();
}
5 changes: 3 additions & 2 deletions src/RuleSet/AtRuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ public function atRuleArgs()
return $this->sArgs;
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/RuleSet/RuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,15 @@ public function removeRule($mRule)
}
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/Value/CSSFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ public function getArguments()
return $this->aComponents;
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/Value/CSSString.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ public function getString()
return $this->sString;
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
2 changes: 0 additions & 2 deletions src/Value/CalcRuleValueList.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ public function __construct($iLineNo = 0)
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/Value/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,15 @@ public function getColorDescription()
return $this->getName();
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/Value/LineName.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ public static function parse(ParserState $oParserState)
return new LineName($aNames, $oParserState->currentLine());
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/Value/Size.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,15 @@ public function isRelative()
return false;
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/Value/URL.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@ public function getURL()
return $this->oURL;
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down
5 changes: 3 additions & 2 deletions src/Value/ValueList.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ public function setListSeparator($sSeparator)
$this->sSeparator = $sSeparator;
}

/**
* @return string
*/
public function __toString()
{
return $this->render(new OutputFormat());
}

/**
* @param OutputFormat $oOutputFormat
*
* @return string
*/
public function render(OutputFormat $oOutputFormat)
Expand Down