Problem/Motivation
FILE: /home/system/Documents/contribution/color_pickr/color_pickr.module
---------------------------------------------------------------------------------------------
FOUND 82 ERRORS AND 1 WARNING AFFECTING 42 LINES
---------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
14 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
15 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
15 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
16 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
16 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
17 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
18 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
18 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
19 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
19 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
20 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
20 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
22 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
23 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
24 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
24 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
25 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
25 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
26 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
27 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
27 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
29 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
29 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
30 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
31 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
32 | ERROR | [x] Case breaking statement indented incorrectly; expected 4 spaces, found 2
33 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
40 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
40 | ERROR | [x] Short array syntax must be used to define arrays
41 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
41 | ERROR | [x] Short array syntax must be used to define arrays
42 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
42 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
42 | ERROR | [x] Short array syntax must be used to define arrays
43 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
43 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
44 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
45 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
45 | ERROR | [x] Short array syntax must be used to define arrays
46 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
46 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
46 | ERROR | [x] Short array syntax must be used to define arrays
47 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
47 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
48 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
49 | ERROR | [x] Short array syntax must be used to define arrays
50 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
50 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
50 | ERROR | [x] Short array syntax must be used to define arrays
51 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
51 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
52 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
53 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
53 | ERROR | [x] Short array syntax must be used to define arrays
54 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
54 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
54 | ERROR | [x] Short array syntax must be used to define arrays
55 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
55 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
56 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
57 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
57 | ERROR | [x] Short array syntax must be used to define arrays
58 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
58 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
58 | ERROR | [x] Short array syntax must be used to define arrays
59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
59 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | WARNING | [x] A comma should follow the last multiline array item. Found: )
61 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
62 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 83 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 31 WARNINGS AFFECTING 31 LINES
----------------------------------------------------------------------
9 | WARNING | Line exceeds 80 characters; contains 91 characters
19 | WARNING | Line exceeds 80 characters; contains 128 characters
23 | WARNING | Line exceeds 80 characters; contains 160 characters
39 | WARNING | Line exceeds 80 characters; contains 107 characters
45 | WARNING | Line exceeds 80 characters; contains 177 characters
56 | WARNING | Line exceeds 80 characters; contains 87 characters
64 | WARNING | Line exceeds 80 characters; contains 119 characters
66 | WARNING | Line exceeds 80 characters; contains 186 characters
70 | WARNING | Line exceeds 80 characters; contains 118 characters
72 | WARNING | Line exceeds 80 characters; contains 188 characters
93 | WARNING | Line exceeds 80 characters; contains 169 characters
105 | WARNING | Line exceeds 80 characters; contains 82 characters
116 | WARNING | Line exceeds 80 characters; contains 95 characters
124 | WARNING | Line exceeds 80 characters; contains 212 characters
132 | WARNING | Line exceeds 80 characters; contains 165 characters
134 | WARNING | Line exceeds 80 characters; contains 133 characters
149 | WARNING | Line exceeds 80 characters; contains 123 characters
155 | WARNING | Line exceeds 80 characters; contains 129 characters
172 | WARNING | Line exceeds 80 characters; contains 238 characters
174 | WARNING | Line exceeds 80 characters; contains 215 characters
180 | WARNING | Line exceeds 80 characters; contains 130 characters
185 | WARNING | Line exceeds 80 characters; contains 96 characters
196 | WARNING | Line exceeds 80 characters; contains 167 characters
198 | WARNING | Line exceeds 80 characters; contains 139 characters
212 | WARNING | Line exceeds 80 characters; contains 120 characters
217 | WARNING | Line exceeds 80 characters; contains 170 characters
234 | WARNING | Line exceeds 80 characters; contains 188 characters
249 | WARNING | Line exceeds 80 characters; contains 90 characters
256 | WARNING | Line exceeds 80 characters; contains 156 characters
272 | WARNING | Line exceeds 80 characters; contains 358 characters
276 | WARNING | Line exceeds 80 characters; contains 86 characters
----------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Utility/Html.php
-----------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
5 | ERROR | [ ] Namespaced classes/interfaces/traits should be referenced with use statements
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldWidget/ColorPickrDefaultWidget.php
--------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AND 4 WARNINGS AFFECTING 17 LINES
--------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
31 | ERROR | [x] Short array syntax must be used to define arrays
42 | ERROR | [x] Short array syntax must be used to define arrays
46 | ERROR | [x] Short array syntax must be used to define arrays
49 | WARNING | [x] A comma should follow the last multiline array item. Found: )
60 | ERROR | [x] Short array syntax must be used to define arrays
61 | ERROR | [x] Short array syntax must be used to define arrays
74 | ERROR | [x] Short array syntax must be used to define arrays
77 | ERROR | [x] Use null coalesce operator instead of ternary operator.
80 | ERROR | [x] Short array syntax must be used to define arrays
83 | WARNING | [x] A comma should follow the last multiline array item. Found: )
85 | ERROR | [x] Concat operator must be surrounded by a single space
85 | ERROR | [x] Concat operator must be surrounded by a single space
86 | ERROR | [x] Short array syntax must be used to define arrays
87 | ERROR | [x] Short array syntax must be used to define arrays
87 | ERROR | [x] Concat operator must be surrounded by a single space
88 | WARNING | [x] A comma should follow the last multiline array item. Found: true
88 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
89 | WARNING | [x] A comma should follow the last multiline array item. Found: )
93 | ERROR | [x] Expected 1 newline at end of file; 0 found
93 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 21 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldFormatter/ColorPickrCircleFormatter.php
-------------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AFFECTING 11 LINES
-------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
30 | ERROR | [x] Short array syntax must be used to define arrays
33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
33 | ERROR | [x] Expected 1 space after IF keyword; 0 found
34 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
34 | ERROR | [x] Short array syntax must be used to define arrays
38 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
38 | ERROR | [x] Short array syntax must be used to define arrays
39 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
39 | ERROR | [x] Closing brace indented incorrectly; expected 5 spaces, found 4
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
40 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found 2
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
45 | ERROR | [x] Closing brace indented incorrectly; expected 2 spaces, found 0
46 | ERROR | [x] Expected 1 newline at end of file; 0 found
46 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldFormatter/ColorPickrHexagonFormatter.php
--------------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AFFECTING 11 LINES
--------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
30 | ERROR | [x] Short array syntax must be used to define arrays
33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
33 | ERROR | [x] Expected 1 space after IF keyword; 0 found
34 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
34 | ERROR | [x] Short array syntax must be used to define arrays
38 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
38 | ERROR | [x] Short array syntax must be used to define arrays
39 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
39 | ERROR | [x] Closing brace indented incorrectly; expected 5 spaces, found 4
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
40 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found 2
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
45 | ERROR | [x] Closing brace indented incorrectly; expected 2 spaces, found 0
46 | ERROR | [x] Expected 1 newline at end of file; 0 found
46 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldFormatter/ColorPickrDefaultFormatter.php
--------------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
30 | ERROR | [x] Short array syntax must be used to define arrays
33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
33 | ERROR | [x] Expected 1 space after IF keyword; 0 found
34 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
34 | ERROR | [x] Short array syntax must be used to define arrays
38 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
38 | ERROR | [x] Short array syntax must be used to define arrays
39 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
39 | ERROR | [x] Closing brace indented incorrectly; expected 5 spaces, found 4
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
40 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found 2
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
43 | ERROR | [x] Closing brace indented incorrectly; expected 2 spaces, found 0
44 | ERROR | [x] Expected 1 newline at end of file; 0 found
44 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldFormatter/ColorPickrSquareFormatter.php
-------------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AFFECTING 11 LINES
-------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
30 | ERROR | [x] Short array syntax must be used to define arrays
33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
33 | ERROR | [x] Expected 1 space after IF keyword; 0 found
34 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
34 | ERROR | [x] Short array syntax must be used to define arrays
38 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
38 | ERROR | [x] Short array syntax must be used to define arrays
39 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
39 | ERROR | [x] Closing brace indented incorrectly; expected 5 spaces, found 4
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
40 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found 2
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
45 | ERROR | [x] Closing brace indented incorrectly; expected 2 spaces, found 0
46 | ERROR | [x] Expected 1 newline at end of file; 0 found
46 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldFormatter/ColorPickrLineFormatter.php
-----------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AFFECTING 11 LINES
-----------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
30 | ERROR | [x] Short array syntax must be used to define arrays
33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
33 | ERROR | [x] Expected 1 space after IF keyword; 0 found
34 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
34 | ERROR | [x] Short array syntax must be used to define arrays
38 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
38 | ERROR | [x] Short array syntax must be used to define arrays
39 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
39 | ERROR | [x] Closing brace indented incorrectly; expected 5 spaces, found 4
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
40 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found 2
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
45 | ERROR | [x] Closing brace indented incorrectly; expected 2 spaces, found 0
46 | ERROR | [x] Expected 1 newline at end of file; 0 found
46 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldType/ColorPickrItem.php
-----------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
31 | ERROR | [x] Short array syntax must be used to define arrays
32 | ERROR | [x] Short array syntax must be used to define arrays
33 | ERROR | [x] Short array syntax must be used to define arrays
53 | ERROR | [ ] Visibility must be declared on property "$propertyDefinitions"
60 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
60 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
64 | ERROR | [x] Expected 1 newline at end of file; 0 found
64 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldWidget/ColorPickrDefaultWidget.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
44 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
51 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
61 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
72 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldFormatter/ColorPickrCircleFormatter.php
-------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
38 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldFormatter/ColorPickrHexagonFormatter.php
--------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
38 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldFormatter/ColorPickrDefaultFormatter.php
--------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
38 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldFormatter/ColorPickrSquareFormatter.php
-------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
38 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------------------
FILE: /home/system/Documents/contribution/color_pickr/src/Plugin/Field/FieldFormatter/ColorPickrLineFormatter.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
38 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------------
Steps to reproduce
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/views_bulk_operations/
Proposed resolution
Resolve the PHPCS issues.