Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
lexInlineQuotedString example
if
(
$isRef
)
{
$this
->refs
[
$isRef
]
=
$data
[
$key
]
;
array_pop
(
$this
->refsBeingParsed
)
;
}
}
elseif
(
'"' ===
$this
->currentLine
[
0
]
|| "'" ===
$this
->currentLine
[
0
]
)
{
if
(
null !==
$context
)
{
throw
new
ParseException
(
'Unable to parse.',
$this
->
getRealCurrentLineNb
(
)
+ 1,
$this
->currentLine,
$this
->filename
)
;
}
try
{
return
Inline::
parse
(
$this
->
lexInlineQuotedString
(
)
,
$flags
,
$this
->refs
)
;
}
catch
(
ParseException
$e
)
{
$e
->
setParsedLine
(
$this
->
getRealCurrentLineNb
(
)
+ 1
)
;
$e
->
setSnippet
(
$this
->currentLine
)
;
throw
$e
;
}
}
elseif
(
'{' ===
$this
->currentLine
[
0
]
)
{
if
(
null !==
$context
)
{
throw
new
ParseException
(
'Unable to parse.',
$this
->
getRealCurrentLineNb
(
)
+ 1,
$this
->currentLine,
$this
->filename
)
;
}
if
(
$isRef
)
{
$this
->refs
[
$isRef
]
=
$data
[
$key
]
;
array_pop
(
$this
->refsBeingParsed
)
;
}
}
elseif
(
'"' ===
$this
->currentLine
[
0
]
|| "'" ===
$this
->currentLine
[
0
]
)
{
if
(
null !==
$context
)
{
throw
new
ParseException
(
'Unable to parse.',
$this
->
getRealCurrentLineNb
(
)
+ 1,
$this
->currentLine,
$this
->filename
)
;
}
try
{
return
Inline::
parse
(
$this
->
lexInlineQuotedString
(
)
,
$flags
,
$this
->refs
)
;
}
catch
(
ParseException
$e
)
{
$e
->
setParsedLine
(
$this
->
getRealCurrentLineNb
(
)
+ 1
)
;
$e
->
setSnippet
(
$this
->currentLine
)
;
throw
$e
;
}
}
elseif
(
'{' ===
$this
->currentLine
[
0
]
)
{
if
(
null !==
$context
)
{
throw
new
ParseException
(
'Unable to parse.',
$this
->
getRealCurrentLineNb
(
)
+ 1,
$this
->currentLine,
$this
->filename
)
;
}