Unverified Commit 576bd754 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3207567 by Spokje, quietone, guilhermevp, yogeshmpawar, daffie,...

Issue #3207567 by Spokje, quietone, guilhermevp, yogeshmpawar, daffie, alexpott: Fix Drupal.Commenting.FunctionComment.MissingParamComment
parent 41769241
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@ protected function createAppendOp(PackageInterface $package, OperationData $oper
   *
   * @param Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $file
   *   Scaffold file to check.
   *
   * @return bool
   *   True if the file exists and has content.
   */
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ public function getProvider();
   * Sets the name of the provider of the annotated class.
   *
   * @param string $provider
   *   The provider of the annotated class.
   */
  public function setProvider($provider);

@@ -44,6 +45,7 @@ public function getClass();
   * Sets the class of the annotated class.
   *
   * @param string $class
   *   The class of the annotated class.
   */
  public function setClass($class);

+1 −0
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@ public function setContainer(ContainerInterface $container = NULL) {

  /**
   * @param $class
   *   The class to set as standalone.
   */
  public function setStandalone($class) {
    if (!is_subclass_of($class, ReaderManagerInterface::class) && !is_subclass_of($class, WriterManagerInterface::class)) {
+8 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ public function getLangcode() {
   * Set the language code of the current language.
   *
   * @param string $langcode
   *   The language code of the current language.
   */
  public function setLangcode($langcode) {
    $this->langcode = $langcode;
@@ -95,6 +96,7 @@ public function getContext() {
   * Set the context this translation belongs to.
   *
   * @param string $context
   *   The context this translation belongs to.
   */
  public function setContext($context) {
    $this->context = $context;
@@ -115,6 +117,7 @@ public function getSource() {
   * plurals.
   *
   * @param string|array $source
   *   The source string or the array of strings if the translation has plurals.
   */
  public function setSource($source) {
    $this->source = $source;
@@ -135,6 +138,8 @@ public function getTranslation() {
   * plurals.
   *
   * @param string|array $translation
   *   The translation string or the array of strings if the translation has
   *   plurals.
   */
  public function setTranslation($translation) {
    $this->translation = $translation;
@@ -144,6 +149,7 @@ public function setTranslation($translation) {
   * Set if the translation has plural values.
   *
   * @param bool $plural
   *   TRUE, if the translation has plural values. FALSE otherwise.
   */
  public function setPlural($plural) {
    $this->plural = $plural;
@@ -171,6 +177,7 @@ public function getComment() {
   * Set the comment of this translation.
   *
   * @param string $comment
   *   The comment of this translation.
   */
  public function setComment($comment) {
    $this->comment = $comment;
@@ -180,6 +187,7 @@ public function setComment($comment) {
   * Create the PoItem from a structured array.
   *
   * @param array $values
   *   A structured array to create the PoItem from.
   */
  public function setFromArray(array $values = []) {
    if (isset($values['context'])) {
+1 −0
Original line number Diff line number Diff line
@@ -249,6 +249,7 @@ public function sentences($min_word_count, $capitalize = FALSE) {
   * Generate paragraphs separated by double new line.
   *
   * @param int $paragraph_count
   *   The number of paragraphs to create. Defaults to 12.
   *
   * @return string
   */
Loading