Skip to content

Commit

Permalink
Typo in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi authored and Frederic Delaunay committed Oct 29, 2018
1 parent b9b29cc commit 34aef47
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions docs/topics/accessing-cells.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ $spreadsheet->getActiveSheet()->getStyle('A10')

![07-simple-example-1.png](./images/07-simple-example-1.png)

**Note** that not all complex format masks such as this one will work
**Note:** that not all complex format masks such as this one will work
when retrieving a formatted value to display "on screen", or for certain
writers such as HTML or PDF, but it will work with the true spreadsheet
writers (Xlsx and Xls).
Expand Down Expand Up @@ -238,7 +238,7 @@ the worksheet using the `getCell()` method. A cell's value can be read
using the `getValue()` method.

``` php
// Get the value fom cell A1
// Get the value from cell A1
$cellValue = $spreadsheet->getActiveSheet()->getCell('A1')->getValue();
```

Expand All @@ -250,7 +250,7 @@ value rather than the formula itself, then use the cell's
[the calculation engine](./calculation-engine.md).

``` php
// Get the value fom cell A4
// Get the value from cell A4
$cellValue = $spreadsheet->getActiveSheet()->getCell('A4')->getCalculatedValue();
```

Expand All @@ -259,7 +259,7 @@ applied (e.g. for a human-readable date or time value), then you can use
the cell's `getFormattedValue()` method.

``` php
// Get the value fom cell A6
// Get the value from cell A6
$cellValue = $spreadsheet->getActiveSheet()->getCell('A6')->getFormattedValue();
```

Expand All @@ -269,11 +269,11 @@ Setting a cell value by coordinate can be done using the worksheet's
`setCellValueByColumnAndRow()` method.

``` php
// Set cell B5 with a string value
// Set cell A5 with a string value
$spreadsheet->getActiveSheet()->setCellValueByColumnAndRow(1, 5, 'PhpSpreadsheet');
```

**Note** that column references start with `1` for column `A`.
**Note:** that column references start with `1` for column `A`.

## Retrieving a cell value by column and row

Expand All @@ -282,15 +282,15 @@ the worksheet using the `getCellByColumnAndRow()` method. A cell’s value can
be read again using the following line of code:

``` php
// Get the value fom cell B5
// Get the value from cell B5
$cellValue = $spreadsheet->getActiveSheet()->getCellByColumnAndRow(2, 5)->getValue();
```

If you need the calculated value of a cell, use the following code. This
is further explained in [the calculation engine](./calculation-engine.md).

``` php
// Get the value fom cell A4
// Get the value from cell A4
$cellValue = $spreadsheet->getActiveSheet()->getCellByColumnAndRow(1, 4)->getCalculatedValue();
```

Expand Down Expand Up @@ -366,10 +366,10 @@ intended to loop all cells that are possibly available.
### Looping through cells using indexes

One can use the possibility to access cell values by column and row
index like (0,1) instead of 'A1' for reading and writing cell values in
index like `[1, 1]` instead of `'A1'` for reading and writing cell values in
loops.

Note: In PhpSpreadsheet column index and row index are 1-based. That means `'A1'` ~ `[1, 1]`
**Note:** In PhpSpreadsheet column index and row index are 1-based. That means `'A1'` ~ `[1, 1]`

Below is an example where we read all the values in a worksheet and
display them in a table.
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ work with a PHP DateTime object.
Similarly, times (or date and time values) can be entered in the same
fashion: just remember to use an appropriate format code.

**Notes:**
**Note:**

See section "Using value binders to facilitate data entry" to learn more
about the AdvancedValueBinder used in the first example. Excel can also
Expand Down
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Reader/Xls.php
Original file line number Diff line number Diff line change
Expand Up @@ -7503,7 +7503,7 @@ private function readSheetRangeByRefIndex($index)
break;
default:
// TODO: external sheet support
throw new Exception('Xls reader only supports internal sheets in fomulas');
throw new Exception('Xls reader only supports internal sheets in formulas');
break;
}
}
Expand Down

0 comments on commit 34aef47

Please sign in to comment.