Fix the phpcs errors

Created on 5 May 2020, over 4 years ago
Updated 31 July 2023, over 1 year ago

Problem/Motivation:

phpcs --standard=Drupal .

FILE: web/modules/custom/starrating/src/Plugin/Field/FieldType/StarRatingItem.php
--------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------
 41 | ERROR | [x] Short array syntax must be used to define arrays
 42 | ERROR | [x] Short array syntax must be used to define arrays
 43 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------------------------------------------


FILE: web/modules/custom/starrating/src/Plugin/Field/FieldWidget/StarRatingWidget.php
------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------
 30 | ERROR | [x] Short array syntax must be used to define arrays
 37 | ERROR | [x] Short array syntax must be used to define arrays
 43 | ERROR | [x] Short array syntax must be used to define arrays
------------------------------------------------------------------------------------------------------------------


FILE: web/modules/custom/starrating/src/Plugin/Field/FieldFormatter/StarRatingValueFormatter.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
 25 | WARNING | Possible useless method overriding detected
-----------------------------------------------------------------------------------------------------------------------------


FILE: web/modules/custom/starrating/src/Plugin/Field/FieldFormatter/StarRatingFormatter.php
------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------
 27 | ERROR | [x] Short array syntax must be used to define arrays
 67 | ERROR | [x] Short array syntax must be used to define arrays
 68 | ERROR | [x] Short array syntax must be used to define arrays
 74 | ERROR | [x] Short array syntax must be used to define arrays
 77 | ERROR | [x] Short array syntax must be used to define arrays
 99 | ERROR | [x] Short array syntax must be used to define arrays
------------------------------------------------------------------------------------------------------------------------
📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇮🇳India ankithashetty Karnataka, India

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024