|
39 | 39 |
|
40 | 40 | use const E_WARNING;
|
41 | 41 | use const PHP_MAJOR_VERSION;
|
42 |
| -use const PHP_VERSION_ID; |
43 | 42 |
|
44 | 43 | /**
|
45 | 44 | * Class for rendering the barcode as image
|
@@ -397,7 +396,7 @@ protected function drawPolygon($points, $color, $filled = true)
|
397 | 396 | $color & 0x0000FF
|
398 | 397 | );
|
399 | 398 |
|
400 |
| - $this->imageFilledPolygonWrapper($this->resource, $newPoints, 4, $allocatedColor, $filled); |
| 399 | + $this->imageFilledPolygonWrapper($this->resource, $newPoints, $allocatedColor, $filled); |
401 | 400 | }
|
402 | 401 |
|
403 | 402 | /**
|
@@ -490,24 +489,16 @@ protected function drawText($text, $size, $position, $font, $color, $alignment =
|
490 | 489 | /**
|
491 | 490 | * @param GdImage|resource $image
|
492 | 491 | * @param array $points
|
493 |
| - * @param int $numPoints |
494 | 492 | * @param int $color
|
495 | 493 | * @param bool $filled
|
496 | 494 | * @return bool
|
497 | 495 | */
|
498 |
| - protected function imageFilledPolygonWrapper($image, array $points, $numPoints, $color, $filled) |
| 496 | + protected function imageFilledPolygonWrapper($image, array $points, $color, $filled) |
499 | 497 | {
|
500 | 498 | if (! $filled) {
|
501 |
| - if (PHP_VERSION_ID < 80100) { |
502 |
| - return imagepolygon($this->resource, $points, $numPoints, $color); |
503 |
| - } |
504 | 499 | return imagepolygon($this->resource, $points, $color);
|
505 | 500 | }
|
506 | 501 |
|
507 |
| - if (PHP_VERSION_ID < 80100) { |
508 |
| - return imagefilledpolygon($image, $points, $numPoints, $color); |
509 |
| - } |
510 |
| - |
511 | 502 | return imagefilledpolygon($image, $points, $color);
|
512 | 503 | }
|
513 | 504 |
|
|
0 commit comments