Verified Commit 679a1b2b authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3484038 by quietone: [meta] Fix Drupal.Commenting.FunctionComment.MissingReturnComment

parent f9be36f0
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -123,6 +123,8 @@ public static function layoutBuilderElementGetKeys(array $element, FormStateInte
   *   The rendered form.
   *
   * @return array
   *   Renders the layout builder element, if it exists, and adds it to the
   *   form.
   *
   * @see ::addRenderedLayoutBuilder()
   */
@@ -150,6 +152,7 @@ public static function renderLayoutBuilderAfterForm(array $form): array {
   *   The form render array.
   *
   * @return string
   *   The render string with any layout builder markup added.
   */
  #[TrustedCallback]
  public static function addRenderedLayoutBuilder(string $html, array $form): string {
+1 −6
Original line number Diff line number Diff line
@@ -73,12 +73,7 @@
    <include-pattern>*/Unit/*</include-pattern>
  </rule>
  <rule ref="Drupal.Commenting.FunctionComment.MissingParamType"/>
  <rule ref="Drupal.Commenting.FunctionComment.MissingReturnComment">
    <include-pattern>core/lib/Drupal/Core/*</include-pattern>
    <include-pattern>core/lib/Drupal/Component/*</include-pattern>
    <include-pattern>core/tests/*</include-pattern>
    <include-pattern>core/*/tests/*</include-pattern>
  </rule>
  <rule ref="Drupal.Commenting.FunctionComment.MissingReturnComment"/>
  <rule ref="Drupal.Commenting.GenderNeutralComment"/>
  <rule ref="Drupal.Commenting.HookComment"/>
  <rule ref="Drupal.Commenting.InlineComment">