Update coding standards Drupal.Functions.MultiLineFunctionDeclaration

Created on 6 September 2024, 11 months ago
Updated 20 September 2024, 11 months ago

Problem/Motivation

The coding standards have been updated so there are now some warnings:

FILE: ...ange_email_no_password/src/Plugin/jsonrpc/Method/ChangeEmailNoPassword.php
--------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
 83 | ERROR | [x] The first parameter of a multi-line function declaration must
    |       |     be on the line after the opening bracket
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.FirstParamSpacing)
 84 | ERROR | [x] Multi-line function declaration not indented correctly;
    |       |     expected 4 spaces but found 2
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 85 | ERROR | [x] Multi-line function declaration not indented correctly;
    |       |     expected 4 spaces but found 2
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 86 | ERROR | [x] Multi-line function declaration not indented correctly;
    |       |     expected 4 spaces but found 2
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 87 | ERROR | [x] Multi-line function declaration not indented correctly;
    |       |     expected 4 spaces but found 2
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 88 | ERROR | [x] Multi-line function declaration not indented correctly;
    |       |     expected 4 spaces but found 2
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 88 | ERROR | [x] Multi-line function declarations must have a trailing comma
    |       |     after the last parameter
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma)
 88 | ERROR | [x] The closing parenthesis of a multi-line function declaration
    |       |     must be on a new line
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.CloseBracketLine)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇯🇵Japan ptmkenny

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024