Skip to content

Commit

Permalink
fixed psr2 violations
Browse files Browse the repository at this point in the history
  • Loading branch information
shrink0r committed Oct 21, 2014
1 parent c3b0073 commit 8dbf63a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/StateMachine/StateMachine.php
Expand Up @@ -202,7 +202,7 @@ public function getTransitions($state_name = '', $event_name = '')
{
if (!empty($event_name)) {
return $this->getEventTransitions($state_name, $event_name);
} else if (!empty($state_name)) {
} elseif (!empty($state_name)) {
return $this->getStateTransitions($state_name);
} else {
return $this->transitions;
Expand Down
12 changes: 6 additions & 6 deletions tests/StateMachine/EventEmittingStateMachineTest.php
Expand Up @@ -22,7 +22,7 @@ public function testExecutionStartedEvent()
$execution_was_started = false;
$state_machine->on(
EventEmittingStateMachine::ON_EXECUTION_STARTED,
function(
function (
StateMachineInterface $state_machine,
StatefulSubjectInterface $subject,
StateInterface $entered_state
Expand All @@ -44,7 +44,7 @@ public function testExecutionSuspendedEvent()
$execution_was_suspended = false;
$state_machine->on(
EventEmittingStateMachine::ON_EXECUTION_SUSPENDED,
function(
function (
StateMachineInterface $state_machine,
StatefulSubjectInterface $subject,
StateInterface $entered_state
Expand All @@ -66,7 +66,7 @@ public function testExecutionResumedEvent()
$execution_was_resumed = false;
$state_machine->on(
EventEmittingStateMachine::ON_EXECUTION_RESUMED,
function(
function (
StateMachineInterface $state_machine,
StatefulSubjectInterface $subject,
StateInterface $entered_state
Expand All @@ -88,7 +88,7 @@ public function testExecutionFinishedEvent()
$execution_was_finished = false;
$state_machine->on(
EventEmittingStateMachine::ON_EXECUTION_FINISHED,
function(
function (
StateMachineInterface $state_machine,
StatefulSubjectInterface $subject,
StateInterface $entered_state
Expand All @@ -110,7 +110,7 @@ public function testStateEnteredEvent()
$entered_states = [];
$state_machine->on(
EventEmittingStateMachine::ON_STATE_ENTERED,
function(
function (
StateMachineInterface $state_machine,
StatefulSubjectInterface $subject,
StateInterface $entered_state
Expand All @@ -132,7 +132,7 @@ public function testStateExited()
$exited_states = [];
$state_machine->on(
EventEmittingStateMachine::ON_STATE_EXITED,
function(
function (
StateMachineInterface $state_machine,
StatefulSubjectInterface $subject,
StateInterface $exited_state
Expand Down

0 comments on commit 8dbf63a

Please sign in to comment.