[meta] Fix Drupal.Array.Array.LongLineDeclaration coding standard

Created on 29 February 2020, about 5 years ago
Updated 24 February 2025, 13 days ago

Problem/Motivation

The Drupal.Array.Array.LongLineDeclaration coding standard should be applied to Drupal core.

Proposed resolution

@xjm suggests in #15:

This cleanup is large enough that I think we should split it into a few logical chunks (by concept, not by module). I'd suggest:

One patch for fixing the $modules test property.
One patch for fixing calls to drupalCreateUser().
One patch for fixing calls to drupalCreateNode().
Evaluating whatever's left after that and seeing if it should be split up further.

Remaining tasks

Create child issues and fix those first

User interface changes

API changes

Data model changes

Release notes snippet

🌱 Plan
Status

Active

Version

11.0 🔥

Component

other

Created by

🇮🇳India swatichouhan012

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone

    In #15, it was suggested to scope issues by drupalCreateUser and drupalCreateNode. The first issue was completed but new violations have come back into the code base. Because of the I'd rather this is done by directory so the sniff can be enabled as fixes are made.

    And for some facts, I enabled the sniff and phpcs reported 1,135 violations in 604 files. The longest line reported is 640, in var/www/html/core/lib/Drupal/Component/Utility/Xss.php.

Production build 0.71.5 2024