From 833a0267c04d496468e9af60b34415b89a2c60ce Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tobias=20St=C3=B6ckler?= <tobiasstoeckler@googlemail.com>
Date: Fri, 13 Nov 2015 20:00:26 +0100
Subject: [PATCH] by tstoeckler: Remove verbosity of class names

---
 libraries.module                                   |  2 +-
 src/Extension/ExtensionHandler.php                 |  3 ---
 src/ExternalLibrary/Asset/AssetLibrary.php         |  4 ++--
 .../Asset/AssetLibraryInterface.php                |  4 ++--
 .../Asset/SingleAssetLibraryTrait.php              |  4 ++--
 .../InvalidLibraryDependencyException.php          | 10 +++++-----
 ...alLibraryInterface.php => LibraryInterface.php} |  4 ++--
 ...ternalLibraryManager.php => LibraryManager.php} | 14 ++++++--------
 ...erInterface.php => LibraryManagerInterface.php} |  6 +++---
 .../{ExternalLibraryTrait.php => LibraryTrait.php} | 10 +++++-----
 .../Local/LocalLibraryInterface.php                |  4 ++--
 src/ExternalLibrary/Local/LocatorInterface.php     |  2 --
 src/ExternalLibrary/PhpFile/PhpFileLibrary.php     |  4 ++--
 ...rnalLibraryRegistry.php => LibraryRegistry.php} |  6 +++---
 ...yInterface.php => LibraryRegistryInterface.php} |  6 +++---
 .../Remote/RemoteLibraryInterface.php              |  4 ++--
 .../Utility/DependencyAccessorTrait.php            |  4 ++--
 .../Utility/LibraryAccessorTrait.php               |  4 ++--
 .../ExternalLibrary/Asset/AssetLibraryTest.php     |  4 ++--
 .../ExternalLibrary/PhpFile/PhpFileLibraryTest.php |  6 +++---
 ...ernelTestBase.php => LibraryKernelTestBase.php} |  6 +++---
 21 files changed, 52 insertions(+), 59 deletions(-)
 rename src/ExternalLibrary/{ExternalLibraryInterface.php => LibraryInterface.php} (91%)
 rename src/ExternalLibrary/{ExternalLibraryManager.php => LibraryManager.php} (78%)
 rename src/ExternalLibrary/{ExternalLibraryManagerInterface.php => LibraryManagerInterface.php} (81%)
 rename src/ExternalLibrary/{ExternalLibraryTrait.php => LibraryTrait.php} (74%)
 rename src/ExternalLibrary/Registry/{ExternalLibraryRegistry.php => LibraryRegistry.php} (93%)
 rename src/ExternalLibrary/Registry/{ExternalLibraryRegistryInterface.php => LibraryRegistryInterface.php} (69%)
 rename tests/src/Kernel/{ExternalLibraryKernelTestBase.php => LibraryKernelTestBase.php} (83%)

diff --git a/libraries.module b/libraries.module
index 198e483..d339d75 100644
--- a/libraries.module
+++ b/libraries.module
@@ -13,7 +13,7 @@ use Drupal\libraries\ExternalLibrary\Asset\AssetLibraryInterface;
  * Implements hook_library_info_build().
  */
 function libraries_library_info_build() {
-  /** @var \Drupal\libraries\ExternalLibrary\ExternalLibraryManagerInterface $library_manager */
+  /** @var \Drupal\libraries\ExternalLibrary\LibraryManagerInterface $library_manager */
   $library_manager = \Drupal::service('libraries.manager');
 
   $core_libraries = [];
diff --git a/src/Extension/ExtensionHandler.php b/src/Extension/ExtensionHandler.php
index 37434de..89dc4b0 100644
--- a/src/Extension/ExtensionHandler.php
+++ b/src/Extension/ExtensionHandler.php
@@ -11,7 +11,6 @@ use Drupal\Core\Extension\Extension as CoreExtension;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\Extension\ThemeHandlerInterface;
 
-
 /**
  * @todo
  */
@@ -89,6 +88,4 @@ class ExtensionHandler implements ExtensionHandlerInterface {
     );
   }
 
-
 }
-
diff --git a/src/ExternalLibrary/Asset/AssetLibrary.php b/src/ExternalLibrary/Asset/AssetLibrary.php
index 4d266f3..dedb5a9 100644
--- a/src/ExternalLibrary/Asset/AssetLibrary.php
+++ b/src/ExternalLibrary/Asset/AssetLibrary.php
@@ -7,7 +7,7 @@
 
 namespace Drupal\libraries\ExternalLibrary\Asset;
 
-use Drupal\libraries\ExternalLibrary\ExternalLibraryTrait;
+use Drupal\libraries\ExternalLibrary\LibraryTrait;
 use Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface;
 use Drupal\libraries\ExternalLibrary\Local\LocalLibraryTrait;
 use Drupal\libraries\ExternalLibrary\Remote\RemoteLibraryInterface;
@@ -19,7 +19,7 @@ use Drupal\libraries\ExternalLibrary\Remote\RemoteLibraryTrait;
 class AssetLibrary implements AssetLibraryInterface, LocalLibraryInterface, RemoteLibraryInterface {
 
   use
-    ExternalLibraryTrait,
+    LibraryTrait,
     LocalLibraryTrait,
     RemoteLibraryTrait,
     SingleAssetLibraryTrait,
diff --git a/src/ExternalLibrary/Asset/AssetLibraryInterface.php b/src/ExternalLibrary/Asset/AssetLibraryInterface.php
index b11040c..11bc11f 100644
--- a/src/ExternalLibrary/Asset/AssetLibraryInterface.php
+++ b/src/ExternalLibrary/Asset/AssetLibraryInterface.php
@@ -7,7 +7,7 @@
 
 namespace Drupal\libraries\ExternalLibrary\Asset;
 
-use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface;
+use Drupal\libraries\ExternalLibrary\LibraryInterface;
 
 /**
  * Provides an interface for library with assets.
@@ -16,7 +16,7 @@ use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface;
  *
  * @todo Explain
  */
-interface AssetLibraryInterface extends ExternalLibraryInterface {
+interface AssetLibraryInterface extends LibraryInterface {
 
   /**
    * Returns a core asset library array structure for this library.
diff --git a/src/ExternalLibrary/Asset/SingleAssetLibraryTrait.php b/src/ExternalLibrary/Asset/SingleAssetLibraryTrait.php
index 4bacad8..2dca415 100644
--- a/src/ExternalLibrary/Asset/SingleAssetLibraryTrait.php
+++ b/src/ExternalLibrary/Asset/SingleAssetLibraryTrait.php
@@ -47,7 +47,7 @@ trait SingleAssetLibraryTrait {
   /**
    * Processes a list of dependencies into a list of attachable library IDs.
    *
-   * @param \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface[] $dependencies
+   * @param \Drupal\libraries\ExternalLibrary\LibraryInterface[] $dependencies
    *   An list of external libraries.
    *
    * @return string[]
@@ -60,7 +60,7 @@ trait SingleAssetLibraryTrait {
     foreach ($dependencies as $dependency) {
       if (!$dependency instanceof AssetLibraryInterface) {
         // @todo Somehow integrate this with canBeAttached().
-        /** @var \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface $this */
+        /** @var \Drupal\libraries\ExternalLibrary\LibraryInterface $this */
         throw new InvalidLibraryDependencyException($this, $dependency);
       }
 
diff --git a/src/ExternalLibrary/Exception/InvalidLibraryDependencyException.php b/src/ExternalLibrary/Exception/InvalidLibraryDependencyException.php
index 004691e..6f0d138 100644
--- a/src/ExternalLibrary/Exception/InvalidLibraryDependencyException.php
+++ b/src/ExternalLibrary/Exception/InvalidLibraryDependencyException.php
@@ -7,7 +7,7 @@
 
 namespace Drupal\libraries\ExternalLibrary\Exception;
 use Drupal\libraries\ExternalLibrary\Utility\DependencyAccessorTrait;
-use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface;
+use Drupal\libraries\ExternalLibrary\LibraryInterface;
 use Drupal\libraries\ExternalLibrary\Utility\LibraryAccessorTrait;
 
 /**
@@ -21,9 +21,9 @@ class InvalidLibraryDependencyException extends \UnexpectedValueException {
   /**
    * Constructs a library exception.
    *
-   * @param \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface $library
+   * @param \Drupal\libraries\ExternalLibrary\LibraryInterface $library
    *   The library with the invalid dependency.
-   * @param \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface $dependency
+   * @param \Drupal\libraries\ExternalLibrary\LibraryInterface $dependency
    *   The dependency.
    * @param string $message
    *   (optional) The exception message.
@@ -33,8 +33,8 @@ class InvalidLibraryDependencyException extends \UnexpectedValueException {
    *   (optional) The previous exception.
    */
   public function __construct(
-    ExternalLibraryInterface $library,
-    ExternalLibraryInterface $dependency,
+    LibraryInterface $library,
+    LibraryInterface $dependency,
     $message = '',
     $code = 0,
     \Exception $previous = NULL
diff --git a/src/ExternalLibrary/ExternalLibraryInterface.php b/src/ExternalLibrary/LibraryInterface.php
similarity index 91%
rename from src/ExternalLibrary/ExternalLibraryInterface.php
rename to src/ExternalLibrary/LibraryInterface.php
index 211fb75..024bc23 100644
--- a/src/ExternalLibrary/ExternalLibraryInterface.php
+++ b/src/ExternalLibrary/LibraryInterface.php
@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Contains \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface.
+ * Contains \Drupal\libraries\ExternalLibrary\LibraryInterface.
  */
 
 namespace Drupal\libraries\ExternalLibrary;
@@ -11,7 +11,7 @@ namespace Drupal\libraries\ExternalLibrary;
 /**
  * Provides an interface for different types of external libraries.
  */
-interface ExternalLibraryInterface {
+interface LibraryInterface {
 
   /**
    * Returns the ID of the library.
diff --git a/src/ExternalLibrary/ExternalLibraryManager.php b/src/ExternalLibrary/LibraryManager.php
similarity index 78%
rename from src/ExternalLibrary/ExternalLibraryManager.php
rename to src/ExternalLibrary/LibraryManager.php
index 74c9209..9e686ca 100644
--- a/src/ExternalLibrary/ExternalLibraryManager.php
+++ b/src/ExternalLibrary/LibraryManager.php
@@ -2,26 +2,24 @@
 
 /**
  * @file
- * Contains \Drupal\libraries\ExternalLibrary\ExternalLibraryManager.
+ * Contains \Drupal\libraries\ExternalLibrary\LibraryManager.
  */
 
 namespace Drupal\libraries\ExternalLibrary;
-use Drupal\Component\Plugin\Factory\FactoryInterface;
 use Drupal\libraries\Extension\ExtensionHandlerInterface;
-use Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface;
 use Drupal\libraries\ExternalLibrary\PhpFile\PhpFileLibraryInterface;
 use Drupal\libraries\ExternalLibrary\PhpFile\PhpFileLoaderInterface;
-use Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistryInterface;
+use Drupal\libraries\ExternalLibrary\Registry\LibraryRegistryInterface;
 
 /**
  * Provides a manager for external libraries.
  */
-class ExternalLibraryManager implements ExternalLibraryManagerInterface {
+class LibraryManager implements LibraryManagerInterface {
 
   /**
    * The library registry.
    *
-   * @var \Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistryInterface
+   * @var \Drupal\libraries\ExternalLibrary\Registry\LibraryRegistryInterface
    */
   protected $registry;
 
@@ -42,7 +40,7 @@ class ExternalLibraryManager implements ExternalLibraryManagerInterface {
   /**
    * Constructs an external library manager.
    *
-   * @param \Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistryInterface $registry
+   * @param \Drupal\libraries\ExternalLibrary\Registry\LibraryRegistryInterface $registry
    *   The library registry.
    * @param \Drupal\libraries\Extension\ExtensionHandlerInterface $extension_handler
    *   The extension handler.
@@ -50,7 +48,7 @@ class ExternalLibraryManager implements ExternalLibraryManagerInterface {
    *   The PHP file loader.
    */
   public function __construct(
-    ExternalLibraryRegistryInterface $registry,
+    LibraryRegistryInterface $registry,
     ExtensionHandlerInterface $extension_handler,
     PhpFileLoaderInterface $php_file_loader
   ) {
diff --git a/src/ExternalLibrary/ExternalLibraryManagerInterface.php b/src/ExternalLibrary/LibraryManagerInterface.php
similarity index 81%
rename from src/ExternalLibrary/ExternalLibraryManagerInterface.php
rename to src/ExternalLibrary/LibraryManagerInterface.php
index 2dc787b..58e7dc8 100644
--- a/src/ExternalLibrary/ExternalLibraryManagerInterface.php
+++ b/src/ExternalLibrary/LibraryManagerInterface.php
@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Contains \Drupal\libraries\ExternalLibrary\ExternalLibraryManagerInterface.
+ * Contains \Drupal\libraries\ExternalLibrary\LibraryManagerInterface.
  */
 
 namespace Drupal\libraries\ExternalLibrary;
@@ -11,7 +11,7 @@ namespace Drupal\libraries\ExternalLibrary;
 /**
  * Provides an interface for external library managers.
  */
-interface ExternalLibraryManagerInterface {
+interface LibraryManagerInterface {
 
   /**
    * Gets the list of libraries that are required by enabled extensions.
@@ -19,7 +19,7 @@ interface ExternalLibraryManagerInterface {
    * Modules, themes, and installation profiles can declare library dependencies
    * in their info files.
    *
-   * @return \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface[]|\Generator
+   * @return \Drupal\libraries\ExternalLibrary\LibraryInterface[]|\Generator
    *   An array of libraries keyed by their ID.
    *
    * @todo Expand the documentation.
diff --git a/src/ExternalLibrary/ExternalLibraryTrait.php b/src/ExternalLibrary/LibraryTrait.php
similarity index 74%
rename from src/ExternalLibrary/ExternalLibraryTrait.php
rename to src/ExternalLibrary/LibraryTrait.php
index f565fe7..58e5036 100644
--- a/src/ExternalLibrary/ExternalLibraryTrait.php
+++ b/src/ExternalLibrary/LibraryTrait.php
@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Contains \Drupal\libraries\ExternalLibrary\ExternalLibraryTrait.
+ * Contains \Drupal\libraries\ExternalLibrary\LibraryTrait.
  */
 
 namespace Drupal\libraries\ExternalLibrary;
@@ -10,7 +10,7 @@ namespace Drupal\libraries\ExternalLibrary;
 /**
  * Provides a base external library implementation.
  */
-trait ExternalLibraryTrait {
+trait LibraryTrait {
 
   /**
    * The library ID.
@@ -25,7 +25,7 @@ trait ExternalLibraryTrait {
    * @return string
    *   The library ID. This must be unique among all known libraries.
    *
-   * @see \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface::getId()
+   * @see \Drupal\libraries\ExternalLibrary\LibraryInterface::getId()
    */
   public function getId() {
     return $this->id;
@@ -37,7 +37,7 @@ trait ExternalLibraryTrait {
    * @return string
    *   The version string, for example 1.0, 2.1.4, or 3.0.0-alpha5.
    *
-   * @see \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface::getVersion()
+   * @see \Drupal\libraries\ExternalLibrary\LibraryInterface::getVersion()
    */
   public function getVersion() {
     // @todo Turn into something useful and split into some other trait.
@@ -50,7 +50,7 @@ trait ExternalLibraryTrait {
    * @return array
    *   An array of library IDs of libraries that the library depends on.
    *
-   * @see \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface::getDependencies()
+   * @see \Drupal\libraries\ExternalLibrary\LibraryInterface::getDependencies()
    */
   public function getDependencies() {
     // @todo Turn into something useful and split into some other trait.
diff --git a/src/ExternalLibrary/Local/LocalLibraryInterface.php b/src/ExternalLibrary/Local/LocalLibraryInterface.php
index 15d4650..6da1e0e 100644
--- a/src/ExternalLibrary/Local/LocalLibraryInterface.php
+++ b/src/ExternalLibrary/Local/LocalLibraryInterface.php
@@ -8,7 +8,7 @@
 namespace Drupal\libraries\ExternalLibrary\Local;
 
 use Drupal\Component\Plugin\Factory\FactoryInterface;
-use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface;
+use Drupal\libraries\ExternalLibrary\LibraryInterface;
 
 /**
  * Provides an interface for local libraries.
@@ -23,7 +23,7 @@ use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface;
  *
  * @see \Drupal\libraries\ExternalLibrary\Local\LocatorInterface
  */
-interface LocalLibraryInterface extends ExternalLibraryInterface {
+interface LocalLibraryInterface extends LibraryInterface {
 
   /**
    * Checks whether the library is installed.
diff --git a/src/ExternalLibrary/Local/LocatorInterface.php b/src/ExternalLibrary/Local/LocatorInterface.php
index dbaad0c..4b8d03f 100644
--- a/src/ExternalLibrary/Local/LocatorInterface.php
+++ b/src/ExternalLibrary/Local/LocatorInterface.php
@@ -7,8 +7,6 @@
 
 namespace Drupal\libraries\ExternalLibrary\Local;
 
-use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface;
-
 /**
  * Provides an interface for library locators.
  *
diff --git a/src/ExternalLibrary/PhpFile/PhpFileLibrary.php b/src/ExternalLibrary/PhpFile/PhpFileLibrary.php
index 788f007..4ed4617 100644
--- a/src/ExternalLibrary/PhpFile/PhpFileLibrary.php
+++ b/src/ExternalLibrary/PhpFile/PhpFileLibrary.php
@@ -9,7 +9,7 @@ namespace Drupal\libraries\ExternalLibrary\PhpFile;
 
 use Drupal\Component\Plugin\Factory\FactoryInterface;
 use Drupal\libraries\ExternalLibrary\Exception\LibraryNotInstalledException;
-use Drupal\libraries\ExternalLibrary\ExternalLibraryTrait;
+use Drupal\libraries\ExternalLibrary\LibraryTrait;
 use Drupal\libraries\ExternalLibrary\Local\LocalLibraryTrait;
 
 /**
@@ -17,7 +17,7 @@ use Drupal\libraries\ExternalLibrary\Local\LocalLibraryTrait;
  */
 class PhpFileLibrary implements PhpFileLibraryInterface {
 
-  use ExternalLibraryTrait;
+  use LibraryTrait;
   use LocalLibraryTrait;
 
   /**
diff --git a/src/ExternalLibrary/Registry/ExternalLibraryRegistry.php b/src/ExternalLibrary/Registry/LibraryRegistry.php
similarity index 93%
rename from src/ExternalLibrary/Registry/ExternalLibraryRegistry.php
rename to src/ExternalLibrary/Registry/LibraryRegistry.php
index a98e3b3..e038476 100644
--- a/src/ExternalLibrary/Registry/ExternalLibraryRegistry.php
+++ b/src/ExternalLibrary/Registry/LibraryRegistry.php
@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Contains \Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistry.
+ * Contains \Drupal\libraries\ExternalLibrary\Registry\LibraryRegistry.
  */
 
 namespace Drupal\libraries\ExternalLibrary\Registry;
@@ -19,7 +19,7 @@ use Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface;
  * @todo Allow for JavaScript CDN's, Packagist, etc. to act as library
  *   registries.
  */
-class ExternalLibraryRegistry implements ExternalLibraryRegistryInterface {
+class LibraryRegistry implements LibraryRegistryInterface {
 
   /**
    * The serializer for the library definition files.
@@ -118,7 +118,7 @@ class ExternalLibraryRegistry implements ExternalLibraryRegistryInterface {
    * @param array $definition
    *   The library definition array parsed from the definition JSON file.
    *
-   * @return string|\Drupal\libraries\ExternalLibrary\ExternalLibraryInterface
+   * @return string|\Drupal\libraries\ExternalLibrary\LibraryInterface
    *   The library class.
    *
    * @throws \Drupal\libraries\ExternalLibrary\Exception\LibraryClassNotFoundException
diff --git a/src/ExternalLibrary/Registry/ExternalLibraryRegistryInterface.php b/src/ExternalLibrary/Registry/LibraryRegistryInterface.php
similarity index 69%
rename from src/ExternalLibrary/Registry/ExternalLibraryRegistryInterface.php
rename to src/ExternalLibrary/Registry/LibraryRegistryInterface.php
index 37c1d08..b64d941 100644
--- a/src/ExternalLibrary/Registry/ExternalLibraryRegistryInterface.php
+++ b/src/ExternalLibrary/Registry/LibraryRegistryInterface.php
@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Contains \Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistryInterface.
+ * Contains \Drupal\libraries\ExternalLibrary\Registry\LibraryRegistryInterface.
  */
 
 namespace Drupal\libraries\ExternalLibrary\Registry;
@@ -11,7 +11,7 @@ namespace Drupal\libraries\ExternalLibrary\Registry;
 /**
  * Provides an interface for library registries.
  */
-interface ExternalLibraryRegistryInterface {
+interface LibraryRegistryInterface {
 
   /**
    * Gets a library by its ID.
@@ -19,7 +19,7 @@ interface ExternalLibraryRegistryInterface {
    * @param string $id
    *   The library ID.
    *
-   * @return \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface
+   * @return \Drupal\libraries\ExternalLibrary\LibraryInterface
    *   The library.
    *
    * @throws \Drupal\libraries\ExternalLibrary\Exception\LibraryClassNotFoundException
diff --git a/src/ExternalLibrary/Remote/RemoteLibraryInterface.php b/src/ExternalLibrary/Remote/RemoteLibraryInterface.php
index 5c643d8..7484647 100644
--- a/src/ExternalLibrary/Remote/RemoteLibraryInterface.php
+++ b/src/ExternalLibrary/Remote/RemoteLibraryInterface.php
@@ -7,7 +7,7 @@
 
 namespace Drupal\libraries\ExternalLibrary\Remote;
 
-use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface;
+use Drupal\libraries\ExternalLibrary\LibraryInterface;
 
 /**
  * Provides an interface for remote libraries.
@@ -16,7 +16,7 @@ use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface;
  * not checked whether or not the Drupal site has network access or the remote
  * resource is available.
  */
-interface RemoteLibraryInterface extends ExternalLibraryInterface {
+interface RemoteLibraryInterface extends LibraryInterface {
 
   /**
    * Checks whether the library has a remote URL.
diff --git a/src/ExternalLibrary/Utility/DependencyAccessorTrait.php b/src/ExternalLibrary/Utility/DependencyAccessorTrait.php
index e23a99f..b063fe4 100644
--- a/src/ExternalLibrary/Utility/DependencyAccessorTrait.php
+++ b/src/ExternalLibrary/Utility/DependencyAccessorTrait.php
@@ -15,14 +15,14 @@ trait DependencyAccessorTrait {
   /**
    * The dependency.
    *
-   * @var \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface
+   * @var \Drupal\libraries\ExternalLibrary\LibraryInterface
    */
   protected $dependency;
 
   /**
    * Returns the dependency.
    *
-   * @return \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface
+   * @return \Drupal\libraries\ExternalLibrary\LibraryInterface
    *   The library.
    */
   public function getLibrary() {
diff --git a/src/ExternalLibrary/Utility/LibraryAccessorTrait.php b/src/ExternalLibrary/Utility/LibraryAccessorTrait.php
index c4739c3..d4c144e 100644
--- a/src/ExternalLibrary/Utility/LibraryAccessorTrait.php
+++ b/src/ExternalLibrary/Utility/LibraryAccessorTrait.php
@@ -15,14 +15,14 @@ trait LibraryAccessorTrait {
   /**
    * The library.
    *
-   * @var \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface
+   * @var \Drupal\libraries\ExternalLibrary\LibraryInterface
    */
   protected $library;
 
   /**
    * Returns the library.
    *
-   * @return \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface
+   * @return \Drupal\libraries\ExternalLibrary\LibraryInterface
    *   The library.
    */
   public function getLibrary() {
diff --git a/tests/src/Kernel/ExternalLibrary/Asset/AssetLibraryTest.php b/tests/src/Kernel/ExternalLibrary/Asset/AssetLibraryTest.php
index e6c863e..851aa3a 100644
--- a/tests/src/Kernel/ExternalLibrary/Asset/AssetLibraryTest.php
+++ b/tests/src/Kernel/ExternalLibrary/Asset/AssetLibraryTest.php
@@ -11,14 +11,14 @@ use Drupal\libraries\ExternalLibrary\Asset\AssetLibrary;
 use Drupal\libraries\ExternalLibrary\Exception\LibraryClassNotFoundException;
 use Drupal\libraries\ExternalLibrary\Exception\LibraryDefinitionNotFoundException;
 use Drupal\Tests\libraries\Kernel\ExternalLibrary\TestLibraryFilesStream;
-use Drupal\Tests\libraries\Kernel\ExternalLibraryKernelTestBase;
+use Drupal\Tests\libraries\Kernel\LibraryKernelTestBase;
 
 /**
  * Tests that external asset libraries are registered as core asset libraries.
  *
  * @group libraries
  */
-class AssetLibraryTest extends ExternalLibraryKernelTestBase {
+class AssetLibraryTest extends LibraryKernelTestBase {
 
   /**
    * {@inheritdoc}
diff --git a/tests/src/Kernel/ExternalLibrary/PhpFile/PhpFileLibraryTest.php b/tests/src/Kernel/ExternalLibrary/PhpFile/PhpFileLibraryTest.php
index 77f8a1e..7897472 100644
--- a/tests/src/Kernel/ExternalLibrary/PhpFile/PhpFileLibraryTest.php
+++ b/tests/src/Kernel/ExternalLibrary/PhpFile/PhpFileLibraryTest.php
@@ -11,14 +11,14 @@ use Drupal\libraries\ExternalLibrary\Exception\LibraryClassNotFoundException;
 use Drupal\libraries\ExternalLibrary\Exception\LibraryDefinitionNotFoundException;
 use Drupal\libraries\ExternalLibrary\PhpFile\PhpFileLibrary;
 use Drupal\Tests\libraries\Kernel\ExternalLibrary\TestLibraryFilesStream;
-use Drupal\Tests\libraries\Kernel\ExternalLibraryKernelTestBase;
+use Drupal\Tests\libraries\Kernel\LibraryKernelTestBase;
 
 /**
  * Tests that the external library manager properly loads PHP file libraries.
  *
  * @group libraries
  */
-class PhpFileLibraryTest extends ExternalLibraryKernelTestBase {
+class PhpFileLibraryTest extends LibraryKernelTestBase {
 
   /**
    * {@inheritdoc}
@@ -28,7 +28,7 @@ class PhpFileLibraryTest extends ExternalLibraryKernelTestBase {
   /**
    * The external library manager.
    *
-   * @var \Drupal\libraries\ExternalLibrary\ExternalLibraryManagerInterface
+   * @var \Drupal\libraries\ExternalLibrary\LibraryManagerInterface
    */
   protected $externalLibraryManager;
 
diff --git a/tests/src/Kernel/ExternalLibraryKernelTestBase.php b/tests/src/Kernel/LibraryKernelTestBase.php
similarity index 83%
rename from tests/src/Kernel/ExternalLibraryKernelTestBase.php
rename to tests/src/Kernel/LibraryKernelTestBase.php
index a9eca4f..32e5f85 100644
--- a/tests/src/Kernel/ExternalLibraryKernelTestBase.php
+++ b/tests/src/Kernel/LibraryKernelTestBase.php
@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Contains \Drupal\Tests\libraries\Kernel\KernelTestBase.
+ * Contains \Drupal\Tests\libraries\Kernel\LibraryKernelTestBase.
  */
 
 namespace Drupal\Tests\libraries\Kernel;
@@ -12,12 +12,12 @@ use Drupal\KernelTests\KernelTestBase;
 /**
  * Provides an improved version of the core kernel test base class.
  */
-abstract class ExternalLibraryKernelTestBase extends KernelTestBase {
+abstract class LibraryKernelTestBase extends KernelTestBase {
 
   /**
    * The external library registry.
    *
-   * @var \Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistryInterface
+   * @var \Drupal\libraries\ExternalLibrary\Registry\LibraryRegistryInterface
    */
   protected $externalLibraryRegistry;
 
-- 
GitLab