Skip to content

Commit

Permalink
Add CI badges
Browse files Browse the repository at this point in the history
  • Loading branch information
mleko committed Sep 27, 2016
1 parent 9ea3f6d commit 0399b62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
#mleko\event

[![Travis CI](https://travis-ci.org/mleko/event.svg?branch=master)](https://travis-ci.org/mleko/event)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mleko/event/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mleko/event/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/mleko/event/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/mleko/event/?branch=master)
2 changes: 1 addition & 1 deletion src/Listener/EventTrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct($oneTime = true)
*/
public function handle($event, \Mleko\Event\Meta $meta)
{
if ($this->oneTime && $this->trappedEvents) {
if ($this->oneTime && !empty($this->trappedEvents)) {
return;
}
$this->trappedEvents[] = $event;
Expand Down

0 comments on commit 0399b62

Please sign in to comment.