long lines in attributes aren't detected

Created on 13 May 2024, 11 months ago

Problem/Motivation

The Drupal.Arrays.Array.LongLineDeclaration sniff detects an array declaration that's in a single line.

But there's no rule that picks up a long attribute declaration, e.g.

#[\Drupal\computed_field\Attribute\ComputedField(id: 'test_string_automatic_base', label: new TranslatableMarkup('Test String Automatic'), field_type: 'string', no_ui: TRUE, attach: ['scope' => 'base', 'field_name' => 'test_automatic_base', 'entity_types' => ['entity_test_with_bundle' => []]])]

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

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