@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $this->pageh = $tmpw; |
146 | 146 | } |
147 | 147 | // Store the pagewidth without margins |
148 | - $this->noMarginWidth = (int)($this->pagew - $this->leftmargin - $this->rightmargin); |
|
148 | + $this->noMarginWidth = (int) ($this->pagew - $this->leftmargin - $this->rightmargin); |
|
149 | 149 | // If RTL |
150 | 150 | if ($this->rtl) { |
151 | 151 | $this->alignRTL = 'right'; |
@@ -727,14 +727,14 @@ discard block |
||
727 | 727 | public function textWrap($str, $width): string |
728 | 728 | { |
729 | 729 | // Calculate the line width |
730 | - $lw = (int)($width / ($this->getCurrentStyleHeight() / 2)); |
|
730 | + $lw = (int) ($width / ($this->getCurrentStyleHeight() / 2)); |
|
731 | 731 | // Wordwrap each line |
732 | 732 | $lines = explode("\n", $str); |
733 | 733 | // Line Feed counter |
734 | 734 | $lfct = \count($lines); |
735 | 735 | $wraptext = ''; |
736 | 736 | foreach ($lines as $line) { |
737 | - $wtext = FunctionsRtl::utf8WordWrap($line, $lw, "\n", true); |
|
737 | + $wtext = FunctionsRtl::utf8WordWrap($line, $lw, "\n", true); |
|
738 | 738 | $wraptext .= $wtext; |
739 | 739 | // Add a new line as long as it’s not the last line |
740 | 740 | if ($lfct > 1) { |