@@ -448,7 +448,7 @@ |
||
448 | 448 | */ |
449 | 449 | public function julianDay() |
450 | 450 | { |
451 | - return (int)(($this->minimumJulianDay() + $this->maximumJulianDay()) / 2); |
|
451 | + return (int) (($this->minimumJulianDay() + $this->maximumJulianDay()) / 2); |
|
452 | 452 | } |
453 | 453 | |
454 | 454 | /** |
@@ -3616,7 +3616,7 @@ |
||
3616 | 3616 | $soundTableEntry = self::$dmsounds[$thisEntry]; |
3617 | 3617 | $workingResult = $partialResult; |
3618 | 3618 | $partialResult = []; |
3619 | - $currPos += strlen($thisEntry); |
|
3619 | + $currPos += strlen($thisEntry); |
|
3620 | 3620 | |
3621 | 3621 | // Not at beginning of input string |
3622 | 3622 | if ($state != 1) { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | if ($this->wrapWidthRemaining > 0) { |
123 | 123 | // Check with line counter too! |
124 | 124 | // but floor the $wrapWidthRemaining first to keep it bugfree! |
125 | - $wrapWidthRemaining = (int)($this->wrapWidthRemaining); |
|
125 | + $wrapWidthRemaining = (int) ($this->wrapWidthRemaining); |
|
126 | 126 | if ($lw >= $wrapWidthRemaining || $lfct > 1) { |
127 | 127 | $newtext = ''; |
128 | 128 | $lines = explode("\n", $this->text); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $newtext .= ' '; |
145 | 145 | } |
146 | 146 | } else { |
147 | - $lw = $pdf->GetStringWidth($word . ' '); |
|
147 | + $lw = $pdf->GetStringWidth($word . ' '); |
|
148 | 148 | $newtext .= "\n$word"; |
149 | 149 | if ($addspace != 0) { |
150 | 150 | $newtext .= ' '; |
@@ -138,7 +138,7 @@ |
||
138 | 138 | $newtext .= ' '; |
139 | 139 | } |
140 | 140 | } else { |
141 | - $lw = $html->getStringWidth($word . ' '); |
|
141 | + $lw = $html->getStringWidth($word . ' '); |
|
142 | 142 | $newtext .= "\n$word"; |
143 | 143 | if ($addspace != 0) { |
144 | 144 | $newtext .= ' '; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $lines = explode("\n", $temptext); |
60 | 60 | foreach ($lines as $line) { |
61 | 61 | echo '<div style="position:absolute;top:', $startY, 'pt;', $renderer->alignRTL, ':', $startX, 'pt;width:', $width, 'pt;">'; |
62 | - $line = $renderer->textWrap($line, $width); |
|
62 | + $line = $renderer->textWrap($line, $width); |
|
63 | 63 | $startY += $renderer->getTextCellHeight($line); |
64 | 64 | $renderer->setY($startY); |
65 | 65 | $renderer->write($line, $this->color); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $newtext .= ' '; |
147 | 147 | } |
148 | 148 | } else { |
149 | - $lw = $html->getStringWidth($word . ' '); |
|
149 | + $lw = $html->getStringWidth($word . ' '); |
|
150 | 150 | $newtext .= "\n$word"; |
151 | 151 | if ($addspace != 0) { |
152 | 152 | $newtext .= ' '; |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | if ($this->wrapWidthRemaining > 0) { |
108 | 108 | // Check with line counter too! |
109 | 109 | // but floor the $wrapWidthRemaining first to keep it bugfree! |
110 | - $wrapWidthRemaining = (int)($this->wrapWidthRemaining); |
|
110 | + $wrapWidthRemaining = (int) ($this->wrapWidthRemaining); |
|
111 | 111 | if ($lw >= $wrapWidthRemaining || $lfct > 1) { |
112 | 112 | $newtext = ''; |
113 | 113 | $lines = explode("\n", $this->numText); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | $newtext .= ' '; |
130 | 130 | } |
131 | 131 | } else { |
132 | - $lw = $pdf->GetStringWidth($word . ' '); |
|
132 | + $lw = $pdf->GetStringWidth($word . ' '); |
|
133 | 133 | $newtext .= "\n$word"; |
134 | 134 | if ($addspace != 0) { |
135 | 135 | $newtext .= ' '; |
@@ -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'; |
@@ -725,14 +725,14 @@ discard block |
||
725 | 725 | public function textWrap($str, $width) |
726 | 726 | { |
727 | 727 | // Calculate the line width |
728 | - $lw = (int)($width / ($this->getCurrentStyleHeight() / 2)); |
|
728 | + $lw = (int) ($width / ($this->getCurrentStyleHeight() / 2)); |
|
729 | 729 | // Wordwrap each line |
730 | 730 | $lines = explode("\n", $str); |
731 | 731 | // Line Feed counter |
732 | 732 | $lfct = count($lines); |
733 | 733 | $wraptext = ''; |
734 | 734 | foreach ($lines as $line) { |
735 | - $wtext = FunctionsRtl::utf8WordWrap($line, $lw, "\n", true); |
|
735 | + $wtext = FunctionsRtl::utf8WordWrap($line, $lw, "\n", true); |
|
736 | 736 | $wraptext .= $wtext; |
737 | 737 | // Add a new line as long as it’s not the last line |
738 | 738 | if ($lfct > 1) { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | '<u>', |
44 | 44 | '</u>', |
45 | 45 | ], $temptext); |
46 | - $match = []; |
|
46 | + $match = []; |
|
47 | 47 | // Indicates if the cell background must be painted (1) or transparent (0) |
48 | 48 | if ($this->fill == 1) { |
49 | 49 | if (!empty($this->bgcolor)) { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | // Create a dummy user, so we can send messages from the tree. |
62 | 62 | $sender = new User( |
63 | - (object)[ |
|
63 | + (object) [ |
|
64 | 64 | 'user_id' => null, |
65 | 65 | 'user_name' => '', |
66 | 66 | 'real_name' => $tree->getTitle(), |