Browse Source

code style

pull/940/head
Jared Whiklo 2 years ago committed by Seth Shaw
parent
commit
492338c653
  1. 11
      src/Flysystem/Adapter/FedoraAdapter.php
  2. 14
      src/Flysystem/Fedora.php

11
src/Flysystem/Adapter/FedoraAdapter.php

@ -34,11 +34,11 @@ class FedoraAdapter implements AdapterInterface {
*/ */
protected $mimeTypeGuesser; protected $mimeTypeGuesser;
/** /**
* Logger. * Logger.
* *
* @var \Drupal\Core\Logger\LoggerChannelInterface * @var \Drupal\Core\Logger\LoggerChannelInterface
*/ */
protected $logger; protected $logger;
/** /**
@ -49,6 +49,7 @@ class FedoraAdapter implements AdapterInterface {
* @param \Symfony\Component\Mime\MimeTypeGuesserInterface $mime_type_guesser * @param \Symfony\Component\Mime\MimeTypeGuesserInterface $mime_type_guesser
* Mimetype guesser. * Mimetype guesser.
* @param \Drupal\Core\Logger\LoggerChannelInterface $logger * @param \Drupal\Core\Logger\LoggerChannelInterface $logger
* The fedora adapter logger channel.
*/ */
public function __construct( public function __construct(
IFedoraApi $fedora, IFedoraApi $fedora,

14
src/Flysystem/Fedora.php

@ -13,9 +13,8 @@ use Drupal\islandora\Flysystem\Adapter\FedoraAdapter;
use Drupal\jwt\Authentication\Provider\JwtAuth; use Drupal\jwt\Authentication\Provider\JwtAuth;
use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\HandlerStack; use GuzzleHttp\HandlerStack;
use GuzzleHttp\Client;
use Islandora\Chullo\IFedoraApi;
use Islandora\Chullo\FedoraApi; use Islandora\Chullo\FedoraApi;
use Islandora\Chullo\IFedoraApi;
use Psr\Http\Message\RequestInterface; use Psr\Http\Message\RequestInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Mime\MimeTypeGuesserInterface; use Symfony\Component\Mime\MimeTypeGuesserInterface;
@ -50,11 +49,11 @@ class Fedora implements FlysystemPluginInterface, ContainerFactoryPluginInterfac
*/ */
protected $languageManager; protected $languageManager;
/** /**
* Logger. * Logger.
* *
* @var \Drupal\Core\Logger\LoggerChannelInterface * @var \Drupal\Core\Logger\LoggerChannelInterface
*/ */
protected $logger; protected $logger;
/** /**
@ -67,6 +66,7 @@ class Fedora implements FlysystemPluginInterface, ContainerFactoryPluginInterfac
* @param \Drupal\Core\Language\LanguageManagerInterface $language_manager * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
* Language manager. * Language manager.
* @param \Drupal\Core\Logger\LoggerChannelInterface $logger * @param \Drupal\Core\Logger\LoggerChannelInterface $logger
* The fedora adapter logger channel.
*/ */
public function __construct( public function __construct(
IFedoraApi $fedora, IFedoraApi $fedora,

Loading…
Cancel
Save