Skip to content

Commit

Permalink
Correct indentation per Travis for multi-line function call
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffblack360 committed Jan 25, 2016
1 parent 6411db0 commit 2acb041
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions src/Event/EventManager.php
Expand Up @@ -449,10 +449,13 @@ public function prioritisedListeners($eventKey)
*/
public function matchingListeners($eventKeyPattern)
{
$matchPattern = '/'. $eventKeyPattern .'/';
$matches = array_intersect_key($this->_listeners,
array_flip(preg_grep($matchPattern,
array_keys($this->_listeners), 0)));
$matchPattern = '/' . $eventKeyPattern . '/';
$matches = array_intersect_key(
$this->_listeners,
array_flip(
preg_grep($matchPattern, array_keys($this->_listeners), 0)
)
);
return $matches;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Event/EventManagerTest.php
Expand Up @@ -172,7 +172,7 @@ public function testMatchingListeners()
$this->assertArrayHasKey('event.test', $manager->matchingListeners('test$'));

$expected = ['fake.event', 'real.event', 'test.event', 'event.test'];
$result = $manager->matchingListeners('event');
$result = $manager->matchingListeners('event');
$this->assertNotEmpty($result);
$this->assertSame($expected, array_keys($result));

Expand Down

0 comments on commit 2acb041

Please sign in to comment.