fix: noverify --fix
This commit is contained in:
parent
5aff28d2b8
commit
117640a755
44 changed files with 174 additions and 174 deletions
|
|
@ -32,8 +32,8 @@ class Drawing
|
|||
// self::drawrectnagle($image, $left, $top, $max_width, $max_height, array(0xFF,0,0));
|
||||
$text_lines = explode("\n", $text); // Supports manual line breaks!
|
||||
|
||||
$lines = array();
|
||||
$line_widths = array();
|
||||
$lines = [];
|
||||
$line_widths = [];
|
||||
|
||||
$largest_line_height = 0;
|
||||
foreach ($text_lines as $block) {
|
||||
|
|
@ -54,7 +54,7 @@ class Drawing
|
|||
if ($line_width > $max_width && !$first_word) {
|
||||
$lines[] = $current_line;
|
||||
|
||||
$line_widths[] = $last_width ? $last_width : $line_width;
|
||||
$line_widths[] = $last_width ?: $line_width;
|
||||
$current_line = $item;
|
||||
} else {
|
||||
$current_line .= ($first_word ? '' : ' ') . $item;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue