Skip to content
Snippets Groups Projects

Issue #3257291: Fix the issues reported by phpcs

Compare and
46 files
+ 414
270
Compare changes
  • Side-by-side
  • Inline
Files
46
@@ -18,14 +18,12 @@ use Drupal\libraries\ExternalLibrary\Type\LibraryTypeInterface;
@@ -18,14 +18,12 @@ use Drupal\libraries\ExternalLibrary\Type\LibraryTypeInterface;
class AssetLibrary extends LibraryBase implements
class AssetLibrary extends LibraryBase implements
AssetLibraryInterface,
AssetLibraryInterface,
LocalLibraryInterface,
LocalLibraryInterface,
RemoteLibraryInterface
RemoteLibraryInterface {
{
use
use
LocalLibraryTrait,
LocalLibraryTrait,
RemoteLibraryTrait,
RemoteLibraryTrait,
LocalRemoteAssetTrait
LocalRemoteAssetTrait;
;
/**
/**
* An array containing the CSS assets of the library.
* An array containing the CSS assets of the library.
@@ -44,6 +42,8 @@ class AssetLibrary extends LibraryBase implements
@@ -44,6 +42,8 @@ class AssetLibrary extends LibraryBase implements
/**
/**
* An array of attachable asset library IDs that this library depends on.
* An array of attachable asset library IDs that this library depends on.
*
*
 
* @var array
 
*
* @todo Explain the difference to regular dependencies.
* @todo Explain the difference to regular dependencies.
*/
*/
protected $attachableDependencies = [];
protected $attachableDependencies = [];
@@ -86,6 +86,8 @@ class AssetLibrary extends LibraryBase implements
@@ -86,6 +86,8 @@ class AssetLibrary extends LibraryBase implements
* The library manager that can be used to fetch dependencies.
* The library manager that can be used to fetch dependencies.
*
*
* @return array
* @return array
 
* An array structure that includes the version, CSS, JS, and dependencies
 
* for the library.
*
*
* @see \Drupal\libraries\ExternalLibrary\Asset\getAttachableAssetLibraries::getAttachableAssetLibraries()
* @see \Drupal\libraries\ExternalLibrary\Asset\getAttachableAssetLibraries::getAttachableAssetLibraries()
*
*
@@ -112,8 +114,10 @@ class AssetLibrary extends LibraryBase implements
@@ -112,8 +114,10 @@ class AssetLibrary extends LibraryBase implements
* Gets the locator of this library using the locator factory.
* Gets the locator of this library using the locator factory.
*
*
* @param \Drupal\Component\Plugin\Factory\FactoryInterface $locator_factory
* @param \Drupal\Component\Plugin\Factory\FactoryInterface $locator_factory
 
* The locator factory to be used for creating a locator instance.
*
*
* @return \Drupal\libraries\ExternalLibrary\Local\LocatorInterface
* @return \Drupal\libraries\ExternalLibrary\Local\LocatorInterface
 
* The locator instance used for locating the library files.
*
*
* @see \Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface::getLocator()
* @see \Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface::getLocator()
*/
*/
Loading