Fix the issues reported by phpcs

Created on 12 April 2023, over 1 year ago

FILE: /var/www/html/contribution/web/modules/contrib/site_info_rest/src/Plugin/rest/resource/SiteInfo.php
---------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------
45 | ERROR | [ ] Missing parameter type
47 | ERROR | [ ] Missing parameter type
90 | ERROR | [ ] Description for the @return value is missing
104 | ERROR | [x] Expected 1 blank line after function; 0 found
105 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/site_info_rest/tests/src/Functional/SiteInfoResourceTest.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
23 | WARNING | [x] A comma should follow the last multiline array item. Found: 'site_info_rest_test'
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/contrib/

๐Ÿ“Œ Task
Status

Closed: outdated

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia himanshu_jhaloya Indore

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

Comments & Activities

Production build 0.71.5 2024