From b32b06d6a3a0a31b96d2ebd5786fb4ea6898a45d Mon Sep 17 00:00:00 2001 From: Konstantin Pereyaslov Date: Tue, 19 Jul 2016 20:37:31 +0300 Subject: [PATCH] Make methods that are not required to be public private --- src/Pdf2text.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Pdf2text.php b/src/Pdf2text.php index 8719444..94c7fe9 100644 --- a/src/Pdf2text.php +++ b/src/Pdf2text.php @@ -184,7 +184,7 @@ public function decodePDF() * * @return string */ - public function decodeAsciiHex($input) + private function decodeAsciiHex($input) { $output = ""; $isOdd = true; @@ -257,7 +257,7 @@ public function decodeAsciiHex($input) * * @return string */ - public function decodeAscii85($input) + private function decodeAscii85($input) { $output = ""; @@ -341,7 +341,7 @@ public function decodeAscii85($input) * * @return string */ - public function decodeFlate($data) + private function decodeFlate($data) { return @gzuncompress($data); } @@ -353,7 +353,7 @@ public function decodeFlate($data) * * @return array */ - public function getObjectOptions($object) + private function getObjectOptions($object) { $options = array(); @@ -396,7 +396,7 @@ public function getObjectOptions($object) * * @return string */ - public function getDecodedStream($stream, $options) + private function getDecodedStream($stream, $options) { $data = ""; @@ -441,7 +441,7 @@ public function getDecodedStream($stream, $options) * * @return void */ - public function getDirtyTexts(&$texts, $textContainers) + private function getDirtyTexts(&$texts, $textContainers) { for ($j = 0; $j < count($textContainers); $j++) { @@ -468,7 +468,7 @@ public function getDirtyTexts(&$texts, $textContainers) * * @return void */ - public function getCharTransformations(&$transformations, $stream) + private function getCharTransformations(&$transformations, $stream) { preg_match_all("#([0-9]+)\s+beginbfchar(.*)endbfchar#ismU", $stream, $chars, PREG_SET_ORDER); preg_match_all("#([0-9]+)\s+beginbfrange(.*)endbfrange#ismU", $stream, $ranges, PREG_SET_ORDER); @@ -527,7 +527,7 @@ public function getCharTransformations(&$transformations, $stream) * * @return string */ - public function getTextUsingTransformations($texts, $transformations) + private function getTextUsingTransformations($texts, $transformations) { $document = "";