Indentation for class declarations should be set to 2

Created on 30 July 2022, almost 2 years ago
Updated 8 April 2023, about 1 year ago

Problem/Motivation

class ClassDeclarationSniff extends PSR2ClassDeclarationSniff inherits the public $indent = 4; property. This erroneously sets the indentation level to 4 while it should be 2 for the Drupal standard.

This raises errors when declarations are broken into multiple lines, such as when a class implements many interfaces.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

8.3

Component

Coder Sniffer

Created by

πŸ‡΅πŸ‡ͺPeru krystalcode

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.

Production build 0.69.0 2024