Skip to content

Commit

Permalink
Code style issues + update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Apr 26, 2021
1 parent 8176e68 commit 8b2b40c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -29,12 +29,12 @@
"ext-exif" : "*",
"ext-ctype" : "*",

"jbzoo/utils" : "^4.3.0",
"jbzoo/data" : "^4.2.0"
"jbzoo/utils" : "^4.4.0",
"jbzoo/data" : "^4.2.1"
},

"require-dev" : {
"jbzoo/toolbox-dev" : "^2.10.0"
"jbzoo/toolbox-dev" : "^2.12.0"
},

"autoload" : {
Expand Down
6 changes: 2 additions & 4 deletions src/Text.php
Expand Up @@ -72,10 +72,8 @@ public static function render($image, string $text, string $fontFile, array $par
$imageWidth = (int)imagesx($image);
$imageHeight = (int)imagesy($image);

$color = is_string($params['color']) ? (string)$params['color'] : (array)$params['color'];
$strokeColor = is_string($params['stroke-color'])
? (string)$params['stroke-color']
: (array)$params['stroke-color'];
$color = is_string($params['color']) ? $params['color'] : (array)$params['color'];
$strokeColor = is_string($params['stroke-color']) ? $params['stroke-color'] : (array)$params['stroke-color'];

$colorArr = self::getColor($image, $color);
[$textWidth, $textHeight] = self::getTextBoxSize($fSize, $angle, $fontFile, $text);
Expand Down

0 comments on commit 8b2b40c

Please sign in to comment.