Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed typos

  • Loading branch information...
commit e139b64e14dbb02d339f478a4ddc5614bc726134 1 parent 0d7c87d
@pborreli pborreli authored
View
6 example/example3_sequential_commands.php
@@ -7,8 +7,8 @@
* This requires some rethinking, but also simplifies considerably.
*
* This example shows how nesting many commands still executes them
- * sequentially. Commands are handled and then a value is ecohed in the parent
- * command that clearly shows that the child command hasnt been executed yet.
+ * sequentially. Commands are handled and then a value is echoed in the parent
+ * command that clearly shows that the child command hasn't been executed yet.
*/
namespace MyApp;
@@ -31,7 +31,7 @@ public function __construct(CommandBus $commandBus)
public function slugify(Slugify $command)
{
$this->commandBus->handle(new Lower(array("string" => $command->string)));
- echo "Scheduled some comands, current value: " . $command->string->value . "\n";
+ echo "Scheduled some commands, current value: " . $command->string->value . "\n";
}
public function lower(Lower $command)
View
2  example/tictactoe.php
@@ -150,7 +150,7 @@ public function __construct($identityMap)
public function markField(MarkField $command)
{
if ($command->player !== $this->currentPlayer) {
- throw new \InvalidArgumentException("You are not currenetly on turn.");
+ throw new \InvalidArgumentException("You are not currently on turn.");
}
$this->board->mark($command->field, $command->player);
View
2  src/LiteCQRS/AggregateRepositoryInterface.php
@@ -4,7 +4,7 @@
/**
* Very simple aggregate repository that you can
- * use for reusable behaviors, independent of the underyling
+ * use for reusable behaviors, independent of the underlying
* persistence storage or event sourcing
*/
interface AggregateRepositoryInterface
View
4 src/LiteCQRS/AggregateRoot.php
@@ -2,7 +2,7 @@
namespace LiteCQRS;
-// This is necessary, because JMS is very aggresive about parsing stuff and
+// This is necessary, because JMS is very aggressive about parsing stuff and
// then complaining.
use JMS\SerializerBundle\Annotation\ExclusionPolicy;
@@ -42,7 +42,7 @@ private function executeEvent(DomainEvent $event)
if (!method_exists($this, $method)) {
throw new \BadMethodCallException(
"There is no event named '$method' that can be applied to '" . get_class($this) . "'. " .
- "If you just want to emit an event without appliying changes use the raise() method."
+ "If you just want to emit an event without applying changes use the raise() method."
);
}
View
2  src/LiteCQRS/Bus/EventMessageBus.php
@@ -16,7 +16,7 @@
/**
* Publish an event to the bus.
*
- * @param DomainEvent
+ * @param DomainEvent $event
* @return void
*/
public function publish(DomainEvent $event);
View
2  src/LiteCQRS/Bus/SequentialCommandBus.php
@@ -33,7 +33,7 @@ public function __construct(array $proxyFactories = array())
}
/**
- * Given a Commmand Type (ClassName) return an instance of
+ * Given a Command Type (ClassName) return an instance of
* the service that is handling this command.
*
* @param string $commandType A Command Class name
View
2  src/LiteCQRS/DefaultDomainEvent.php
@@ -1,7 +1,7 @@
<?php
namespace LiteCQRS;
-// This is necessary, because JMS is very aggresive about parsing stuff and
+// This is necessary, because JMS is very aggressive about parsing stuff and
// then complaining.
use JMS\SerializerBundle\Annotation\ExclusionPolicy;
use LiteCQRS\Bus\EventMessageHeader;
View
2  src/LiteCQRS/DomainEvent.php
@@ -11,7 +11,7 @@
* Changing events can cause weird problems, so avoid this.
*
* You can apply events to {@see AggregateRoot} objects and they record
- * that these events have happend. You have to make sure that events
+ * that these events have happened. You have to make sure that events
* are processed into the {@see EventStore} before the {@see CommandBus}
* commits all the events. This happens right before the commit, when
* the CommandBus iterates over the {@see IdentityMapInterface} and passes
View
2  src/LiteCQRS/DomainEventProvider.php
@@ -2,7 +2,7 @@
namespace LiteCQRS;
-// This is necessary, because JMS is very aggresive about parsing stuff and
+// This is necessary, because JMS is very aggressive about parsing stuff and
// then complaining.
use JMS\SerializerBundle\Annotation\ExclusionPolicy;
View
2  src/LiteCQRS/DomainObjectChanged.php
@@ -7,7 +7,7 @@
* Generic event that can be used when lazy.
*
* It allows to set the event name dynamically and accepts an array of data as
- * properties. Access to non existant properties returns null through
+ * properties. Access to non existent properties returns null through
* {@link __get()}.
*/
class DomainObjectChanged implements DomainEvent
View
2  src/LiteCQRS/EventStore/EventStoreInterface.php
@@ -14,7 +14,7 @@
*
* Makes sure that events are not added multiple times. Events
* have identity and can only be executed once. Multiple
- * registiration of the same event is ignored.
+ * registration of the same event is ignored.
*/
public function store(DomainEvent $event);
}
View
2  src/LiteCQRS/Plugin/CRUD/AggregateResource.php
@@ -14,7 +14,7 @@
* on aggregate roots of this type.
*
* Important: By default this implementation is vulnerable
- * to mass assignment vulnarbility. See {@link
+ * to mass assignment vulnerability. See {@link
* http://chadmoran.com/posts/mass-assignment-vulnerability-isn-quo-t-just-for-rails}
* for more details. To fix this issue implement a white
* list of properties that are allowed to be updated using
View
2  src/LiteCQRS/Plugin/Monolog/MonologDebugLogger.php
@@ -11,7 +11,7 @@
use Monolog\Logger;
/**
- * Logs all commands or events and their sucess/failure status
+ * Logs all commands or events and their success/failure status
* into a logger. The input data is json serialized during that process.
*/
class MonologDebugLogger implements MessageHandlerInterface
View
2  tests/LiteCQRS/DomainObjectChangedTest.php
@@ -4,7 +4,7 @@
class DomainObjectChangedTest extends \PHPUnit_Framework_TestCase
{
- public function testThrowsExceptionOnNonExistant()
+ public function testThrowsExceptionOnNonExistent()
{
$this->setExpectedException("RuntimeException");
$event = new DomainObjectChanged("TestEvent", array("foo" => "bar"));
Please sign in to comment.
Something went wrong with that request. Please try again.