Fix the issues reported by phpcs

Created on 21 December 2023, 11 months ago
Updated 23 January 2024, 10 months ago

Problem/Motivation

PHPCS errors and warnings found in project these are have been flagged by phpcs
./vendor/bin/phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,ym web/modules/contrib/a12s/ and after running auto fix these are remaining flags.

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/css/layout-paragraphs-builder.css
---------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
---------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Form/LayoutParagraphEditDisplayOptionsForm.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
14 | WARNING | Line exceeds 80 characters; contains 81 characters
--------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Exception/A12sLayoutException.php
-------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
5 | ERROR | Doc comment is empty
-------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/DisplayOptions/DisplayTemplatePluginBase.php
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
31 | ERROR | Description for the @return value is missing
------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/DisplayOptions/DisplayOptionsSetInterface.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-------------------------------------------------------------------------------------------------------------------------
24 | ERROR | Description for the @return value is missing
45 | ERROR | Description for the @return value is missing
52 | ERROR | Missing parameter comment
53 | ERROR | Missing parameter comment
55 | ERROR | Description for the @return value is missing
126 | ERROR | Description for the @return value is missing
-------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/DisplayOptions/DisplayOptionsSetsFormTrait.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------------------------
20 | ERROR | Description for the @return value is missing
32 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
47 | ERROR | Description for the @return value is missing
62 | ERROR | The array declaration extends to column 146 (the limit is 120). The array content should be split up over multiple lines
102 | ERROR | Description for the @return value is missing
135 | ERROR | Description for the @return value is missing
162 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/DisplayOptions/DisplayTemplatePluginInterface.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------------
26 | ERROR | Description for the @return value is missing
33 | ERROR | Description for the @return value is missing
40 | ERROR | Description for the @return value is missing
54 | ERROR | Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/DisplayOptions/DisplayOptionsSetPluginBase.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
148 | ERROR | Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/DisplayOptions/DisplayTemplatePluginManager.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------------
28 | ERROR | Parameter $namespaces is not described in comment
28 | ERROR | Parameter $cache_backend is not described in comment
28 | ERROR | Parameter $module_handler is not described in comment
33 | ERROR | Doc comment for parameter $thDisplayOptionsStorage does not match actual variable name $module_handler
51 | WARNING | Line exceeds 80 characters; contains 102 characters
94 | ERROR | Doc comment for parameter $pluginId does not match actual variable name $variables
101 | ERROR | Description for the @return value is missing
---------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Plugin/A12sLayoutDisplayTemplate/Layout.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------
84 | ERROR | Description for the @return value is missing
146 | ERROR | Description for the @return value is missing
170 | ERROR | Description for the @return value is missing
190 | ERROR | Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Plugin/A12sLayoutDisplayOptionsSet/Width.php
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
135 | ERROR | Doc comment is empty
------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Plugin/A12sLayoutDisplayOptionsSet/AttributeId.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------
56 | ERROR | Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
59 | WARNING | Line exceeds 80 characters; contains 86 characters
60 | ERROR | Comment indentation error, expected only 1 spaces
------------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Plugin/A12sLayoutDisplayOptionsSet/BackgroundImage.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 25 ERRORS AND 5 WARNINGS AFFECTING 24 LINES
----------------------------------------------------------------------------------------------------------------------------------
48 | ERROR | Parameter $configuration is not described in comment
48 | ERROR | Parameter $plugin_id is not described in comment
48 | ERROR | Parameter $plugin_definition is not described in comment
48 | ERROR | Parameter $configFactory is not described in comment
48 | ERROR | Parameter $fileUrlGenerator is not described in comment
48 | ERROR | Parameter $breakpointManager is not described in comment
48 | ERROR | Parameter $fileUsage is not described in comment
57 | ERROR | Doc comment for parameter $file_url_generator does not match actual variable name $fileUsage
59 | ERROR | Doc comment for parameter $breakpoint_manager does not match actual variable name $fileUsage
63 | ERROR | Doc comment for parameter $file_usage does not match actual variable name $fileUsage
152 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
163 | ERROR | Description for the @return value is missing
215 | WARNING | Line exceeds 80 characters; contains 82 characters
240 | ERROR | Missing parameter comment
242 | ERROR | Description for the @return value is missing
260 | ERROR | No key specified for array entry; first entry specifies key
296 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
298 | ERROR | Missing parameter comment
303 | ERROR | Description for the @return value is missing
347 | ERROR | Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
592 | WARNING | Line exceeds 80 characters; contains 84 characters
623 | ERROR | Missing parameter comment
625 | ERROR | Description for the @return value is missing
646 | ERROR | Missing parameter comment
648 | ERROR | Description for the @return value is missing
658 | ERROR | Missing parameter comment
660 | ERROR | Description for the @return value is missing
716 | WARNING | Line exceeds 80 characters; contains 81 characters
717 | WARNING | Line exceeds 80 characters; contains 83 characters
718 | WARNING | Line exceeds 80 characters; contains 82 characters
----------------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Plugin/A12sLayoutDisplayOptionsSet/Spacing.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------------------------------------------------
177 | ERROR | Missing short description in doc comment
178 | ERROR | Missing parameter comment
179 | ERROR | Missing parameter comment
181 | ERROR | Description for the @return value is missing
204 | ERROR | Missing parameter comment
206 | ERROR | Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Plugin/A12sLayoutDisplayOptionsSet/AttributeClass.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------
60 | ERROR | Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
63 | WARNING | Line exceeds 80 characters; contains 86 characters
64 | ERROR | Comment indentation error, expected only 1 spaces
---------------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Plugin/A12sLayoutDisplayOptionsSet/GridLayout.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------
34 | WARNING | Possible useless method overriding detected
47 | WARNING | Do not pass empty strings to t()
-----------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Plugin/A12sLayoutDisplayOptionsSet/BackgroundColor.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------
123 | ERROR | Description for the @return value is missing
138 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Plugin/A12sLayoutDisplayOptionsSet/GridRegionOrder.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
73 | WARNING | Do not pass empty strings to t()
----------------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Plugin/paragraphs/Behavior/A12sLayoutDisplayBehavior.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------
33 | ERROR | Parameter $configuration is not described in comment
33 | ERROR | Parameter $plugin_id is not described in comment
33 | ERROR | Parameter $plugin_definition is not described in comment
33 | ERROR | Parameter $entity_field_manager is not described in comment
120 | ERROR | The array declaration extends to column 154 (the limit is 120). The array content should be split up over multiple lines
----------------------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Entity/DisplayOptionsInstanceInterface.php
----------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
16 | ERROR | Description for the @return value is missing
39 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/src/Entity/DisplayOptionsInstance.php
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
185 | WARNING | Possible useless method overriding detected
-------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/layout/a12s_layout.module
------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------
21 | ERROR | Missing short description in doc comment
45 | WARNING | Hook implementations should not duplicate @param documentation
46 | WARNING | Line exceeds 80 characters; contains 82 characters
108 | WARNING | Line exceeds 80 characters; contains 83 characters
------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/README.md
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
---------------------------------------------------------------------------------------
16 | WARNING | Line exceeds 80 characters; contains 82 characters
19 | WARNING | Line exceeds 80 characters; contains 82 characters
25 | WARNING | Line exceeds 80 characters; contains 86 characters
26 | WARNING | Line exceeds 80 characters; contains 81 characters
59 | WARNING | Line exceeds 80 characters; contains 81 characters
---------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/Form/PageContextForm.php
----------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AND 1 WARNING AFFECTING 15 LINES
----------------------------------------------------------------------------------------------------------
202 | ERROR | Description for the @return value is missing
220 | ERROR | Doc comment is empty
311 | ERROR | Missing parameter comment
312 | ERROR | Missing parameter comment
313 | ERROR | Missing parameter comment
314 | ERROR | Missing parameter comment
316 | ERROR | Description for the @return value is missing
331 | ERROR | Missing parameter comment
332 | ERROR | Missing parameter comment
333 | ERROR | Missing parameter comment
334 | ERROR | Missing parameter comment
336 | ERROR | Description for the @return value is missing
382 | WARNING | Line exceeds 80 characters; contains 85 characters
429 | ERROR | Missing parameter comment
431 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/Form/PathEdit.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------
30 | ERROR | Variable "ContextFormManager" starts with a capital letter, but only $lowerCamelCase or $snake_case is allowed
122 | WARNING | Line exceeds 80 characters; contains 81 characters
--------------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/RecordSet.php
-----------------------------------------------------------------------------------------------
FOUND 17 ERRORS AFFECTING 15 LINES
-----------------------------------------------------------------------------------------------
12 | ERROR | Missing short description in doc comment
24 | ERROR | Parameter $pageContextForm is not described in comment
24 | ERROR | Parameter $context is not described in comment
27 | ERROR | Missing parameter comment
61 | ERROR | Description for the @return value is missing
98 | ERROR | Description for the @return value is missing
111 | ERROR | Description for the @return value is missing
117 | ERROR | Missing short description in doc comment
118 | ERROR | Missing parameter comment
119 | ERROR | Missing parameter comment
120 | ERROR | Missing parameter comment
120 | ERROR | Missing parameter type
122 | ERROR | Description for the @return value is missing
159 | ERROR | Description for the @return value is missing
188 | ERROR | Description for the @return value is missing
199 | ERROR | Description for the @return value is missing
249 | ERROR | Description for the @return value is missing
-----------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/PageContextManagerInterface.php
-----------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------
5 | ERROR | Doc comment is empty
13 | ERROR | Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/Record.php
------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AND 2 WARNINGS AFFECTING 13 LINES
------------------------------------------------------------------------------------------------------------
10 | ERROR | Missing member variable doc comment
12 | ERROR | Class property $config_id should use lowerCamel naming without underscores
12 | ERROR | Missing member variable doc comment
14 | ERROR | Class property $plugin_id should use lowerCamel naming without underscores
14 | ERROR | Missing member variable doc comment
16 | ERROR | Missing member variable doc comment
18 | WARNING | Property name "$_data" should not be prefixed with an underscore to indicate visibility
18 | ERROR | Class property $_data should use lowerCamel naming without underscores
18 | ERROR | Missing member variable doc comment
20 | WARNING | Property name "$_settings" should not be prefixed with an underscore to indicate visibility
20 | ERROR | Class property $_settings should use lowerCamel naming without underscores
20 | ERROR | Missing member variable doc comment
30 | ERROR | Description for the @return value is missing
41 | ERROR | Description for the @return value is missing
50 | ERROR | Description for the @return value is missing
59 | ERROR | Description for the @return value is missing
68 | ERROR | Description for the @return value is missing
77 | ERROR | Description for the @return value is missing
86 | ERROR | Description for the @return value is missing
------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/Plugin/Action/GetPageContext.php
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
27 | ERROR | Missing short description in doc comment
------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/Plugin/A12sPageContextFormDisplay/Entity.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------
33 | ERROR | Parameter $configuration is not described in comment
33 | ERROR | Parameter $plugin_id is not described in comment
33 | ERROR | Parameter $plugin_definition is not described in comment
151 | ERROR | Comment indentation error, expected only 3 spaces
------------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/Plugin/A12sPageContextFormDisplay/EntityType.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
34 | ERROR | Parameter $configuration is not described in comment
34 | ERROR | Parameter $plugin_id is not described in comment
34 | ERROR | Parameter $plugin_definition is not described in comment
----------------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/Plugin/A12sPageContextFormDisplay/Path.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------
68 | ERROR | Missing parameter comment
70 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/Plugin/FormDisplayPluginInterface.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
-----------------------------------------------------------------------------------------------------------------------
29 | ERROR | Missing parameter type
32 | ERROR | Description for the @return value is missing
42 | ERROR | Description for the @return value is missing
49 | ERROR | Missing parameter type
52 | ERROR | Description for the @return value is missing
59 | ERROR | Missing parameter comment
61 | ERROR | Description for the @return value is missing
80 | ERROR | Description for the @return value is missing
105 | ERROR | Missing parameter type
108 | ERROR | Description for the @return value is missing
122 | ERROR | Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/Entity/PageContextForm.php
---------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------
118 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
151 | ERROR | Description for the @return value is missing
360 | WARNING | Line exceeds 80 characters; contains 89 characters
360 | ERROR | Comment indentation error, expected only 1 spaces
---------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/src/Entity/PageContextFormInterface.php
---------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 13 LINES
---------------------------------------------------------------------------------------------------------------------
19 | ERROR | Missing parameter comment
26 | ERROR | Description for the @return value is missing
33 | ERROR | Missing parameter comment
47 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
52 | ERROR | Description for the @return value is missing
59 | ERROR | Description for the @return value is missing
69 | ERROR | Description for the @return value is missing
80 | ERROR | Description for the @return value is missing
96 | ERROR | Description for the @return value is missing
115 | ERROR | Description for the @return value is missing
122 | ERROR | Missing parameter comment
123 | ERROR | Missing parameter comment
125 | ERROR | Description for the @return value is missing
---------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/page_context/a12s_page_context.module
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
19 | ERROR | Missing short description in doc comment
------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/theme_builder/src/ThemeHelper.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
10 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/theme_builder/src/ThemeHelperInterface.php
-----------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------
15 | ERROR | Missing parameter comment
16 | ERROR | Missing parameter comment
18 | ERROR | Description for the @return value is missing
52 | WARNING | Line exceeds 80 characters; contains 125 characters
-----------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/theme_builder/a12s_theme_builder.module
--------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------
9 | WARNING | Line exceeds 80 characters; contains 86 characters
26 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/seo/a12s_seo.module
------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------
34 | WARNING | Line exceeds 80 characters; contains 82 characters
------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/modules/seo/src/SeoManager.php
--------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------------------
5 | ERROR | Doc comment is empty
14 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
19 | WARNING | Line exceeds 80 characters; contains 89 characters
21 | ERROR | The @see reference should not contain any additional text
23 | ERROR | Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/src/TwigExtension/EntityTwigExtension.php
-------------------------------------------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------
103 | ERROR | Parameter $entity is not described in comment
103 | ERROR | Parameter $fieldName is not described in comment
103 | ERROR | Parameter $delta is not described in comment
103 | ERROR | Parameter $langCode is not described in comment
103 | ERROR | Parameter $checkAccess is not described in comment
124 | ERROR | Parameter $entity is not described in comment
124 | ERROR | Parameter $fieldName is not described in comment
124 | ERROR | Parameter $delta is not described in comment
124 | ERROR | Parameter $langCode is not described in comment
124 | ERROR | Parameter $checkAccess is not described in comment
126 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
153 | ERROR | Parameter $entity is not described in comment
153 | ERROR | Parameter $fieldName is not described in comment
153 | ERROR | Parameter $delta is not described in comment
153 | ERROR | Parameter $langCode is not described in comment
153 | ERROR | Parameter $checkAccess is not described in comment
-------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/src/EntityHelper.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
19 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/src/EntityHelperInterface.php
---------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 2 WARNINGS AFFECTING 11 LINES
---------------------------------------------------------------------------------------------------------------------
16 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
44 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
53 | ERROR | Description for the @return value is missing
59 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
70 | ERROR | Description for the @return value is missing
82 | WARNING | Line exceeds 80 characters; contains 83 characters
86 | ERROR | Description for the @return value is missing
108 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
118 | ERROR | Description for the @return value is missing
134 | ERROR | Description for the @return value is missing
147 | ERROR | Parameter $rel is not described in comment
---------------------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/a12s/src/EventSubscriber/PhpErrorsSubscriber.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
19 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

Steps to reproduce

- Install module via composer
- Run phpcs command

./vendor/bin/phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,ym web/modules/contrib/a12s/

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇲🇼Malawi chancenyasulu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024