From 09853c0edf7a62433311aa3c0b04cf2e37b43842 Mon Sep 17 00:00:00 2001 From: Luciano Vergara Date: Mon, 28 Jun 2021 00:04:38 -0300 Subject: [PATCH] Change method name & Examples update --- README.md | 2 +- examples/SimpleSheet/simplesheet.php | 2 +- src/PHPSimpleSpreadsheet.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 58fc19a..dcc5664 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ $xls //Set Columns range ->setRange(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I']) //Set Columns width -->setColumnWidth(['25', '35', '35', '35', '35', '35', '35', '35', '35']); +->setColumnsWidth(['25', '35', '35', '35', '35', '35', '35', '35', '35']); //Start Sheet $xls->startSheet(); diff --git a/examples/SimpleSheet/simplesheet.php b/examples/SimpleSheet/simplesheet.php index 5385efb..6a223cf 100644 --- a/examples/SimpleSheet/simplesheet.php +++ b/examples/SimpleSheet/simplesheet.php @@ -29,7 +29,7 @@ //Set Columns range ->setRange(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I']) //Set Columns width -->setColumnWidth(['25', '35', '35', '35', '35', '35', '35', '35', '35']); +->setColumnsWidth(['25', '35', '35', '35', '35', '35', '35', '35', '35']); //Start Sheet $xls->startSheet(); diff --git a/src/PHPSimpleSpreadsheet.php b/src/PHPSimpleSpreadsheet.php index 9ab4b78..7c25396 100644 --- a/src/PHPSimpleSpreadsheet.php +++ b/src/PHPSimpleSpreadsheet.php @@ -290,7 +290,7 @@ public function clean($str) * * @return void */ - public function setColumnWidth($cols) + public function setColumnsWidth($cols) { $i = 1; $this->columnsWidth .= '';