Fix PHP cs issues

Created on 15 February 2024, 4 months ago

$ vendor/bin/phpcs -s $_WEB_ROOT/modules/custom --report-junit=junit.xml --report-full --report-summary --report-source
FILE: ...ersion/web/modules/custom/admin_toolbar_version/src/VersionInfoManager.php
--------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------
37 | ERROR | [ ] Class property $extension_list should use lowerCamel naming
| | without underscores
| | (Drupal.NamingConventions.ValidVariableName.LowerCamelName)
44 | ERROR | [ ] Class property $file_system should use lowerCamel naming
| | without underscores
| | (Drupal.NamingConventions.ValidVariableName.LowerCamelName)
46 | ERROR | [x] The open comment tag must be the only content on the line
| | (Drupal.Commenting.DocComment.ContentAfterOpen)
46 | ERROR | [x] Doc comment short description must be on the first line
| | (Drupal.Commenting.DocComment.SpacingBeforeShort)
46 | ERROR | [x] Function comment short description must start with exactly
| | one space (Drupal.Commenting.DocComment.ShortStartSpace)
46 | ERROR | [x] Doc comment short description must start with a capital
| | letter (Drupal.Commenting.DocComment.ShortNotCapital)
47 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
| | (Drupal.Commenting.DocComment.ShortSingleLine)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 159ms; Memory: 6MB
PHP CODE SNIFFER REPORT SUMMARY
--------------------------------------------------------------------------------
FILE ERRORS WARNINGS
--------------------------------------------------------------------------------
...les/custom/admin_toolbar_version/src/VersionInfoManager.php 7 0
--------------------------------------------------------------------------------
A TOTAL OF 7 ERRORS AND 0 WARNINGS WERE FOUND IN 3 FILES
--------------------------------------------------------------------------------
PHPCBF CAN FIX 4 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
----------------------------------------------------------------------
SOURCE COUNT
----------------------------------------------------------------------
[ ] Drupal.NamingConventions.ValidVariableName.LowerCamelName 2
[x] Drupal.Commenting.DocComment.ContentAfterOpen 1
[x] Drupal.Commenting.DocComment.ShortNotCapital 1
[ ] Drupal.Commenting.DocComment.ShortSingleLine 1
[x] Drupal.Commenting.DocComment.ShortStartSpace 1
[x] Drupal.Commenting.DocComment.SpacingBeforeShort 1
----------------------------------------------------------------------
A TOTAL OF 7 SNIFF VIOLATIONS WERE FOUND IN 6 SOURCES
----------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SOURCES AUTOMATICALLY (4 VIOLATIONS IN TOTAL)
----------------------------------------------------------------------

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium kriboogh

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024