Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 13f3866

Browse files
author
klemens
committed
spelling fixes
1 parent 6ff1e79 commit 13f3866

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

doc/book/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Attach a listener to a named event triggered by an identified context, where:
244244
### detach()
245245

246246
```php
247-
detach(callable $listener, $identifer = null, $eventName = null) : void
247+
detach(callable $listener, $identifier = null, $eventName = null) : void
248248
```
249249

250250
Detach a listener, optionally from a single identifier, and optionally from a

doc/book/migration/changed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ trigger($event, $target = null, $argv = []);
6060
triggerUntil(callable $callback, $event, $target = null, $argv = []);
6161
```
6262

63-
with the following defintions:
63+
with the following definitions:
6464

6565
- `$event` is a string event name.
6666
- `$target` is a value representing the target of the event.

doc/book/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ class LogEvents implements ListenerAggregateInterface
314314
>
315315
> The trait `Zend\EventManager\ListenerAggregateTrait` can be composed to help
316316
> implement `ListenerAggregateInterface`; it defines the `$listeners` property,
317-
> and the `detach()` logic as demostrated above.
317+
> and the `detach()` logic as demonstrated above.
318318
319319
You can attach this by passing the event manager to the aggregate's `attach()`
320320
method:
@@ -548,7 +548,7 @@ stored in the object, and also to ensure the listeners have the exact same
548548
context as the calling method. But it raises an interesting problem in this
549549
example: what name do we give the result of the method? One standard that has
550550
emerged is the use of `__RESULT__`, as double-underscored variables are
551-
typically reserved for the sytem.
551+
typically reserved for the system.
552552

553553
Here's what the method will look like:
554554

test/EventManagerAwareTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testSetEventManagerWithEventIdentifier()
5151

5252
$object->setEventManager($eventManager);
5353

54-
//check that the identifer has been added.
54+
//check that the identifier has been added.
5555
$this->assertContains($eventIdentifier, $eventManager->getIdentifiers());
5656

5757
//check that the method attachDefaultListeners has been called

0 commit comments

Comments
 (0)