Skip to content

Commit fd6c7a5

Browse files
committed
Fix doc typos
1 parent 5dd9b65 commit fd6c7a5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ try {
6565
$xlsxFastEditor->writeFloat($worksheetId1, 'B2', 3.14);
6666
$xlsxFastEditor->writeInt($worksheetId1, 'C3', 13);
6767
$xlsxFastEditor->writeString($worksheetId1, 'D4', 'Hello');
68-
$xlsxFastEditor->writeHyperlink($sheet1, 'B4', 'https://example.net/'); // Only for cells with an existing hyperlink
68+
$xlsxFastEditor->writeHyperlink($worksheetId1, 'B4', 'https://example.net/'); // Only for cells with an existing hyperlink
6969

7070
// Read as array
71-
$table = $xlsxFastEditor->readArray($sheet1);
71+
$table = $xlsxFastEditor->readArray($worksheetId1);
7272
$s = $table['B'][2];
7373

74-
$table = $xlsxFastEditor->readArrayWithHeaders($sheet1);
74+
$table = $xlsxFastEditor->readArrayWithHeaders($worksheetId1);
7575
$s = $table['columnName'][2];
7676

7777
// Regex search & replace operating globally on all the worksheets:

src/XlsxFastEditor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ public function rowsIterator(int $sheetNumber): \Traversable
494494
/**
495495
* Produce an array from a worksheet, indexed by column name (like `AB`) first, then line (like `12`).
496496
* Only the existing lines and cells are included.
497-
* @return array<string,array<int,null|string>> An array that can be access like `$array['AB'][12]`
497+
* @return array<string,array<int,null|string>> An array that can be accessed like `$array['AB'][12]`
498498
* @throws XlsxFastEditorFileFormatException
499499
* @throws XlsxFastEditorXmlException
500500
*/
@@ -513,7 +513,7 @@ public function readArray(int $sheetNumber): array
513513
* Produce an array from a worksheet, indexed by column header (like `columnName`) first, then line (like `12`),
514514
* having the column header defined in the first existing line of the spreadsheet.
515515
* Only the existing lines and cells are included.
516-
* @return array<string,array<int,null|string>> An array that can be access like `$array['columnName'][12]`
516+
* @return array<string,array<int,null|string>> An array that can be accessed like `$array['columnName'][12]`
517517
* @throws XlsxFastEditorFileFormatException
518518
* @throws XlsxFastEditorXmlException
519519
*/

src/XlsxFastEditorCell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private function initCellValue(): \DOMElement
236236
$v = null;
237237
$this->c->removeAttribute('t'); // Remove type, if it exists
238238
for ($i = $this->c->childNodes->length - 1; $i >= 0; $i--) {
239-
// Remove all childs except <v>
239+
// Remove all children except <v>
240240
$child = $this->c->childNodes[$i];
241241
if ($child instanceof \DOMElement) {
242242
if ($child->localName === 'v') {

0 commit comments

Comments
 (0)