From f33c615ae95fd5da0cab2b674d3cac1a84f9360a Mon Sep 17 00:00:00 2001 From: codemasher Date: Sat, 22 Jun 2019 16:44:13 +0200 Subject: [PATCH] :octocat: that makes more sense --- examples/QRImageWithText.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/QRImageWithText.php b/examples/QRImageWithText.php index 144a5647c..193c9d2e3 100644 --- a/examples/QRImageWithText.php +++ b/examples/QRImageWithText.php @@ -88,7 +88,7 @@ class QRImageWithText extends QRImage{ $fontColor = \imagecolorallocate($this->image, ...$textColor); $w = \imagefontwidth($textSize); - $x = ($bgWidth - round((strlen($text) * $w))) / 2; + $x = round(($bgWidth - strlen($text) * $w) / 2); // loop through the string and draw the letters foreach(str_split($text) as $i => $chr){