diff options
author | Tobi823 <Tobi823@users.noreply.github.com> | 2018-09-21 13:31:28 +0200 |
---|---|---|
committer | Tobi823 <Tobi823@users.noreply.github.com> | 2018-09-21 13:31:28 +0200 |
commit | d64139d8123ac88c8ba1b427c3ee3637b6ea1c96 (patch) | |
tree | a0a094782e45338de4212b014d05e0993a04e69f /tests | |
parent | 7a65c2017bf4dd47414df27d0a07829580392c96 (diff) | |
download | wallabag-d64139d8123ac88c8ba1b427c3ee3637b6ea1c96.tar.gz wallabag-d64139d8123ac88c8ba1b427c3ee3637b6ea1c96.tar.zst wallabag-d64139d8123ac88c8ba1b427c3ee3637b6ea1c96.zip |
Make helper methods strToHex and hexToStr in ContentProxyTest.php private
to prevent misusage (from outside this class)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index 9d8098ef..5f10f482 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | |||
@@ -744,7 +744,7 @@ class ContentProxyTest extends TestCase | |||
744 | * @param $string | 744 | * @param $string |
745 | * @return string | 745 | * @return string |
746 | */ | 746 | */ |
747 | function strToHex($string){ | 747 | private function strToHex($string){ |
748 | $hex = ''; | 748 | $hex = ''; |
749 | for ($i=0; $i<strlen($string); $i++){ | 749 | for ($i=0; $i<strlen($string); $i++){ |
750 | $ord = ord($string[$i]); | 750 | $ord = ord($string[$i]); |
@@ -759,7 +759,7 @@ class ContentProxyTest extends TestCase | |||
759 | * @param $hex | 759 | * @param $hex |
760 | * @return string | 760 | * @return string |
761 | */ | 761 | */ |
762 | function hexToStr($hex){ | 762 | private function hexToStr($hex){ |
763 | $string=''; | 763 | $string=''; |
764 | for ($i=0; $i < strlen($hex)-1; $i+=2){ | 764 | for ($i=0; $i < strlen($hex)-1; $i+=2){ |
765 | $string .= chr(hexdec($hex[$i].$hex[$i+1])); | 765 | $string .= chr(hexdec($hex[$i].$hex[$i+1])); |