Commit 1b7f8996 authored by Sourabh Jain's avatar Sourabh Jain Committed by Russell Jones
Browse files

Issue #3276150 by sourabhjain: Coding standards bug report in module

parent 7f0c8fb9
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@ class UrlEmbed implements UrlEmbedInterface {
  protected $configFactory;

  /**
   * The options passed to the adapter.
   *
   * @var array
   */
  public $config;
@@ -48,10 +50,10 @@ class UrlEmbed implements UrlEmbedInterface {
   *   The cache backend factory.
   * @param \Drupal\Core\Datetime\TimeInterface $time
   *   The time factory.
   * @param array $config
   *   (optional) The options passed to the adapter.
   * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
   *   (optional) The config factory.
   * @param array $config
   *   (optional) The options passed to the adapter.
   */
  public function __construct(CacheBackendInterface $cache_backend, TimeInterface $time, ConfigFactoryInterface $config_factory, array $config = []) {
    $this->cacheBackend = $cache_backend;
@@ -67,6 +69,8 @@ class UrlEmbed implements UrlEmbedInterface {
  }

  /**
   * Return the config factory.
   *
   * @{inheritdoc}
   */
  public function getConfig() {
@@ -74,6 +78,8 @@ class UrlEmbed implements UrlEmbedInterface {
  }

  /**
   * Set the config factory.
   *
   * @{inheritdoc}
   */
  public function setConfig(array $config) {
@@ -81,6 +87,8 @@ class UrlEmbed implements UrlEmbedInterface {
  }

  /**
   * Return an Embed adapter with our Open Graph data.
   *
   * @{inheritdoc}
   */
  public function getEmbed($request, array $config = []) {
@@ -88,6 +96,8 @@ class UrlEmbed implements UrlEmbedInterface {
  }

  /**
   * Return Open Graph data from requested URL.
   *
   * @{inheritdoc}
   */
  public function getUrlInfo($url) {