|
@@ -119,10 +119,10 @@ discard block |
|
|
block discarded – undo |
|
119
|
119
|
|
|
120
|
120
|
protected function calculateParams() |
|
121
|
121
|
{ |
|
122
|
|
- $this->positionStartY = (int)($this->imageHeight / 100 * $this->marginTopInPercents); |
|
123
|
|
- $this->rowHeightInPx = (int)($this->imageHeight / 100 * $this->rowHeight); |
|
124
|
|
- $this->fontSizeInPx = (int)($this->imageHeight / 100 * $this->fontSizeInPercents); |
|
125
|
|
- $this->positionX = (int)($this->imageWidth / 100 * $this->paddingLeftRightInPercents); |
|
|
122
|
+ $this->positionStartY = (int) ($this->imageHeight / 100 * $this->marginTopInPercents); |
|
|
123
|
+ $this->rowHeightInPx = (int) ($this->imageHeight / 100 * $this->rowHeight); |
|
|
124
|
+ $this->fontSizeInPx = (int) ($this->imageHeight / 100 * $this->fontSizeInPercents); |
|
|
125
|
+ $this->positionX = (int) ($this->imageWidth / 100 * $this->paddingLeftRightInPercents); |
|
126
|
126
|
} |
|
127
|
127
|
|
|
128
|
128
|
/** |
|
@@ -159,7 +159,7 @@ discard block |
|
|
block discarded – undo |
|
159
|
159
|
{ |
|
160
|
160
|
foreach ($this->rows as $rowNumber => $row) { |
|
161
|
161
|
$string = implode(' ', $row); |
|
162
|
|
- $positionY = (int)$this->positionStartY + ($rowNumber * $this->rowHeightInPx); |
|
|
162
|
+ $positionY = (int) $this->positionStartY + ($rowNumber * $this->rowHeightInPx); |
|
163
|
163
|
imagettftext($this->image, $this->fontSizeInPx, 0, $this->positionX, $positionY, $this->textColor, $this->font, $string); |
|
164
|
164
|
} |
|
165
|
165
|
} |
Please login to merge, or discard this patch.