Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
stovak committed Nov 4, 2021
1 parent 87f7cd5 commit e3e5a58
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/Events/PantheonEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

namespace Drupal\search_api_pantheon\Events;


use Psr\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventDispatcher as SymfonyEventDispatcher;

/**
* Pantheon Event Dispatcher
* Pantheon Event Dispatcher.
*/
class PantheonEventDispatcher
extends SymfonyEventDispatcher
implements EventDispatcherInterface {
class PantheonEventDispatcher extends SymfonyEventDispatcher implements EventDispatcherInterface {

/**
* @var array
Expand All @@ -27,13 +24,13 @@ class PantheonEventDispatcher
* Override to fix issues with zero listeners.
*
* @param null $eventName
* Name of the Event in question.
* Name of the Event in question.
*
* @return array|mixed
* Any listeners or empty array.
* Any listeners or empty array.
*/
public function getListeners($eventName = NULL) {
if (empty($this->listeners)){
if (empty($this->listeners)) {
return [];
}

Expand Down

0 comments on commit e3e5a58

Please sign in to comment.