Update of Variable Names in WebRTCToken.php
This update involved changing some variable names to ensure code readability and consistency. $maxValidityDurationSeconds was renamed to $maxlifeTimeSec and $validity was changed to $lifeTimeSec.
Modification of method validFor() and expire()
The method validFor() and expire() were redefined to incorporate the new variable names.
Amendment in WebRTCTokenTest.php
The tests in this file were updated to align with the changes made in WebRTCToken.php. The validity check has been altered to verify the new variable lifeTimeSec.
Update of expire() method assertion
Post the changes in 'WebRTCToken.php', the expire() method assertion was also updated to use the new variable name.
PR Summary
Update of Variable Names in WebRTCToken.php This update involved changing some variable names to ensure code readability and consistency.
$maxValidityDurationSeconds
was renamed to$maxlifeTimeSec
and$validity
was changed to$lifeTimeSec
.Modification of method validFor() and expire() The method
validFor()
andexpire()
were redefined to incorporate the new variable names.Amendment in WebRTCTokenTest.php The tests in this file were updated to align with the changes made in
WebRTCToken.php
. The validity check has been altered to verify the new variablelifeTimeSec
.Update of expire() method assertion Post the changes in 'WebRTCToken.php', the
expire()
method assertion was also updated to use the new variable name.