@@ -185,7 +185,7 @@ |
||
| 185 | 185 | { |
| 186 | 186 | $result = []; |
| 187 | 187 | foreach ($this->timers as $name => /** @var Timer $timer */ $timer) { |
| 188 | - $result[$name] = (int)($timer->getTime() * 1000); // in millisecond |
|
| 188 | + $result[$name] = (int) ($timer->getTime() * 1000); // in millisecond |
|
| 189 | 189 | } |
| 190 | 190 | return $result; |
| 191 | 191 | } |
@@ -110,8 +110,8 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | $scale = 1; |
| 113 | - $scaleWidth = (int)($width / $this->width); |
|
| 114 | - $scaleHeight = (int)($height / $this->height); |
|
| 113 | + $scaleWidth = (int) ($width / $this->width); |
|
| 114 | + $scaleHeight = (int) ($height / $this->height); |
|
| 115 | 115 | if ($useWidth) { |
| 116 | 116 | $scale = $scaleWidth; |
| 117 | 117 | } elseif ($useWidth === false) { |
@@ -128,10 +128,10 @@ discard block |
||
| 128 | 128 | return; |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | - $newWidth = (int)($this->width * $scale); |
|
| 132 | - $newHeight = (int)($this->height * $scale); |
|
| 133 | - $xpos = (int)(($width - $newWidth) / 2); |
|
| 134 | - $ypos = (int)(($height - $newHeight) / 2); |
|
| 131 | + $newWidth = (int) ($this->width * $scale); |
|
| 132 | + $newHeight = (int) ($this->height * $scale); |
|
| 133 | + $xpos = (int) (($width - $newWidth) / 2); |
|
| 134 | + $ypos = (int) (($height - $newHeight) / 2); |
|
| 135 | 135 | $oldImage = $this->image; |
| 136 | 136 | $this->image = imagecreatetruecolor($width, $height); |
| 137 | 137 | if ($this->mimetype === 'image/png') { |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | * @param array<mixed>|int|float|bool ...$args |
| 342 | 342 | * @return void |
| 343 | 343 | */ |
| 344 | - public function filter(int $filter, array|int|float|bool ...$args): void |
|
| 344 | + public function filter(int $filter, array | int | float | bool ...$args): void |
|
| 345 | 345 | { |
| 346 | 346 | imagefilter($this->image, $filter, $args); |
| 347 | 347 | } |