From a771de75b9bc3fecdb086ab6348b3ae0352038b6 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Wed, 16 Nov 2022 22:02:21 +0100 Subject: [PATCH] Keep things as private as possible --- src/PhpWord/TemplateProcessor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhpWord/TemplateProcessor.php b/src/PhpWord/TemplateProcessor.php index 6f1ba922..6b6434d8 100644 --- a/src/PhpWord/TemplateProcessor.php +++ b/src/PhpWord/TemplateProcessor.php @@ -1146,7 +1146,7 @@ class TemplateProcessor /** * Find the start position of the nearest table before $offset. */ - protected function findTableStart(int $offset): int + private function findTableStart(int $offset): int { $rowStart = strrpos( $this->tempDocumentMainPart, @@ -1171,7 +1171,7 @@ class TemplateProcessor /** * Find the end position of the nearest table row after $offset. */ - protected function findTableEnd(int $offset): int + private function findTableEnd(int $offset): int { return strpos($this->tempDocumentMainPart, '', $offset) + 7; }