mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-27 01:50:29 +00:00
Make helper methods strToHex and hexToStr in ContentProxyTest.php private
to prevent misusage (from outside this class)
This commit is contained in:
parent
7a65c2017b
commit
d64139d812
1 changed files with 2 additions and 2 deletions
|
@ -744,7 +744,7 @@ class ContentProxyTest extends TestCase
|
|||
* @param $string
|
||||
* @return string
|
||||
*/
|
||||
function strToHex($string){
|
||||
private function strToHex($string){
|
||||
$hex = '';
|
||||
for ($i=0; $i<strlen($string); $i++){
|
||||
$ord = ord($string[$i]);
|
||||
|
@ -759,7 +759,7 @@ class ContentProxyTest extends TestCase
|
|||
* @param $hex
|
||||
* @return string
|
||||
*/
|
||||
function hexToStr($hex){
|
||||
private function hexToStr($hex){
|
||||
$string='';
|
||||
for ($i=0; $i < strlen($hex)-1; $i+=2){
|
||||
$string .= chr(hexdec($hex[$i].$hex[$i+1]));
|
||||
|
|
Loading…
Reference in a new issue