Passed
Push — master ( 6d3dea...0ca024 )
by Evgenii
01:34
created
src/Imagenator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -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.