From 853a53b97e129dd7683a7e96e9cf61e9215bd47b Mon Sep 17 00:00:00 2001 From: Katie Volz Date: Wed, 24 Nov 2021 09:54:17 -0500 Subject: [PATCH] Remove curly brace array offset --- phpdotnet/phd/Format/Abstract/PDF.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpdotnet/phd/Format/Abstract/PDF.php b/phpdotnet/phd/Format/Abstract/PDF.php index 5aea11f6b..774dfed11 100644 --- a/phpdotnet/phd/Format/Abstract/PDF.php +++ b/phpdotnet/phd/Format/Abstract/PDF.php @@ -241,7 +241,7 @@ public function appendText($text) { $this->PAGE_HEIGHT - (self::VMARGIN + $this->vOffset), $textToAppend); } if ($textToAppend) - $this->current["char"] = $textToAppend{strlen($textToAppend)-1}; + $this->current["char"] = $textToAppend[strlen($textToAppend)-1]; // Offsets for next line if (!$isLastLine) { @@ -302,7 +302,7 @@ public function appendOneLine($text) { $this->currentPage->textOut(self::HMARGIN + $this->hOffset + $this->permanentLeftSpacing, $this->PAGE_HEIGHT - (self::VMARGIN + $this->vOffset), $textToAppend); if ($textToAppend) - $this->current["char"] = $textToAppend{strlen($textToAppend)-1}; + $this->current["char"] = $textToAppend[strlen($textToAppend)-1]; $this->hOffset += $this->currentPage->getTextWidth($textToAppend);