Skip to content

Commit

Permalink
Fix: enabled switch for listener
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Jun 3, 2017
1 parent 0e6cbd2 commit 68da2d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/EventListener/TracingStepExecutedListener.php
Expand Up @@ -53,7 +53,7 @@ public function disable()

public function onStepExecuted(StepExecutedEvent $event)
{
if ($this->enabled) {
if (!$this->enabled) {
return;
}

Expand Down Expand Up @@ -95,7 +95,7 @@ public function onStepExecuted(StepExecutedEvent $event)

public function onMigrationAborted(MigrationAbortedEvent $event)
{
if ($this->enabled) {
if (!$this->enabled) {
return;
}

Expand All @@ -112,7 +112,7 @@ public function onMigrationAborted(MigrationAbortedEvent $event)

public function onMigrationSuspended(MigrationSuspendedEvent $event)
{
if ($this->enabled) {
if (!$this->enabled) {
return;
}

Expand Down

0 comments on commit 68da2d2

Please sign in to comment.