From 90418ce97a3f13682b9b884739d68081ed940225 Mon Sep 17 00:00:00 2001 From: dannylamb Date: Thu, 4 Feb 2021 11:38:12 -0400 Subject: [PATCH] Coding standards --- islandora.module | 6 +++--- src/Form/IslandoraSettingsForm.php | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/islandora.module b/islandora.module index 2e2af9d6..ad827d7e 100644 --- a/islandora.module +++ b/islandora.module @@ -21,7 +21,6 @@ use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Site\Settings; use Drupal\Core\Url; use Drupal\islandora\Form\IslandoraSettingsForm; -use Drupal\islandora\GeminiLookup; use Drupal\node\NodeInterface; use Drupal\media\MediaInterface; use Drupal\file\FileInterface; @@ -480,7 +479,8 @@ function islandora_entity_view(array &$build, EntityInterface $entity, EntityVie $scheme = \Drupal::service('file_system')->uriScheme($uri); $flysystem_config = Settings::get('flysystem'); - // Use the file's path if it's in fedora. Otherwise do the UUID -> pair tree thang. + // Use the file's path if it's in fedora. + // Otherwise do the UUID -> pair tree thang. if (isset($flysystem_config[$scheme]) && $flysystem_config[$scheme]['driver'] == 'fedora') { $parts = parse_url($uri); $path = $parts['host'] . $parts['path']; @@ -492,7 +492,7 @@ function islandora_entity_view(array &$build, EntityInterface $entity, EntityVie $fedora_uri = "$fedora_root/$path/fcr:metadata"; } else { - // All non-media entities do the UUID -> pair tree thang. + // All non-media entities do the UUID -> pair tree thang. $path = $mapper->getFedoraPath($entity->uuid()); $path = trim($path, '/'); $fedora_uri = "$fedora_root/$path"; diff --git a/src/Form/IslandoraSettingsForm.php b/src/Form/IslandoraSettingsForm.php index ec9fdfa8..cdaa358d 100644 --- a/src/Form/IslandoraSettingsForm.php +++ b/src/Form/IslandoraSettingsForm.php @@ -7,9 +7,6 @@ use Drupal\Core\Entity\EntityTypeBundleInfoInterface; use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Site\Settings; -use Drupal\Core\Url; -use GuzzleHttp\Exception\ConnectException; -use Islandora\Crayfish\Commons\Client\GeminiClient; use Stomp\Client; use Stomp\Exception\StompException; use Stomp\StatefulStomp;