Closed (fixed)
Project:
Drupal core
Version:
11.3.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2025 at 06:11 UTC
Updated:
18 Dec 2025 at 14:49 UTC
Jump to comment: Most recent
The sniff, Drupal.Array.Array.LongLineDeclaration is not enabled.
Enable Drupal.Array.Array.LongLineDeclaration in core/modules/*/Form/* directories.
There are no strict standards for how to split a call to a function across multiple lines. The changes try to be the best fit for readability and the current style used in the file or method.
Review Line 215 of \Drupal\system\Form\ThemeSettingsForm
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
quietone commentedComment #4
smustgrave commentedSeems straight forward and phpcs change would of caught any misses
Comment #5
catchThis has commit conflicts.
Comment #6
smustgrave commentedI had a few minutes
First one was due to the theme_get_setting deprecation
Comment #7
quietone commentedI was checking all the MRs for related to this sniff because #3549652: Fix LongLineDeclaration in module Plugin directories was committed and the siblings will likely need a rebase.
There was a mistake in the MR where the change for phpcs.xml.dist made in #3549652: Fix LongLineDeclaration in module Plugin directories was removed as was the new line to be added here. Fixed that and ThemeSettingsForm. The change to ThemeSettingsForm was done by hand so setting this to needs review.
Comment #8
quietone commentedOh dear, I was not working on HEAD and HEAD had a work in progress commit. I reverted that and pulled latest changes again, and then rebased this branch again. That brings this back to were it should be. There were no new conflicts and this was git work so leaving at RTBC. I could have just reverted that work in progress commit but for what ever reason I did not.
Comment #9
smustgrave commentedHope it's fine I move back :)
Comment #10
longwaveMade some suggestions to balance out brackets in various places.
Comment #11
quietone commentedRebased and applied suggestions and re-checked the changes.
Comment #12
longwaveSorry but I added some more nits.
Comment #13
quietone commentedNo worries, I am glad these are getting reviewed.
Applied suggestions and linting passing so restoring RTBC
Comment #14
longwaveI think this is ready to commit but granting credits is currently broken for me, will revisit once that is fixed.
Comment #15
longwaveBackported to 11.3.x as an eligible documentation fix.
Committed and pushed db51285f948 to 11.x and 8187276bc45 to 11.3.x. Thanks!