Fix issues identified by PHPCS

Created on 19 December 2023, about 1 year ago
Updated 2 January 2024, about 1 year ago

Problem/Motivation

The pipeline shows the following issues identified by PHPCS:

FILE: .../web/modules/custom/views_timestamp_to_date/views_timestamp_to_date.module
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 1 | ERROR | [x] Missing file doc comment
   |       |     (Drupal.Commenting.FileComment.Missing)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: .../custom/views_timestamp_to_date/src/Plugin/views/field/TimestampToDate.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------
 58 | ERROR | The array declaration extends to column 177 (the limit is 120).
    |       | The array content should be split up over multiple lines
    |       | (Drupal.Arrays.Array.LongLineDeclaration)
 81 | ERROR | The array declaration extends to column 182 (the limit is 120).
    |       | The array content should be split up over multiple lines
    |       | (Drupal.Arrays.Array.LongLineDeclaration)
 84 | ERROR | The array declaration extends to column 182 (the limit is 120).
    |       | The array content should be split up over multiple lines
    |       | (Drupal.Arrays.Array.LongLineDeclaration)
 87 | ERROR | The array declaration extends to column 153 (the limit is 120).
    |       | The array content should be split up over multiple lines
    |       | (Drupal.Arrays.Array.LongLineDeclaration)
--------------------------------------------------------------------------------
Time: 152ms; Memory: 6MB
PHP CODE SNIFFER REPORT SUMMARY
--------------------------------------------------------------------------------
FILE                                                            ERRORS  WARNINGS
--------------------------------------------------------------------------------
...stom/views_timestamp_to_date/views_timestamp_to_date.module  1       0
...imestamp_to_date/src/Plugin/views/field/TimestampToDate.php  4       0
--------------------------------------------------------------------------------
A TOTAL OF 5 ERRORS AND 0 WARNINGS WERE FOUND IN 2 FILES
--------------------------------------------------------------------------------
PHPCBF CAN FIX 1 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
----------------------------------------------------------------------
    SOURCE                                                       COUNT
----------------------------------------------------------------------
[ ] Drupal.Arrays.Array.LongLineDeclaration                      4
[x] Drupal.Commenting.FileComment.Missing                        1
----------------------------------------------------------------------
A TOTAL OF 5 SNIFF VIOLATIONS WERE FOUND IN 2 SOURCES
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SOURCES AUTOMATICALLY (1 VIOLATIONS IN TOTAL)
----------------------------------------------------------------------
πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States andileco

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024