Fix the issues reported by phpcs

Created on 4 July 2023, over 1 year ago
Updated 24 August 2023, over 1 year ago

Problem/Motivation

FILE: /var/www/html/vb/d_cont/myckebutton/myckebutton.module
--------------------------------------------------------------------------------
FOUND 23 ERRORS AND 4 WARNINGS AFFECTING 23 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
11 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
12 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
13 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
14 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
15 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
16 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
17 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
18 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
18 | WARNING | [ ] Avoid backslash escaping in translatable strings when
| | possible, use "" quotes instead
19 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
20 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
23 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
24 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
25 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
26 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
27 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
28 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
29 | WARNING | [ ] Avoid backslash escaping in translatable strings when
| | possible, use "" quotes instead
30 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
30 | WARNING | [ ] Avoid backslash escaping in translatable strings when
| | possible, use "" quotes instead
31 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
31 | WARNING | [ ] Avoid backslash escaping in translatable strings when
| | possible, use "" quotes instead
32 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 23 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/myckebutton/README.md
------------------------------------------------------------------------
FOUND 1 ERROR AND 11 WARNINGS AFFECTING 12 LINES
------------------------------------------------------------------------
5 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
8 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
16 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
23 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
24 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
55 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
59 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
60 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
61 | WARNING | [ ] Line exceeds 80 characters; contains 101 characters
67 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
69 | WARNING | [ ] Line exceeds 80 characters; contains 100 characters
70 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/myckebutton/css/myckebutton.form.css
------------------------------------------------------------------------
FOUND 20 ERRORS AFFECTING 20 LINES
------------------------------------------------------------------------
3 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
6 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
9 | 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
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
------------------------------------------------------------------------
PHPCBF CAN FIX THE 20 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------

FILE: ...var/www/html/vb/d_cont/myckebutton/css/plugins/myckebutton/myckebutton.css
--------------------------------------------------------------------------------
FOUND 43 ERRORS AFFECTING 40 LINES
--------------------------------------------------------------------------------
3 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
4 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
5 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
6 | 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
9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
11 | 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
14 | ERROR | [x] CSS colours must be defined in lowercase; expected #f0f0f0
| | but found #F0F0F0
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
15 | ERROR | [x] CSS colours must be defined in lowercase; expected #008ece
| | but found #008ECE
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] CSS colours must be defined in lowercase; expected #136da9
| | but found #136DA9
17 | 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
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
46 | 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
53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
56 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
57 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 43 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/myckebutton/css/myckebutton.style.css
--------------------------------------------------------------------------------
FOUND 26 ERRORS AFFECTING 20 LINES
--------------------------------------------------------------------------------
3 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
4 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
5 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
6 | 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
9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
11 | 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
14 | ERROR | [x] CSS colours must be defined in lowercase; expected #f0f0f0
| | but found #F0F0F0
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
15 | ERROR | [x] CSS colours must be defined in lowercase; expected #008ece
| | but found #008ECE
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] CSS colours must be defined in lowercase; expected #136da9
| | but found #136DA9
17 | 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
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] CSS colours must be defined in lowercase; expected #a0d8f1
| | but found #A0D8F1
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [x] CSS colours must be defined in lowercase; expected #136da9
| | but found #136DA9
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] CSS colours must be defined in lowercase; expected #008ece
| | but found #008ECE
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 26 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/myckebutton/src/Form/MyCKEButtonConfigForm.php
--------------------------------------------------------------------------------
FOUND 95 ERRORS AND 7 WARNINGS AFFECTING 53 LINES
--------------------------------------------------------------------------------
39 | ERROR | [x] No space found before comment text; expected "// Getting
| | the styles from the configuration" but found "//Getting
| | the styles from the configuration"
39 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
43 | ERROR | [x] No space found before comment text; expected "// Trying to
| | access the loaded styles (new and old alike)" but found
| | "//Trying to access the loaded styles (new and old alike)"
46 | WARNING | [ ] Line exceeds 80 characters; contains 131 characters
46 | ERROR | [x] No space found before comment text; expected "// If the
| | loaded styles cannot be accessed (when opening the page
| | for example), we create a list from the existing
| | configuration" but found "//If the loaded styles cannot be
| | accessed (when opening the page for example), we create a
| | list from the existing configuration"
46 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
48 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
48 | ERROR | [x] No space found before comment text; expected "// In case
| | there are no built in styles, create an empty row,
| | otherwise just load them" but found "//In case there are
| | no built in styles, create an empty row, otherwise just
| | load them"
48 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
50 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE"
| | but found "false"
51 | ERROR | [x] Expected newline after closing brace
60 | ERROR | [x] No space found before comment text; expected "// Loading
| | the preview buttons and the custom CSS" but found
| | "//Loading the preview buttons and the custom CSS"
60 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
63 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE"
| | but found "true"
75 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE"
| | but found "false"
78 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment
| | */" or "// Comment" instead
83 | ERROR | [x] No space found before comment text; expected "// Whether
| | the current style in built in, or not" but found
| | "//Whether the current style in built in, or not"
83 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
84 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE"
| | but found "false"
86 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
86 | ERROR | [x] No space found before comment text; expected "// Each
| | option's value is the same as it's label, so the value can
| | be easily saved" but found "//Each option's value is the
| | same as it's label, so the value can be easily saved"
86 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
99 | ERROR | [x] No space found before comment text; expected "// One row
| | in the table" but found "//One row in the table"
99 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
102 | ERROR | [x] No space found before comment text; expected "// A
| | collection of all the fieldsets, containing the colors and
| | properties" but found "//A collection of all the
| | fieldsets, containing the colors and properties"
102 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
110 | ERROR | [x] No space found before comment text; expected "// The
| | actual values of the style" but found "//The actual values
| | of the style"
110 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
113 | ERROR | [x] No space found before comment text; expected "// Style
| | name" but found "//Style name"
113 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
119 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE"
| | but found "true"
123 | ERROR | [x] No space found before comment text; expected "// Style
| | color collection (text, background, border)" but found
| | "//Style color collection (text, background, border)"
133 | ERROR | [x] No space found before comment text; expected "// Text
| | colors" but found "//Text colors"
133 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
158 | ERROR | [x] No space found before comment text; expected "//
| | Background colors" but found "//Background colors"
158 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
183 | ERROR | [x] No space found before comment text; expected "// Border
| | colors" but found "//Border colors"
183 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
208 | ERROR | [x] No space found before comment text; expected "// Style
| | properties (border radius/width, padding)" but found
| | "//Style properties (border radius/width, padding)"
218 | ERROR | [x] No space found before comment text; expected "// Border
| | radius value and unit" but found "//Border radius value
| | and unit"
218 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
246 | ERROR | [x] No space found before comment text; expected "// Padding
| | value and unit" but found "//Padding value and unit"
246 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
274 | ERROR | [x] No space found before comment text; expected "// Border
| | width value and unit" but found "//Border width value and
| | unit"
274 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
294 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
294 | ERROR | [x] No space found before comment text; expected "// Border
| | width does not support percentage values, so the "%"
| | option has to be removed" but found "//Border width does
| | not support percentage values, so the "%" option has to be
| | removed"
294 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
306 | ERROR | [x] No space found before comment text; expected "// Remove
| | style button in each row," but found "//Remove style
| | button in each row,"
306 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
306 | ERROR | [x] Whitespace found at end of line
322 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
322 | ERROR | [x] No space found before comment text; expected "// Hidden
| | field value to determine during form submit that if a
| | style is built in" but found "//Hidden field value to
| | determine during form submit that if a style is built in"
322 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
329 | ERROR | [x] No space found before comment text; expected "// Add style
| | button under the list of styles" but found "//Add style
| | button under the list of styles"
329 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
356 | ERROR | [x] No space found before comment text; expected "// A new row
| | is basically just a false value" but found "//A new row is
| | basically just a false value"
356 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
356 | ERROR | [x] Whitespace found at end of line
357 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE"
| | but found "false"
379 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
379 | ERROR | [x] No space found before comment text; expected "// Get the
| | actual values from the form, also create an empty array
| | for all style names" but found "//Get the actual values
| | from the form, also create an empty array for all style
| | names"
379 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
384 | ERROR | [x] No space found before comment text; expected "// Load each
| | style's name into the array" but found "//Load each
| | style's name into the array"
384 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
390 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters
390 | ERROR | [x] No space found before comment text; expected "// All style
| | names have to start with an uppercase letter, otherwise
| | send an error message" but found "//All style names have
| | to start with an uppercase letter, otherwise send an error
| | message"
390 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
393 | ERROR | [x] Expected newline after closing brace
393 | ERROR | [x] Use "elseif" in place of "else if"
398 | ERROR | [x] No space found before comment text; expected "// Make an
| | array by counting each name to determine their uniqueness"
| | but found "//Make an array by counting each name to
| | determine their uniqueness"
398 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
401 | ERROR | [x] No space found before comment text; expected "// If there
| | are duplicates, send an error message" but found "//If
| | there are duplicates, send an error message"
401 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
417 | ERROR | [x] No space found before comment text; expected "// The
| | existing config" but found "//The existing config"
417 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
420 | ERROR | [x] No space found before comment text; expected "// Form
| | values" but found "//Form values"
420 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
423 | ERROR | [x] No space found before comment text; expected "// Creating
| | an empty array for the new styles" but found "//Creating
| | an empty array for the new styles"
423 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
426 | ERROR | [x] No space found before comment text; expected "// We create
| | a new entry from each style inside the form" but found
| | "//We create a new entry from each style inside the form"
426 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
431 | ERROR | [x] No space found before comment text; expected "// Style
| | name and whether it is built in or not" but found "//Style
| | name and whether it is built in or not"
431 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
435 | ERROR | [x] No space found before comment text; expected "// Text
| | colors" but found "//Text colors"
435 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
439 | ERROR | [x] No space found before comment text; expected "//
| | Background colors" but found "//Background colors"
439 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
443 | ERROR | [x] No space found before comment text; expected "// Border
| | colors" but found "//Border colors"
443 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
447 | ERROR | [x] No space found before comment text; expected "// Border
| | radius value and unit" but found "//Border radius value
| | and unit"
447 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
451 | ERROR | [x] No space found before comment text; expected "// Padding
| | value and unit" but found "//Padding value and unit"
451 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
455 | ERROR | [x] No space found before comment text; expected "// Border
| | width value and unit" but found "//Border width value and
| | unit"
455 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
460 | ERROR | [x] No space found before comment text; expected "// Sort all
| | the new styles by name" but found "//Sort all the new
| | styles by name"
460 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
465 | ERROR | [x] No space found before comment text; expected "// Replace
| | the existing configuration with the new values" but found
| | "//Replace the existing configuration with the new values"
465 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
468 | ERROR | [x] Expected 1 blank line after function; 0 found
469 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 94 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...r/www/html/vb/d_cont/myckebutton/src/Plugin/CKEditorPlugin/MyCKEButton.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
10 | WARNING | [ ] Line exceeds 80 characters; contains 140 characters
21 | ERROR | [x] Expected 1 blank line before function; 0 found
67 | ERROR | [x] Expected 1 blank line after function; 0 found
68 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/myckebutton/myckebutton.install
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/myckebutton/myckebutton.permissions.yml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
3 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/myckebutton/myckebutton.libraries.yml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
20 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/myckebutton/config/schema/myckebutton.schema.yml
------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------
55 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------

Time: 223ms; Memory: 12MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig myckebutton/

Remaining tasks

Patch review

📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India urvashi_vora Madhya Pradesh, India

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

  • Issue created by @urvashi_vora
  • Status changed to RTBC over 1 year ago
  • Hi @urvashi_vora, thanks for the patch, I have review your patch.

    These are the steps I followed:

    1. Took clone from git version 1.0.x in drupal 10.1.x

    2. Ran this command:

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

    3. Applied patch and again ran phpcs command.

    found no errors.

    Moving this to RTBC.

Production build 0.71.5 2024