Fix the issues reported by phpcs

Created on 25 April 2023, almost 2 years ago
Updated 26 April 2023, over 1 year ago

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

FILE: /var/www/html/contribution/web/modules/contrib/mammoth/mammoth.links.menu.yml
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/mammoth/mammoth.libraries.yml
----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------
12 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/mammoth/mammoth.routing.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
15 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/mammoth/src/Controller/MammothController.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 207 ERRORS AND 9 WARNINGS AFFECTING 84 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
13 | WARNING | [x] Unused use statement
16 | ERROR | [x] No space found before comment text; expected "// use Drupal\anjian\Traits\OracleConnectTrait;" but found "//use
| | Drupal\anjian\Traits\OracleConnectTrait;"
16 | ERROR | [x] Inline comments must start with a capital letter
17 | WARNING | [ ] There must be no blank line following an inline comment
17 | ERROR | [x] No space found before comment text; expected "// use Drupal\case_sync\Helper\CaseSyncHelper;" but found "//use Drupal\case_sync\Helper\CaseSyncHelper;"
17 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
23 | ERROR | [x] No space found before comment text; expected "// use OracleConnectTrait;" but found "//use OracleConnectTrait;"
23 | ERROR | [x] Inline comments must start with a capital letter
23 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
32 | ERROR | [x] Expected 1 blank line before function; 0 found
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
56 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
59 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
59 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
60 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
61 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
63 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
64 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
65 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
66 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
67 | ERROR | [x] Line indented incorrectly; expected 5 spaces, found 1
67 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
71 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
71 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
71 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
71 | ERROR | [x] Expected one space after the comma, 0 found
71 | ERROR | [x] Expected one space after the comma, 0 found
73 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
73 | ERROR | [x] Whitespace found at end of line
74 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
77 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
77 | ERROR | [x] Whitespace found at end of line
80 | ERROR | [x] Whitespace found at end of line
81 | ERROR | [x] Missing function doc comment
81 | ERROR | [x] Expected 1 space before opening brace; found 0
83 | ERROR | [x] No space found before comment text; expected "// $errmsg = 'successful';" but found "//$errmsg = 'successful';"
84 | ERROR | [x] No space found before comment text; expected "// get data" but found "//get data"
85 | ERROR | [x] No space found before comment text; expected "// $content = \Drupal::request()->getContent();" but found "//$content =
| | \Drupal::request()->getContent();"
86 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
86 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
86 | ERROR | [x] No space found before comment text; expected "// \Drupal::logger('mammoth')->notice("123:" . var_export($content, true));" but found
| | "//\Drupal::logger('mammoth')->notice("123:" . var_export($content, true));"
87 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
87 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
87 | ERROR | [x] Comments may not appear after statements
89 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
89 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
89 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
89 | ERROR | [x] No space found before comment text; expected "// \Drupal::logger('mammoth')->notice("received:" . var_export($received, true));" but found
| | "//\Drupal::logger('mammoth')->notice("received:" . var_export($received, true));"
90 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
90 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
90 | ERROR | [x] No space found before comment text; expected "// \Drupal::logger('mammoth')->notice("abc:" . var_export($content, true));" but found
| | "//\Drupal::logger('mammoth')->notice("abc:" . var_export($content, true));"
91 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
91 | ERROR | [x] Use null coalesce operator instead of ternary operator.
92 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
92 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
92 | ERROR | [x] Use null coalesce operator instead of ternary operator.
93 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
93 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
93 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
93 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
94 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
94 | ERROR | [x] Whitespace found at end of line
95 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
95 | ERROR | [x] Expected 1 space after IF keyword; 0 found
95 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
96 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
96 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
96 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
96 | ERROR | [x] Whitespace found at end of line
97 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
98 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
98 | ERROR | [x] Whitespace found at end of line
99 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
99 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
99 | ERROR | [x] No space found before comment text; expected "// prepare file name, dir" but found "//prepare file name, dir"
99 | ERROR | [x] Inline comments must start with a capital letter
99 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
100 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
101 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
101 | ERROR | [x] Whitespace found at end of line
102 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
102 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
102 | ERROR | [x] Use null coalesce operator instead of ternary operator.
103 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
103 | ERROR | [x] Expected 1 space after IF keyword; 0 found
103 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
104 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
104 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
104 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
104 | ERROR | [x] Whitespace found at end of line
105 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
106 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
106 | ERROR | [x] Whitespace found at end of line
108 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
108 | ERROR | [x] No space found before comment text; expected "// date('Y-m-d H:i:s', time());" but found "//date('Y-m-d H:i:s', time());"
109 | ERROR | [x] Concat operator must be surrounded by a single space
109 | ERROR | [x] Concat operator must be surrounded by a single space
109 | ERROR | [x] Space after closing parenthesis of function call prohibited
109 | ERROR | [x] Space found before semicolon; expected ");" but found ") ;"
110 | ERROR | [x] No space found before comment text; expected "// $return = file_prepare_directory($file_dir);" but found "//$return =
| | file_prepare_directory($file_dir);"
111 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
113 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
113 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
113 | ERROR | [x] No space found before comment text; expected "// drupal_mkdir($file_dir, 0777, TRUE);" but found "//drupal_mkdir($file_dir, 0777, TRUE);"
113 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
114 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
114 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
114 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
116 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
116 | ERROR | [x] Whitespace found at end of line
119 | ERROR | [x] Concat operator must be surrounded by a single space
120 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
120 | ERROR | [x] Whitespace found at end of line
121 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
121 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
121 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
121 | ERROR | [x] No space found before comment text; expected "// save file" but found "//save file"
121 | ERROR | [x] Inline comments must start with a capital letter
121 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
121 | ERROR | [x] Whitespace found at end of line
122 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
122 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
123 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
123 | ERROR | [x] Whitespace found at end of line
124 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
124 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
124 | ERROR | [x] Expected 1 space after IF keyword; 0 found
124 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
124 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
124 | ERROR | [x] Whitespace found at end of line
125 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
125 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
125 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
125 | ERROR | [x] Whitespace found at end of line
126 | ERROR | [x] Closing brace indented incorrectly; expected 1 spaces, found 4
126 | ERROR | [x] Expected newline after closing brace
126 | ERROR | [x] Expected 1 space after ELSE keyword; 0 found
127 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
127 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
127 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
128 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
128 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
128 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found 1
129 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
129 | ERROR | [x] Whitespace found at end of line
130 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
130 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
130 | ERROR | [x] Expected 1 space after IF keyword; 0 found
130 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
131 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
131 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
131 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
131 | ERROR | [x] Whitespace found at end of line
132 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
132 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
133 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
133 | ERROR | [x] Whitespace found at end of line
134 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
134 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
135 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
135 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
136 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
136 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
136 | ERROR | [x] Expected 1 space after IF keyword; 0 found
136 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
136 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
136 | ERROR | [x] Whitespace found at end of line
137 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
137 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
137 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
137 | ERROR | [x] Whitespace found at end of line
138 | ERROR | [x] Closing brace indented incorrectly; expected 1 spaces, found 4
138 | ERROR | [x] Expected newline after closing brace
138 | ERROR | [x] Expected 1 space after ELSE keyword; 0 found
139 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
139 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
139 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
140 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
140 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
140 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found 1
141 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
141 | ERROR | [x] Whitespace found at end of line
142 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
142 | ERROR | [x] Whitespace found at end of line
143 | ERROR | [x] Whitespace found at end of line
145 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
145 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
145 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
146 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
146 | ERROR | [x] Whitespace found at end of line
147 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
147 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 1
148 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
148 | ERROR | [x] Whitespace found at end of line
149 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
149 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
149 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
149 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
153 | ERROR | [x] Whitespace found at end of line
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 208 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/mammoth/mammoth.links.task.yml
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 3 found
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/mammoth/libraries/mammoth/admin.css
----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------
12 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/mammoth/libraries/mammoth/style.css
----------------------------------------------------------------------------------------
FOUND 45 ERRORS AFFECTING 33 LINES
----------------------------------------------------------------------------------------
2 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
3 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
7 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
8 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Multiple selectors should each be on a single line
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
44 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
44 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
50 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
58 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
59 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
60 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
61 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
61 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
62 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
62 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
65 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
66 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
66 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
67 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 45 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/mammoth/mammoth.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/mammoth/mammoth.module
--------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
9 | WARNING | [x] Unused use statement
9 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
12 | ERROR | [x] Missing function doc comment
12 | ERROR | [x] Expected 1 blank line before function; 2 found
12 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
13 | ERROR | [x] Expected 1 space after IF keyword; 0 found
13 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
17 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India himanshu_jhaloya Indore

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