Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setStatesFromCallInfo example
if
(
!
$kintstance
)
{
return
0;
}
if
(
\
in_array
(
'-',
$call_info
[
'modifiers'
]
, true
)
)
{
while
(
\
ob_get_level
(
)
)
{
\
ob_end_clean
(
)
;
}
}
$kintstance
->
setStatesFromStatics
(
$statics
)
;
$kintstance
->
setStatesFromCallInfo
(
$call_info
)
;
$trimmed_trace
=
[
]
;
$trace
= \
debug_backtrace
(
)
;
foreach
(
$trace
as
$frame
)
{
if
(
Utils::
traceFrameIsListed
(
$frame
,
static
::
$aliases
)
)
{
$trimmed_trace
=
[
]
;
}
$trimmed_trace
[
]
=
$frame
;
}