Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getAlwaysWrapBlocks example
public
function
setFormatter
(
Formatter\Base
$formatter
)
{
$this
->formatter =
$formatter
;
$this
->renderOpts =
(object)
array
(
"nl" =>
$this
->formatter->
getNewLine
(
)
,
"ind" =>
$this
->formatter->
getIndentation
(
)
,
"nlbc" =>
$this
->formatter->
getNewLineBeforeCurlyBracket
(
)
,
"sao" =>
$this
->formatter->
getSpacesAroundOperator
(
)
? " " : "",
"sirb" =>
$this
->formatter->
getSpacesInsideRoundBrackets
(
)
? " " : "",
"awb" =>
$this
->formatter->
getAlwaysWrapBlocks
(
)
,
"com" =>
$this
->formatter->
getRenderComments
(
)
,
"rci" =>
$this
->formatter->
getRecalcCommentsIndent
(
)
)
;
return
$this
;
}
/** * Returns the formatter to use for the rendering * * @return Formatter\Base */