renommer wrap_text en wrap

This commit is contained in:
Jephté Clain 2025-01-23 15:45:16 +04:00
parent 7d699ee61e
commit 65a9876d3d
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ class SpoutBuilder extends AbstractBuilder {
} }
if (($align = $cell["align"] ?? null) !== null) $style->setCellAlignment($align); if (($align = $cell["align"] ?? null) !== null) $style->setCellAlignment($align);
//if (($align = $params["valign"] ?? null) !== null) $style->setCellVerticalAlignment($align); //if (($align = $params["valign"] ?? null) !== null) $style->setCellVerticalAlignment($align);
if ($cell["wrap_text"] ?? null) $style->setShouldWrapText(); if (($wrap = $cell["wrap"] ?? null) !== null) $style->setShouldWrapText($wrap);
if (($format = $cell["format"] ?? null) !== null) $style->setFormat($format); if (($format = $cell["format"] ?? null) !== null) $style->setFormat($format);
if (($border = $cell["border"] ?? null) !== null) { if (($border = $cell["border"] ?? null) !== null) {
if (is_string($border)) { if (is_string($border)) {

View File

@ -79,7 +79,7 @@ class ref_builder {
"bg_color" => "string", "bg_color" => "string",
"align" => "string", "align" => "string",
"valign" => "string", "valign" => "string",
"wrap_text" => "bool", "wrap" => "bool",
"format" => "string", "format" => "string",
"border" => [ "border" => [
"top" => ["color" => "string", "width" => "string", "style" => "string"], "top" => ["color" => "string", "width" => "string", "style" => "string"],