Browse Source

Couple of coding standards things.

pull/839/head
Adam Vessey 4 years ago
parent
commit
00b8f475bd
  1. 6
      src/EventGenerator/EmitEvent.php
  2. 3
      src/EventSubscriber/StompHeaderEventSubscriber.php
  3. 5
      src/Plugin/Action/AbstractGenerateDerivativeBase.php

6
src/EventGenerator/EmitEvent.php

@ -54,7 +54,7 @@ abstract class EmitEvent extends ConfigurableActionBase implements ContainerFact
protected $stomp;
/**
* Event dispatcher service..
* Event dispatcher service.
*
* @var \Symfony\Component\EventDispatcher\EventDispatcherInterface
*/
@ -84,10 +84,10 @@ abstract class EmitEvent extends ConfigurableActionBase implements ContainerFact
* EventGenerator service to serialize AS2 events.
* @param \Stomp\StatefulStomp $stomp
* Stomp client.
* @param \Drupal\jwt\Authentication\Provider\JwtAuth $auth
* JWT Auth client.
* @param \Drupal\Core\Messenger\MessengerInterface $messenger
* The messenger.
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher
* Event dispatcher service.
*/
public function __construct(
array $configuration,

3
src/EventSubscriber/StompHeaderEventSubscriber.php

@ -5,10 +5,8 @@ namespace Drupal\islandora\EventSubscriber;
use Drupal\islandora\Event\StompHeaderEventInterface;
use Drupal\jwt\Authentication\Provider\JwtAuth;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
@ -61,4 +59,5 @@ class StompHeaderEventSubscriber implements EventSubscriberInterface {
}
}
}

5
src/Plugin/Action/AbstractGenerateDerivativeBase.php

@ -11,7 +11,6 @@ use Drupal\islandora\IslandoraUtils;
use Drupal\islandora\EventGenerator\EmitEvent;
use Drupal\islandora\EventGenerator\EventGeneratorInterface;
use Drupal\islandora\MediaSource\MediaSourceService;
use Drupal\jwt\Authentication\Provider\JwtAuth;
use Drupal\token\TokenInterface;
use Stomp\StatefulStomp;
use Symfony\Component\DependencyInjection\ContainerInterface;
@ -81,8 +80,6 @@ class AbstractGenerateDerivativeBase extends EmitEvent {
* EventGenerator service to serialize AS2 events.
* @param \Stomp\StatefulStomp $stomp
* Stomp client.
* @param \Drupal\jwt\Authentication\Provider\JwtAuth $auth
* JWT Auth client.
* @param \Drupal\islandora\IslandoraUtils $utils
* Islandora utility functions.
* @param \Drupal\islandora\MediaSource\MediaSourceService $media_source
@ -95,6 +92,8 @@ class AbstractGenerateDerivativeBase extends EmitEvent {
* The system file config.
* @param \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager
* Field Manager service.
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher
* Event dispatcher service.
*/
public function __construct(
array $configuration,

Loading…
Cancel
Save