Closed (fixed)
Project:
Navigation Extra
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2026 at 08:57 UTC
Updated:
23 Mar 2026 at 15:00 UTC
Jump to comment: Most recent
As you can see the pipelines report issues with PHPCS => https://git.drupalcode.org/project/navigation_extra/-/jobs/6567155
FILE: src/NavigationExtraPluginManager.php
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
87 | ERROR | [x] Expected 1 blank line after function; 2 found (Squiz.WhiteSpace.FunctionSpacing.After)
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: src/Plugin/Navigation/Extra/ToolsPlugin.php
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
186 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
| | (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: src/Plugin/Navigation/Extra/BlocksPlugin.php
------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------
87 | ERROR | [x] Array indentation error, expected 8 spaces but found 10 (Drupal.Arrays.Array.ArrayIndentation)
88 | ERROR | [x] Array indentation error, expected 8 spaces but found 10 (Drupal.Arrays.Array.ArrayIndentation)
89 | ERROR | [x] Array indentation error, expected 8 spaces but found 10 (Drupal.Arrays.Array.ArrayIndentation)
90 | ERROR | [x] Array indentation error, expected 8 spaces but found 10 (Drupal.Arrays.Array.ArrayIndentation)
91 | ERROR | [x] Array indentation error, expected 8 spaces but found 10 (Drupal.Arrays.Array.ArrayIndentation)
98 | ERROR | [x] Array closing indentation error, expected 6 spaces but found 8
| | (Drupal.Arrays.Array.ArrayClosingIndentation)
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: src/Annotation/NavigationExtraPlugin.php
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
57 | ERROR | [x] The closing brace for the class must have an empty line before it
| | (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: navigation_extra.module
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
87 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
| | (Drupal.Classes.FullyQualifiedNamespace.UseStatementMissing)
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
Time: 526ms; Memory: 10MB
PHP CODE SNIFFER REPORT SUMMARY
----------------------------------------------------------------------
FILE ERRORS WARNINGS
----------------------------------------------------------------------
navigation_extra.module 1 0
src/NavigationExtraPluginManager.php 1 0
src/Annotation/NavigationExtraPlugin.php 1 0
src/Plugin/Navigation/Extra/BlocksPlugin.php 6 0
src/Plugin/Navigation/Extra/ToolsPlugin.php 1 0
----------------------------------------------------------------------
A TOTAL OF 10 ERRORS AND 0 WARNINGS WERE FOUND IN 34 FILES
----------------------------------------------------------------------
PHPCBF CAN FIX 10 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
----------------------------------------------------------------------
SOURCE COUNT
----------------------------------------------------------------------
[x] Drupal.Arrays.Array.ArrayIndentation 5
[x] Drupal.Arrays.Array.ArrayClosingIndentation 1
[x] Drupal.Classes.ClassDeclaration.CloseBraceAfterBody 1
[x] Drupal.Classes.FullyQualifiedNamespace.UseStatementMissing 1
[x] Squiz.WhiteSpace.FunctionSpacing.After 1
[x] Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines 1
----------------------------------------------------------------------
A TOTAL OF 10 SNIFF VIOLATIONS WERE FOUND IN 6 SOURCES
----------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SOURCES AUTOMATICALLY (10 VIOLATIONS IN TOTAL)
----------------------------------------------------------------------
https://git.drupalcode.org/project/navigation_extra/-/jobs/6567155
Fix the issues.
Create MR with the fixes.
None
None
None
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 #2
tim-dielsComment #3
amangupta commentedi will work on it
Comment #5
tim-dielsAre you done with the changes or are you still working on this issue @amangupta?
Please update the issue status and assignee so other know what can be done with this issue.
Comment #6
amangupta commentedComment #7
paraderojether commentedHi
I reviewed MR!24, and confirmed PHPCS is now passed on Gitlab CI.
Moving this to RTBC!
Thank you.
Comment #8
tim-dielsThank you for the work done. A piece of the code has changed and so this needs a rebase.
Comment #9
tim-dielsRebased.
Comment #11
tim-diels