Fix the issues reported by phpcs

Created on 3 July 2023, over 1 year ago
Updated 4 July 2023, over 1 year ago

Problem/Motivation

FILE: /Users/roberttabigue/Projects/drupalorgissues/docroot/modules/contrib/library_generator/library_generator.module
----------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Doc comment short description must start with a capital letter
14 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------

FILE: /Users/roberttabigue/Projects/drupalorgissues/docroot/modules/contrib/library_generator/src/LibraryGeneratorDiscovery.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AFFECTING 17 LINES
-------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [ ] Missing short description in doc comment
18 | ERROR | [ ] Missing @var tag in member variable comment
23 | ERROR | [ ] Missing @var tag in member variable comment
28 | ERROR | [ ] Missing @var tag in member variable comment
33 | ERROR | [ ] Missing @var tag in member variable comment
38 | ERROR | [ ] Missing @var tag in member variable comment
43 | ERROR | [ ] Missing @var tag in member variable comment
48 | ERROR | [ ] Missing @var tag in member variable comment
54 | ERROR | [x] Whitespace found at end of line
62 | ERROR | [x] Missing function doc comment
66 | ERROR | [x] Expected newline after closing brace
75 | ERROR | [x] Missing function doc comment
84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
99 | ERROR | [x] Expected newline after closing brace
118 | ERROR | [x] Expected newline after closing brace
123 | ERROR | [x] Closing brace indented incorrectly; expected 5 spaces, found 4
127 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------

FILE: /Users/roberttabigue/Projects/drupalorgissues/docroot/modules/contrib/library_generator/src/LibraryGeneratorManager.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
54 | ERROR | [ ] Missing @var tag in member variable comment
59 | ERROR | [ ] Missing @var tag in member variable comment
64 | ERROR | [ ] Missing @var tag in member variable comment
95 | ERROR | [x] Missing function doc comment
99 | ERROR | [x] Expected newline after closing brace
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------

Time: 369ms; Memory: 10MB

Steps to reproduce

Run this command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig library_generator

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇭Philippines roberttabigue

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024