Skip to content

Commit d627ca2

Browse files
committed
Remove string interpolation.
1 parent f34f3ad commit d627ca2

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

web/skins/classic/views/onvifprobe.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,10 @@ function probeProfiles($device_ep, $soapversion, $username, $password) {
238238

239239
$detprofiles = probeProfiles($monitor['Host'], $monitor['SOAP'], $_REQUEST['Username'], $_REQUEST['Password']);
240240
foreach ($detprofiles as $profile) {
241-
$monitor = $camera['monitor'];
241+
$monitor = $camera['monitor'];
242242

243-
if (PHP_VERSION_ID >= 80200) { // strings ${xxx} are depreated, use {$xxx} instead
244-
eval(<<<'PHP'
245-
$sourceString = "{$profile['Name']} : {$profile['Encoding']}" .
246-
" ({$profile['Width']}x{$profile['Height']} @ {$profile['MaxFPS']}fps {$profile['Transport']})";
247-
PHP);
248-
} else {
249-
eval(<<<'PHP'
250-
$sourceString = "${profile['Name']} : ${profile['Encoding']}" .
251-
" (${profile['Width']}x${profile['Height']} @ ${profile['MaxFPS']}fps ${profile['Transport']})";
252-
PHP);
253-
}
243+
$sourceString = $profile['Name'] . ' : ' . $profile['Encoding'] .
244+
' (' . $profile['Width'] . 'x' . $profile['Height'] . ' @ ' . $profile['MaxFPS'] . 'fps ' . $profile['Transport'] . ')';
254245

255246
// copy technical details
256247
$monitor['Width'] = $profile['Width'];

0 commit comments

Comments
 (0)