Views Sort Null Field doesn't follow Coding Standards

Created on 22 September 2023, over 1 year ago

Problem/Motivation

$ ./vendor/bin/phpcs web/modules/contrib/views_sort_null_field/

FILE: ...e/d9/web/modules/contrib/views_sort_null_field/src/Plugin/views/sort/NullSort.php
---------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------
35 | ERROR | [x] Short array syntax must be used to define arrays
58 | ERROR | [x] Expected 1 blank line after function; 0 found
59 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

FILE: ...pace/d9/web/modules/contrib/views_sort_null_field/views_sort_null_field.views.inc
---------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
---------------------------------------------------------------------------------------
11 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use
| | statements
20 | ERROR | [x] list(...) is forbidden, use [...] instead.
21 | ERROR | [x] Short array syntax must be used to define arrays
46 | ERROR | [x] Short array syntax must be used to define arrays
51 | ERROR | [x] Short array syntax must be used to define arrays
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

Time: 51ms; Memory: 10MB

Proposed resolution

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States generalredneck Texas, USA πŸ‡ΊπŸ‡Έ

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

Comments & Activities

Production build 0.71.5 2024