Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
readInput example
}
}
if
(
false ===
$ret
)
{
$isBlocked
=
stream_get_meta_data
(
$inputStream
)
[
'blocked'
]
?? true;
if
(
!
$isBlocked
)
{
stream_set_blocking
(
$inputStream
, true
)
;
}
$ret
=
$this
->
readInput
(
$inputStream
,
$question
)
;
if
(
!
$isBlocked
)
{
stream_set_blocking
(
$inputStream
, false
)
;
}
if
(
false ===
$ret
)
{
throw
new
MissingInputException
(
'Aborted.'
)
;
}
if
(
$question
->
isTrimmable
(
)
)
{
$ret
=
trim
(
$ret
)
;
}
}
}
}
if
(
false ===
$ret
)
{
$isBlocked
=
stream_get_meta_data
(
$inputStream
)
[
'blocked'
]
?? true;
if
(
!
$isBlocked
)
{
stream_set_blocking
(
$inputStream
, true
)
;
}
$ret
=
$this
->
readInput
(
$inputStream
,
$question
)
;
if
(
!
$isBlocked
)
{
stream_set_blocking
(
$inputStream
, false
)
;
}
if
(
false ===
$ret
)
{
throw
new
MissingInputException
(
'Aborted.'
)
;
}
if
(
$question
->
isTrimmable
(
)
)
{
$ret
=
trim
(
$ret
)
;
}
}