phpcbf fixes for Drupal.Commenting.FunctionComment sniff break indentation

Created on 26 February 2024, over 1 year ago
Updated 5 May 2024, about 1 year ago

Problem/Motivation

I ran phpcbf to fix this sniff and the results were incorrect.

Broken indentation:

@@ -96,7 +96,10 @@ class LinkStylePlugin extends FormElement {
     }
   }

-  public static function validatePlugin(&$element, FormStateInterface $form_state, &$complete_form) {
+  /**
+ *
+ */
+public static function validatePlugin(&$element, FormStateInterface $form_state, &$complete_form) {
     $plugin_id = $element['plugin_id']['#value'];

     // Set the value at the top level of the element.

Same, with blank line added:

@@ -95,9 +95,11 @@ class ActionLinkKernelTest extends KernelTestBase {
     $this->user = $this->setUpCurrentUser();
   }

-  /*
-   * Tests access and operability checks on building and accessing links
-   */
+  /**
+ *
+ *Tests access and operability checks on building and accessing links
+
+ */
   public function testLinkAccess() {
     /** @var \Drupal\action_link\Entity\ActionLinkInterface $action_link */
     $action_link = $this->actionLinkStorage->create([

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

8.3

Component

Coder Sniffer

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024