Skip to content

Commit

Permalink
Merge pull request #61 from dunglas/patch-2
Browse files Browse the repository at this point in the history
Fix PHPDoc and CS in CurrentUserListener
  • Loading branch information
DavidBadura committed May 9, 2014
2 parents fb377ff + c4de7a4 commit c8f3fc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SimpleThings/EntityAudit/Request/CurrentUserListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(AuditConfiguration $config, SecurityContext $context
/**
* Handles access authorization.
*
* @param Event $event An Event instance
* @param GetResponseEvent $event An Event instance
*/
public function handle(GetResponseEvent $event)
{
Expand All @@ -62,8 +62,8 @@ public function handle(GetResponseEvent $event)
if ($this->securityContext) {
$token = $this->securityContext->getToken();
if ($token && $token->isAuthenticated()) {
$this->auditConfiguration->setCurrentUsername( $token->getUsername() );
$this->auditConfiguration->setCurrentUsername($token->getUsername());
}
}
}
}
}

0 comments on commit c8f3fc5

Please sign in to comment.