diff --git a/core/modules/layout_builder/src/Element/LayoutBuilder.php b/core/modules/layout_builder/src/Element/LayoutBuilder.php
index e17e36ab4fb92de30473f52b3d0a7b80bb7dcefe..d673d24d1d3848269aed880a2caa4bc73c0df23d 100644
--- a/core/modules/layout_builder/src/Element/LayoutBuilder.php
+++ b/core/modules/layout_builder/src/Element/LayoutBuilder.php
@@ -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 {
diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index 50039ecc171763ecaefdf1f47de7df424f463c98..9ba0e72cc942a2797e10deff2f66ffbfbf17ff8b 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -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">