Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Aug 31, 2016
1 parent e84cabe commit 89f3800
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DI/EventDispatcherExtension.php
Expand Up @@ -85,21 +85,21 @@ private function registerSubscriber(ServiceDefinition $dispatcher, $service, $cl
$dispatcher->addSetup('?->addListenerService(?, ?)', [
'@self',
$event,
[$service, $params], //callback
[$service, $params], // callback
]);
} elseif (is_string($params[0])) {
$dispatcher->addSetup('?->addListenerService(?, ?, ?)', [
'@self',
$event,
[$service, $params[0]], //callback
[$service, $params[0]], // callback
isset($params[1]) ? $params[1] : 0, // priority
]);
} else {
foreach ($params as $listener) {
$dispatcher->addSetup('?->addListenerService(?, ?, ?)', [
'@self',
$event,
[$service, $listener[0]], //callback
[$service, $listener[0]], // callback
isset($listener[1]) ? $listener[1] : 0, // priority
]);
}
Expand Down

0 comments on commit 89f3800

Please sign in to comment.