Skip to content

Commit

Permalink
Comply with PSR coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erickson Reyes committed Mar 8, 2019
1 parent fefa238 commit 982cbdf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public function execute($commandClassInstance): array
$executionResult = [];
$commandClassName = get_class($commandClassInstance);
foreach ($this->commands() as $storedCommandClassName => $commandHandlers) {

if ($storedCommandClassName === $commandClassName) {
foreach ($commandHandlers as $commandHandler) {
$commandHandlerClassName = get_class($commandHandler);
Expand Down Expand Up @@ -102,4 +101,4 @@ private function assignHandlerInstanceToCommandName($commandHandlerInstance, str
{
$this->commands[$commandClassName][] = $commandHandlerInstance;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use InvalidArgumentException;


final class DuplicateCommandHandlerException extends InvalidArgumentException
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

final class MissingHandlerMethodException extends InvalidArgumentException
{
}
}

0 comments on commit 982cbdf

Please sign in to comment.