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
---------------------------------------------------------------------------------------------------------------

Comments

Harsh panchal created an issue. See original summary.

Harsh panchal’s picture

Category: Task » Bug report
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new3.32 KB

I have fixed this issue and providing a patch.

gajendra_sharma’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Patch #2 is applied successfully and I have check it and errors is not found.

Sonam Goswami’s picture

Applied patch #2 successfully on module Version 1.0.0 and its working fine.
Thank you

heni_deepak’s picture

Version: 1.0.0 » 1.0.x-dev
Assigned: Harsh panchal » Unassigned
Status: Reviewed & tested by the community » Needs work
+  /**
+   * {@inheritdoc}
+   */

need to add definition of variable.

jay jangid’s picture

Assigned: Unassigned » jay jangid
jay jangid’s picture

Assigned: jay jangid » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.44 KB

I create a patch for add definition of variable.
Kindly review this patch.
Thank you.

heni_deepak’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.