Problem/Motivation
$ phpcs --standard=Drupal .
FILE: /faker_generate/src/Form/FakerGenerateContentForm.php
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
123 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
----------------------------------------------------------------------------------------------------------
FILE: /faker_generate/src/FakerGenerate.php
--------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------
93 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
93 | ERROR | [x] Expected one space after the comma, 0 found
93 | ERROR | [x] Expected one space after the comma, 0 found
101 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
101 | ERROR | [x] Expected one space after the comma, 0 found
101 | ERROR | [x] Expected one space after the comma, 0 found
--------------------------------------------------------------------------------------------Proposed resolution
Fix the errors as per Drupal coding standards.
User interface changes
NONE
API changes
NONE
Data model changes
NONE
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3166380-2.patch | 1.61 KB | ankithashetty |
Comments
Comment #2
ankithashettyMade the required changes as per the Drupal coding standard in the following patch file, kindly review.
Thank you!
Comment #3
gaurav.kapoor commentedThe patch would require some changes, which I will do once pushing this. Thanks for working on this.
Comment #5
gaurav.kapoor commented