From 65a9876d3d6fb600a5bba4c1731e60927cdbe63e Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 23 Jan 2025 15:45:16 +0400 Subject: [PATCH] renommer wrap_text en wrap --- src/ext/spout/SpoutBuilder.php | 2 +- src/ref/ext/spout/ref_builder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ext/spout/SpoutBuilder.php b/src/ext/spout/SpoutBuilder.php index a5290dd..f85b932 100644 --- a/src/ext/spout/SpoutBuilder.php +++ b/src/ext/spout/SpoutBuilder.php @@ -77,7 +77,7 @@ class SpoutBuilder extends AbstractBuilder { } if (($align = $cell["align"] ?? null) !== null) $style->setCellAlignment($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 (($border = $cell["border"] ?? null) !== null) { if (is_string($border)) { diff --git a/src/ref/ext/spout/ref_builder.php b/src/ref/ext/spout/ref_builder.php index 8d01752..11ff081 100644 --- a/src/ref/ext/spout/ref_builder.php +++ b/src/ref/ext/spout/ref_builder.php @@ -79,7 +79,7 @@ class ref_builder { "bg_color" => "string", "align" => "string", "valign" => "string", - "wrap_text" => "bool", + "wrap" => "bool", "format" => "string", "border" => [ "top" => ["color" => "string", "width" => "string", "style" => "string"],