FILE: C:\xampp\htdocs\test\web\modules\custom\inputmask_widget\src\Plugin\Field\FieldWidget\InputmaskWidget.php
---------------------------------------------------------------------------------------------------------------
FOUND 35 ERRORS AND 3 WARNINGS AFFECTING 26 LINES
---------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
23 | ERROR | [ ] Missing member variable doc comment
68 | WARNING | [x] A comma should follow the last multiline array item. Found: 'fieldmask-input-mask'
69 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
97 | ERROR | [x] There should be no white space before a closing ")"
112 | ERROR | [x] Expected 1 space after IF keyword; 0 found
112 | ERROR | [x] There should be no white space after an opening "("
112 | ERROR | [x] There should be no white space before a closing ")"
112 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
115 | ERROR | [x] Whitespace found at end of line
116 | ERROR | [x] There should be no white space after an opening "("
116 | ERROR | [x] There should be no white space before a closing ")"
116 | ERROR | [x] There should be no white space before a closing ")"
117 | ERROR | [x] Whitespace found at end of line
118 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
120 | WARNING | [x] A comma should follow the last multiline array item. Found: )
123 | ERROR | [x] Expected newline after closing brace
123 | ERROR | [x] Expected 1 space after ELSEIF keyword; 0 found
123 | ERROR | [x] There should be no white space after an opening "("
123 | ERROR | [x] There should be no white space before a closing ")"
123 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
124 | ERROR | [x] Whitespace found at end of line
127 | ERROR | [x] Concat operator must be surrounded by a single space
127 | ERROR | [x] Concat operator must be surrounded by a single space
132 | ERROR | [x] Expected 1 space after IF keyword; 0 found
132 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
133 | ERROR | [x] Whitespace found at end of line
136 | ERROR | [x] Use null coalesce operator instead of ternary operator.
141 | ERROR | [x] Expected newline after closing brace
141 | ERROR | [x] Expected 1 space after ELSE keyword; 0 found
142 | ERROR | [x] Whitespace found at end of line
145 | ERROR | [x] Use null coalesce operator instead of ternary operator.
156 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
157 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
158 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
159 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
160 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
161 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 37 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | definition-of-variable-3292130-7.patch | 1.44 KB | jay jangid |
| #2 | phpcs-coding-standard-issue-3292130-2.patch | 3.32 KB | Harsh panchal |
Comments
Comment #2
Harsh panchal commentedI have fixed this issue and providing a patch.
Comment #3
gajendra_sharma commentedPatch #2 is applied successfully and I have check it and errors is not found.
Comment #4
Sonam Goswami commentedApplied patch #2 successfully on module Version 1.0.0 and its working fine.
Thank you
Comment #5
heni_deepak commentedneed to add definition of variable.
Comment #6
jay jangid commentedComment #7
jay jangid commentedI create a patch for add definition of variable.
Kindly review this patch.
Thank you.
Comment #8
heni_deepak commented