Skip to content

Commit fbe9210

Browse files
committed
Renamed the function to getSheetNames for clarity.
1 parent 35f498c commit fbe9210

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ $rows = SimpleExcelReader::create($pathToXlsx)
125125
->getRows();
126126
```
127127

128-
You can also retrieve all sheet names in a document using the `getSheets()` method.
128+
You can also retrieve all sheet names in a document using the `getSheetNames()` method.
129129

130130
```php
131131
$sheets = SimpleExcelReader::create($pathToXlsx)
132-
->getSheets();
132+
->getSheetNames();
133133
```
134134

135135

src/SimpleExcelReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function take(int $count): SimpleExcelReader
187187
return $this;
188188
}
189189

190-
public function getSheets(): array
190+
public function getSheetNames(): array
191191
{
192192
$this->setReader();
193193

tests/SimpleExcelReaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ function () {
570570
$reader = SimpleExcelReader::create(getStubPath('multiple_sheets.xlsx'));
571571

572572
expect(
573-
$reader->getSheets()
573+
$reader->getSheetNames()
574574
)->toEqual([
575575
0 => 'sheet1',
576576
1 => 'sheet2',

0 commit comments

Comments
 (0)