Verified Commit 0ad211a5 authored by Dave Long's avatar Dave Long
Browse files

Issue #3268835 by quietone, smustgrave, ravi.shankar, xjm, borisson_, catch:...

Issue #3268835 by quietone, smustgrave, ravi.shankar, xjm, borisson_, catch: Fix method comments in non tests for Drupal.Commenting.DocComment.ShortSingleLine

(cherry picked from commit b212d244)
parent 5339d056
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -128,9 +128,11 @@ public function onCommand(CommandEvent $event) {
  }

  /**
   * Lazy-instantiate the handler object. It is dangerous to update a Composer
   * plugin if it loads any classes prior to the `composer update` operation,
   * and later tries to use them in a post-update hook.
   * Instantiates the handler object upon demand.
   *
   * It is dangerous to update a Composer plugin if it loads any classes prior
   * to the `composer update` operation, and later tries to use them in a
   * post-update hook.
   */
  protected function handler() {
    if (!$this->handler) {
+4 −8
Original line number Diff line number Diff line
@@ -103,8 +103,7 @@ public function setContext($context) {
  }

  /**
   * Gets the source string or the array of strings if the translation has
   * plurals.
   * Gets the source string(s) if the translation has plurals.
   *
   * @return string or array $translation
   */
@@ -113,8 +112,7 @@ public function getSource() {
  }

  /**
   * Set the source string or the array of strings if the translation has
   * plurals.
   * Sets the source string(s) if the translation has plurals.
   *
   * @param string|array $source
   *   The source string or the array of strings if the translation has plurals.
@@ -124,8 +122,7 @@ public function setSource($source) {
  }

  /**
   * Gets the translation string or the array of strings if the translation has
   * plurals.
   * Gets the translation string(s) if the translation has plurals.
   *
   * @return string or array $translation
   */
@@ -134,8 +131,7 @@ public function getTranslation() {
  }

  /**
   * Set the translation string or the array of strings if the translation has
   * plurals.
   * Sets the translation string(s) if the translation has plurals.
   *
   * @param string|array $translation
   *   The translation string or the array of strings if the translation has
+1 −2
Original line number Diff line number Diff line
@@ -185,8 +185,7 @@ public function garbageCollection() {
  }

  /**
   * Gets the full path of the containing directory where the file is or should
   * be stored.
   * Gets the full path of the file storage directory's parent.
   *
   * @param string $name
   *   The virtual file name. Can be a relative path.
+1 −2
Original line number Diff line number Diff line
@@ -58,8 +58,7 @@ public static function hexToRgb($hex) {
  }

  /**
   * Converts RGB color arrays and RGB strings in CSS notation to lowercase
   * simple colors like '#aabbcc'.
   * Converts RGB color arrays or strings to lowercase CSS notation.
   *
   * @param array|string $input
   *   The value to convert. If the value is an array the first three elements
+1 −2
Original line number Diff line number Diff line
@@ -137,8 +137,7 @@ protected function createElement($definition, $value, $key) {
  }

  /**
   * Creates a new data definition object from a type definition array and
   * actual configuration data.
   * Creates a new data definition object from an array and configuration.
   *
   * @param array $definition
   *   The base type definition array, for which a data definition should be
Loading