Fix the issues reported by phpcs

Created on 8 July 2024, 5 months ago
Updated 9 July 2024, 5 months ago

Problem/Motivation

Running :-
vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/contrib/seo_analyzer/
returns the following warnings/errors, which should be fixed.

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/seo_analyzer.links.task.yml
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
4 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/css/seo-analyzer.css
----------------------------------------------------------------------------------------------
FOUND 46 ERRORS AFFECTING 46 LINES
----------------------------------------------------------------------------------------------
3 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
4 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
7 | 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
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
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
36 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
40 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
41 | 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
46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
50 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
58 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
67 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
69 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
73 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
79 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
82 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 46 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/seo_analyzer.module
------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------
3 | ERROR | [ ] Missing short description in doc comment
69 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
79 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/seo_analyzer.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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/stopwords/nl.yml
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
15 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/stopwords/pl.yml
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
11 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/stopwords/en.yml
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
17 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/templates/table-general-analytics.html.twig
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
108 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/templates/page-seo-analyzer-error.html.twig
---------------------------------------------------------------------------------------------------------------------
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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/templates/table-keyword-analytics.html.twig
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
268 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/templates/table-content-analytics.html.twig
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
116 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/templates/page-seo-analyzer.html.twig
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Page.php
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 69 ERRORS AND 17 WARNINGS AFFECTING 65 LINES
------------------------------------------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
10 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\seo_analyzer\Parser\Parser.
14 | ERROR | [x] Missing class doc comment
22 | ERROR | [ ] Missing short description in doc comment
27 | ERROR | [ ] Missing short description in doc comment
32 | ERROR | [ ] Missing short description in doc comment
37 | ERROR | [ ] Missing short description in doc comment
42 | ERROR | [ ] Missing short description in doc comment
47 | ERROR | [ ] Missing short description in doc comment
48 | ERROR | [x] Expected "string Web page content html" but found "string Web page content (html)" for @var tag in member variable comment
52 | ERROR | [ ] Missing short description in doc comment
57 | ERROR | [ ] Missing short description in doc comment
58 | ERROR | [x] Data types in @var tags need to be fully namespaced
58 | ERROR | [x] Data types in @var tags need to be fully namespaced
62 | ERROR | [ ] Missing short description in doc comment
63 | ERROR | [x] Data types in @var tags need to be fully namespaced
63 | ERROR | [x] Data types in @var tags need to be fully namespaced
70 | ERROR | [ ] Missing parameter comment
71 | ERROR | [ ] Missing parameter comment
72 | ERROR | [ ] Missing parameter comment
72 | ERROR | [x] Data types in @param tags need to be fully namespaced
72 | ERROR | [x] Data types in @param tags need to be fully namespaced
73 | ERROR | [ ] Missing parameter comment
73 | ERROR | [x] Data types in @param tags need to be fully namespaced
73 | ERROR | [x] Data types in @param tags need to be fully namespaced
79 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
110 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
111 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
120 | ERROR | [ ] Missing parameter comment
121 | ERROR | [x] Separate the @param and @return sections by a blank line.
121 | ERROR | [ ] Description for the @return value must be on the next line
157 | ERROR | [ ] Description for the @return value is missing
179 | WARNING | [x] A comma should follow the last multiline array item. Found: $redirect
186 | ERROR | [ ] Description for the @return value must be on the next line
188 | ERROR | [ ] Protected method name "Page::getSSLResponseCode" is not in lowerCamel format
211 | WARNING | [x] A comma should follow the last multiline array item. Found: )
218 | ERROR | [ ] Description for the @return value is missing
219 | ERROR | [x] Separate the @return and @throws sections by a blank line.
219 | ERROR | [x] Data types in @throws tags need to be fully namespaced
230 | ERROR | [ ] Missing parameter comment
231 | ERROR | [x] Separate the @param and @return sections by a blank line.
231 | ERROR | [ ] Description for the @return value is missing
232 | ERROR | [x] Separate the @return and @throws sections by a blank line.
232 | ERROR | [x] Data types in @throws tags need to be fully namespaced
239 | ERROR | [x] Missing function doc comment
258 | WARNING | [x] A comma should follow the last multiline array item. Found: )
263 | WARNING | [x] A comma should follow the last multiline array item. Found: stopWords
268 | WARNING | [x] A comma should follow the last multiline array item. Found: stopWords
269 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
276 | ERROR | [ ] Missing parameter comment
292 | WARNING | [x] A comma should follow the last multiline array item. Found: 'URL'
298 | WARNING | [x] A comma should follow the last multiline array item. Found: 'UrlPath'
304 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Title'
310 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Description'
314 | WARNING | [x] A comma should follow the last multiline array item. Found: $keyword
320 | WARNING | [x] A comma should follow the last multiline array item. Found: $keyword
321 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
328 | ERROR | [x] Parameter comment must be on the next line
328 | ERROR | [x] Parameter comment must end with a full stop
329 | ERROR | [x] Separate the @param and @return sections by a blank line.
329 | ERROR | [ ] Description for the @return value is missing
330 | ERROR | [x] Separate the @return and @throws sections by a blank line.
330 | ERROR | [x] Data types in @throws tags need to be fully namespaced
351 | ERROR | [ ] Missing parameter comment
352 | ERROR | [ ] Missing parameter comment
353 | ERROR | [x] Separate the @param and @return sections by a blank line.
353 | ERROR | [ ] Description for the @return value is missing
368 | ERROR | [x] Parameter comment must be on the next line
368 | ERROR | [x] Parameter comment must end with a full stop
369 | ERROR | [x] Parameter comment must be on the next line
369 | ERROR | [x] Parameter comment must end with a full stop
370 | ERROR | [x] Parameter comment must be on the next line
370 | ERROR | [x] Parameter comment must end with a full stop
371 | ERROR | [x] Separate the @param and @return sections by a blank line.
371 | ERROR | [ ] Description for the @return value is missing
374 | WARNING | [ ] Unused variable $loc.
384 | ERROR | [ ] Missing parameter comment
395 | ERROR | [ ] Missing parameter comment
396 | ERROR | [x] Separate the @param and @return sections by a blank line.
396 | ERROR | [ ] Description for the @return value is missing
411 | ERROR | [ ] Missing parameter comment
412 | ERROR | [x] Separate the @param and @return sections by a blank line.
412 | ERROR | [ ] Description for the @return value is missing
424 | ERROR | [x] Expected 1 blank line after function; 0 found
425 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 53 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Parser/AbstractParser.php
----------------------------------------------------------------------------------------------------------
FOUND 16 ERRORS AND 1 WARNING AFFECTING 14 LINES
----------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
7 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
9 | ERROR | [x] Missing class doc comment
10 | ERROR | [ ] Missing short description in doc comment
11 | ERROR | [x] Data types in @var tags need to be fully namespaced
15 | ERROR | [ ] Missing short description in doc comment
16 | ERROR | [x] Parameter comment must be on the next line
26 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
37 | ERROR | [ ] Missing parameter comment
52 | ERROR | [ ] Missing parameter comment
53 | ERROR | [x] Separate the @param and @return sections by a blank line.
53 | ERROR | [ ] Description for the @return value is missing
53 | ERROR | [x] Data types in @return tags need to be fully namespaced
57 | ERROR | [x] Expected 1 blank line after function; 0 found
58 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Parser/ExampleCustomParser.php
------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
9 | ERROR | [x] Expected 1 blank line before function; 0 found
20 | ERROR | [x] Expected 1 blank line after function; 0 found
21 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Parser/Parser.php
-----------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 10 LINES
-----------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
9 | ERROR | [x] Expected 1 blank line before function; 0 found
18 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
35 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
45 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
65 | ERROR | [x] Whitespace found at end of line
80 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
87 | ERROR | [x] Expected 1 blank line after function; 0 found
88 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Parser/ParserInterface.php
--------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing interface doc comment
9 | ERROR | [ ] Missing parameter comment
9 | ERROR | [ ] Missing parameter type
11 | ERROR | [x] Expected 1 blank line before function; 0 found
16 | ERROR | [ ] Description for the @return value is missing
23 | ERROR | [ ] Description for the @return value is missing
30 | ERROR | [ ] Description for the @return value is missing
37 | ERROR | [ ] Description for the @return value is missing
44 | ERROR | [ ] Description for the @return value is missing
46 | ERROR | [x] Expected 1 blank line after function; 0 found
47 | ERROR | [x] The closing brace for the interface must have an empty line before it
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/MetricFactory.php
--------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
7 | ERROR | [x] Missing class doc comment
8 | ERROR | [ ] Missing short description in doc comment
9 | ERROR | [ ] Missing parameter comment
10 | ERROR | [ ] Missing parameter comment
11 | ERROR | [ ] Description for the @return value is missing
12 | ERROR | [x] Data types in @throws tags need to be fully namespaced
14 | ERROR | [x] Expected 1 blank line before function; 0 found
29 | ERROR | [x] Expected 1 blank line after function; 0 found
30 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/AbstractMetric.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AFFECTING 13 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\StringTranslation\StringTranslationTrait.
9 | ERROR | [x] Missing class doc comment
15 | ERROR | [ ] Missing short description in doc comment
20 | ERROR | [ ] Missing short description in doc comment
21 | ERROR | [x] Expected "string The human-readable metric description" but found "string The human-readable metric description." for @var tag in member variable comment
25 | ERROR | [ ] Missing short description in doc comment
30 | ERROR | [ ] Missing short description in doc comment
31 | ERROR | [x] Expected "int Negative impact on SEO Higher value then bigger negative impact" but found "int Negative impact on SEO. Higher value then bigger negative impact." for
| | @var tag in member variable comment
35 | ERROR | [ ] Missing short description in doc comment
36 | ERROR | [x] Parameter comment must be on the next line
36 | ERROR | [x] Parameter comment must end with a full stop
45 | ERROR | [x] Expected 1 blank line after function; 0 found
46 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/File/RobotsMetric.php
----------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
23 | ERROR | [x] Expected 1 blank line after function; 0 found
24 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/File/SitemapMetric.php
-----------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
19 | ERROR | [x] Expected 1 blank line after function; 0 found
20 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/MetricInterface.php
--------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing interface doc comment
9 | ERROR | [ ] Description for the @return value is missing
11 | ERROR | [x] Expected 1 blank line before function; 0 found
11 | ERROR | [x] Expected 1 blank line after function; 0 found
12 | ERROR | [x] The closing brace for the interface must have an empty line before it
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/HeadersKeywordDensityMetric.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
8 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
34 | ERROR | [x] Expected 1 blank line after function; 0 found
35 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordUrlMetric.php
--------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
20 | ERROR | [x] Expected 1 blank line after function; 0 found
21 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/HeadersMetric.php
-----------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
-----------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
18 | ERROR | [x] Case breaking statements must be followed by a single blank line
22 | ERROR | [x] Case breaking statements must be followed by a single blank line
26 | ERROR | [x] Case breaking statements must be followed by a single blank line
30 | ERROR | [x] Case breaking statements must be followed by a single blank line
34 | ERROR | [x] Case breaking statements must be followed by a single blank line
38 | ERROR | [x] Case breaking statements must be followed by a single blank line
42 | ERROR | [x] Case breaking statements must be followed by a single blank line
48 | ERROR | [x] Expected 1 blank line after function; 0 found
49 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/MetaMetric.php
----------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
19 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
29 | ERROR | [x] Case breaking statements must be followed by a single blank line
33 | ERROR | [x] Case breaking statements must be followed by a single blank line
37 | ERROR | [x] Case breaking statements must be followed by a single blank line
43 | ERROR | [x] Expected 1 blank line after function; 0 found
44 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordPathMetric.php
---------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
20 | ERROR | [x] Expected 1 blank line after function; 0 found
21 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/RedirectMetric.php
------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
19 | ERROR | [x] Expected 1 blank line after function; 0 found
20 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/AltsMetric.php
--------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
9 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
11 | ERROR | [x] Expected 1 blank line before function; 0 found
28 | ERROR | [x] Expected 1 blank line after function; 0 found
29 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/AbstractKeywordDensityMetric.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 27 ERRORS AFFECTING 22 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
8 | ERROR | [ ] Missing member variable doc comment
10 | ERROR | [ ] Missing member variable doc comment
22 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
23 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
31 | ERROR | [ ] Missing parameter comment
32 | ERROR | [ ] Missing parameter comment
33 | ERROR | [x] Separate the @param and @return sections by a blank line.
33 | ERROR | [ ] Description for the @return value is missing
52 | ERROR | [ ] Missing parameter comment
53 | ERROR | [ ] Missing parameter comment
54 | ERROR | [ ] Missing parameter comment
55 | ERROR | [x] Parameter comment must be on the next line
55 | ERROR | [x] Parameter comment must end with a full stop
56 | ERROR | [x] Separate the @param and @return sections by a blank line.
56 | ERROR | [ ] Description for the @return value is missing
88 | ERROR | [ ] Missing parameter comment
89 | ERROR | [ ] Missing parameter comment
90 | ERROR | [x] Separate the @param and @return sections by a blank line.
90 | ERROR | [ ] Description for the @return value is missing
112 | ERROR | [ ] Missing parameter comment
113 | ERROR | [ ] Missing parameter comment
114 | ERROR | [ ] Missing parameter comment
115 | ERROR | [x] Separate the @param and @return sections by a blank line.
115 | ERROR | [ ] Description for the @return value is missing
140 | ERROR | [x] Expected 1 blank line after function; 0 found
141 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/Keyword/HeadersMetric.php
-------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
32 | ERROR | [x] Expected 1 blank line after function; 0 found
33 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordTitleMetric.php
----------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
19 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
28 | ERROR | [x] Expected 1 blank line after function; 0 found
29 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/Content/SizeMetric.php
----------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
18 | ERROR | [x] Case breaking statements must be followed by a single blank line
22 | ERROR | [x] Case breaking statements must be followed by a single blank line
26 | ERROR | [x] Case breaking statements must be followed by a single blank line
30 | ERROR | [x] Case breaking statements must be followed by a single blank line
36 | ERROR | [x] Expected 1 blank line after function; 0 found
37 | 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/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/Content/RatioMetric.php
-----------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
19 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
31 | ERROR | [x] Expected 1 blank line after function; 0 found
32 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/Url/LengthMetric.php
--------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
23 | ERROR | [x] Expected 1 blank line after function; 0 found
24 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/SSLMetric.php
-------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
19 | ERROR | [x] Expected 1 blank line after function; 0 found
20 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordMetric.php
-----------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
20 | ERROR | [x] Expected 1 blank line after function; 0 found
21 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordDescriptionMetric.php
----------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
20 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
29 | ERROR | [x] Expected 1 blank line after function; 0 found
30 | 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: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/LoadTimeMetric.php
------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
22 | ERROR | [x] Case breaking statements must be followed by a single blank line
26 | ERROR | [x] Case breaking statements must be followed by a single blank line
32 | ERROR | [x] Expected 1 blank line after function; 0 found
33 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordDensityMetric.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
8 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
16 | ERROR | [x] No space found before comment text; expected "// unset($this->value);" but found "//unset($this->value);"
16 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
30 | ERROR | [x] Missing function doc comment
32 | ERROR | [x] No space found before comment text; expected "// unset($this->value);" but found "//unset($this->value);"
32 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
48 | ERROR | [x] Expected 1 blank line after function; 0 found
49 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Analyzer.php
----------------------------------------------------------------------------------------------------------------------
FOUND 62 ERRORS AND 3 WARNINGS AFFECTING 42 LINES
----------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
7 | WARNING | [x] Unused use statement
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\seo_analyzer\Page.
14 | ERROR | [x] Missing class doc comment
15 | ERROR | [ ] Missing short description in doc comment
16 | ERROR | [x] Data types in @var tags need to be fully namespaced
20 | ERROR | [ ] Missing short description in doc comment
25 | ERROR | [ ] Missing short description in doc comment
30 | ERROR | [ ] Missing short description in doc comment
31 | ERROR | [x] Data types in @var tags need to be fully namespaced
31 | ERROR | [x] Data types in @var tags need to be fully namespaced
35 | ERROR | [ ] Missing short description in doc comment
36 | ERROR | [x] Data types in @param tags need to be fully namespaced
36 | ERROR | [x] Parameter comment must be on the next line
36 | ERROR | [x] Parameter comment must end with a full stop
37 | ERROR | [ ] Missing parameter comment
37 | ERROR | [x] Data types in @param tags need to be fully namespaced
37 | ERROR | [x] Data types in @param tags need to be fully namespaced
53 | ERROR | [x] Parameter comment must be on the next line
53 | ERROR | [x] Parameter comment must end with a full stop
54 | ERROR | [ ] Missing parameter comment
55 | ERROR | [ ] Missing parameter comment
56 | ERROR | [x] Separate the @param and @return sections by a blank line.
56 | ERROR | [ ] Description for the @return value is missing
57 | ERROR | [x] Separate the @return and @throws sections by a blank line.
57 | ERROR | [x] Data types in @throws tags need to be fully namespaced
73 | ERROR | [ ] Missing parameter comment
74 | ERROR | [ ] Missing parameter comment
75 | ERROR | [x] Separate the @param and @return sections by a blank line.
75 | ERROR | [ ] Description for the @return value is missing
76 | ERROR | [x] Separate the @return and @throws sections by a blank line.
76 | ERROR | [x] Data types in @throws tags need to be fully namespaced
87 | ERROR | [ ] Missing parameter comment
88 | ERROR | [ ] Missing parameter comment
89 | ERROR | [x] Separate the @param and @return sections by a blank line.
89 | ERROR | [ ] Description for the @return value is missing
90 | ERROR | [x] Separate the @return and @throws sections by a blank line.
90 | ERROR | [x] Data types in @throws tags need to be fully namespaced
101 | ERROR | [ ] Description for the @return value is missing
102 | ERROR | [x] Separate the @return and @throws sections by a blank line.
102 | ERROR | [x] Data types in @throws tags need to be fully namespaced
122 | ERROR | [x] Doc comment short description must end with a full stop
124 | ERROR | [ ] Description for the @return value is missing
125 | ERROR | [x] Separate the @return and @throws sections by a blank line.
125 | ERROR | [x] Data types in @throws tags need to be fully namespaced
134 | ERROR | [ ] Description for the @return value is missing
135 | ERROR | [x] Separate the @return and @throws sections by a blank line.
135 | ERROR | [x] Data types in @throws tags need to be fully namespaced
146 | WARNING | [x] A comma should follow the last multiline array item. Found: )
153 | ERROR | [ ] Missing parameter comment
153 | ERROR | [ ] Missing parameter type
154 | ERROR | [ ] Missing parameter comment
154 | ERROR | [ ] Missing parameter type
155 | ERROR | [x] Separate the @param and @return sections by a blank line.
155 | ERROR | [ ] Description for the @return value is missing
171 | ERROR | [ ] Missing parameter comment
171 | ERROR | [x] Data types in @param tags need to be fully namespaced
172 | ERROR | [ ] Missing parameter comment
172 | ERROR | [ ] Missing parameter type
173 | ERROR | [x] Separate the @param and @return sections by a blank line.
173 | ERROR | [ ] Description for the @return value is missing
184 | ERROR | [x] Expected 1 blank line after function; 0 found
185 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 38 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Form/KeywordForm.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
31 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
31 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
32 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
55 | ERROR | [x] Short array syntax must be used to define arrays
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Controller/SeoAnalyzerController.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 16 ERRORS AND 5 WARNINGS AFFECTING 20 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Url.
10 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
17 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
22 | ERROR | [ ] Missing @var tag in member variable comment
29 | ERROR | [x] Expected 1 blank line before function; 2 found
47 | ERROR | [x] Whitespace found at end of line
55 | ERROR | [x] Data types in @throws tags need to be fully namespaced
63 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
64 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
71 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
71 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
72 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
80 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
90 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
102 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
151 | ERROR | [x] Parameter comment must end with a full stop
153 | ERROR | [x] Parameter comment must end with a full stop
187 | ERROR | [x] Parameter comment must end with a full stop
189 | ERROR | [x] Parameter comment must end with a full stop
216 | ERROR | [x] Expected 1 blank line after function; 0 found
217 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/HttpClient/Client.php
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\seo_analyzer\HttpClient\Exception\HttpException.
10 | ERROR | [x] Missing class doc comment
11 | ERROR | [ ] Missing member variable doc comment
14 | WARNING | [x] A comma should follow the last multiline array item. Found: 'grgk-seo-analyzer/1.0'
15 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
19 | ERROR | [x] @inheritdoc found. Did you mean {@inheritdoc}?
31 | ERROR | [x] Expected 1 blank line after function; 0 found
32 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/HttpClient/Exception/HttpException.php
--------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
7 | ERROR | [x] Missing class doc comment
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/HttpClient/ClientInterface.php
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 1 WARNING AFFECTING 9 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\seo_analyzer\HttpClient\Exception\HttpException.
8 | ERROR | [x] Missing interface doc comment
9 | ERROR | [ ] Missing short description in doc comment
10 | ERROR | [ ] Missing parameter comment
11 | ERROR | [ ] Missing parameter comment
12 | ERROR | [ ] Description for the @return value is missing
12 | ERROR | [x] Data types in @return tags need to be fully namespaced
13 | ERROR | [x] Data types in @throws tags need to be fully namespaced
15 | ERROR | [x] Expected 1 blank line before function; 0 found
15 | ERROR | [x] Expected 1 blank line after function; 0 found
16 | ERROR | [x] The closing brace for the interface must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/src/Factor.php
----------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
51 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/seo_analyzer.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/seo_analyzer/seo_analyzer.libraries.yml
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------

Time: 497ms; Memory: 12MB

Steps to reproduce

Proposed resolution

Remaining tasks

Create the MR .

User interface changes

API changes

Data model changes

šŸ“Œ Task
Status

Needs work

Version

1.0

Component

Code

Created by

šŸ‡®šŸ‡³India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan

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

Merge Requests

Comments & Activities

  • Issue created by @prem suthar
  • Assigned to sourav_paul
  • šŸ‡®šŸ‡³India sourav_paul Kolkata
  • Issue was unassigned.
  • Status changed to Needs review 5 months ago
  • šŸ‡®šŸ‡³India sourav_paul Kolkata
  • Status changed to Needs work 5 months ago
  • šŸ‡µšŸ‡­Philippines cleavinjosh

    Hi @Sourav_Paul,

    I applied MR!2 and I still encountered some issues after I ran phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml.

    āžœ seo_analyzer git:(main) āœ— curl https://git.drupalcode.org/project/seo_analyzer/-/merge_requests/2.diff | patch -p1
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 58416 0 58416 0 0 122k 0 --:--:-- --:--:-- --:--:-- 122k
    patching file css/seo-analyzer.css
    patching file seo_analyzer.info.yml
    Hunk #1 FAILED at 4.
    1 out of 1 hunk FAILED -- saving rejects to file seo_analyzer.info.yml.rej
    patching file seo_analyzer.libraries.yml
    patching file seo_analyzer.links.task.yml
    patching file seo_analyzer.module
    patching file seo_analyzer.permissions.yml
    patching file src/Analyzer.php
    patching file src/Controller/SeoAnalyzerController.php
    patching file src/Factor.php
    patching file src/Form/KeywordForm.php
    patching file src/HttpClient/Client.php
    patching file src/HttpClient/ClientInterface.php
    patching file src/HttpClient/Exception/HttpException.php
    patching file src/Metric/AbstractMetric.php
    patching file src/Metric/File/RobotsMetric.php
    patching file src/Metric/File/SitemapMetric.php
    patching file src/Metric/MetricFactory.php
    patching file src/Metric/MetricInterface.php
    patching file src/Metric/Page/AbstractKeywordDensityMetric.php
    patching file src/Metric/Page/AltsMetric.php
    patching file src/Metric/Page/Content/RatioMetric.php
    patching file src/Metric/Page/Content/SizeMetric.php
    patching file src/Metric/Page/HeadersKeywordDensityMetric.php
    patching file src/Metric/Page/HeadersMetric.php
    patching file src/Metric/Page/Keyword/HeadersMetric.php
    patching file src/Metric/Page/KeywordDensityMetric.php
    patching file src/Metric/Page/KeywordDescriptionMetric.php
    patching file src/Metric/Page/KeywordMetric.php
    patching file src/Metric/Page/KeywordPathMetric.php
    patching file src/Metric/Page/KeywordTitleMetric.php
    patching file src/Metric/Page/KeywordUrlMetric.php
    patching file src/Metric/Page/LoadTimeMetric.php
    patching file src/Metric/Page/MetaMetric.php
    patching file src/Metric/Page/RedirectMetric.php
    patching file src/Metric/Page/SSLMetric.php
    patching file src/Metric/Page/Url/LengthMetric.php
    patching file src/Page.php
    patching file src/Parser/AbstractParser.php
    patching file src/Parser/ExampleCustomParser.php
    patching file src/Parser/Parser.php
    patching file src/Parser/ParserInterface.php
    patching file stopwords/en.yml
    patching file stopwords/nl.yml
    patching file stopwords/pl.yml
    patching file templates/page-seo-analyzer-error.html.twig
    patching file templates/page-seo-analyzer.html.twig
    patching file templates/table-content-analytics.html.twig
    patching file templates/table-general-analytics.html.twig
    patching file templates/table-keyword-analytics.html.twig
    āžœ seo_analyzer git:(main) āœ— ..
    āžœ contrib git:(main) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml seo_analyzer

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/seo_analyzer.info.yml
    -------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------
    1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
    1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
    1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
    -------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Form/KeywordForm.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    31 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
    31 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
    32 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/HttpClient/ClientInterface.php
    ---------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 6 ERRORS AND 1 WARNING AFFECTING 6 LINES
    ---------------------------------------------------------------------------------------------------------------------------------------------------
    6 | WARNING | [x] Unused use statement
    6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\seo_analyzer\HttpClient\Exception\HttpException.
    8 | ERROR | [ ] Doc comment is empty
    13 | ERROR | [ ] Missing short description in doc comment
    14 | ERROR | [ ] Missing parameter comment
    15 | ERROR | [ ] Missing parameter comment
    16 | ERROR | [ ] Description for the @return value is missing
    ---------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/HttpClient/Exception/HttpException.php
    ----------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    ----------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/HttpClient/Client.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    -----------------------------------------------------------------------------------------------------------
    10 | ERROR | Doc comment is empty
    14 | ERROR | Missing member variable doc comment
    -----------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Analyzer.php
    --------------------------------------------------------------------------------------------------
    FOUND 28 ERRORS AFFECTING 25 LINES
    --------------------------------------------------------------------------------------------------
    11 | ERROR | Doc comment is empty
    15 | ERROR | Missing short description in doc comment
    20 | ERROR | Missing short description in doc comment
    25 | ERROR | Missing short description in doc comment
    30 | ERROR | Missing short description in doc comment
    35 | ERROR | Missing short description in doc comment
    38 | ERROR | Missing parameter comment
    56 | ERROR | Missing parameter comment
    57 | ERROR | Missing parameter comment
    59 | ERROR | Description for the @return value is missing
    77 | ERROR | Missing parameter comment
    78 | ERROR | Missing parameter comment
    80 | ERROR | Description for the @return value is missing
    93 | ERROR | Missing parameter comment
    94 | ERROR | Missing parameter comment
    96 | ERROR | Description for the @return value is missing
    109 | ERROR | Description for the @return value is missing
    133 | ERROR | Description for the @return value is missing
    144 | ERROR | Description for the @return value is missing
    164 | ERROR | Missing parameter comment
    164 | ERROR | Missing parameter type
    165 | ERROR | Missing parameter comment
    165 | ERROR | Missing parameter type
    167 | ERROR | Description for the @return value is missing
    183 | ERROR | Missing parameter comment
    184 | ERROR | Missing parameter comment
    184 | ERROR | Missing parameter type
    186 | ERROR | Description for the @return value is missing
    --------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Parser/Parser.php
    -------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    -------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Parser/ExampleCustomParser.php
    --------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    --------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Parser/ParserInterface.php
    ----------------------------------------------------------------------------------------------------------------
    FOUND 8 ERRORS AFFECTING 7 LINES
    ----------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    13 | ERROR | Missing parameter comment
    13 | ERROR | Missing parameter type
    20 | ERROR | Description for the @return value is missing
    27 | ERROR | Description for the @return value is missing
    34 | ERROR | Description for the @return value is missing
    41 | ERROR | Description for the @return value is missing
    48 | ERROR | Description for the @return value is missing
    ----------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Parser/AbstractParser.php
    ---------------------------------------------------------------------------------------------------------------
    FOUND 6 ERRORS AFFECTING 6 LINES
    ---------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    9 | ERROR | Missing short description in doc comment
    14 | ERROR | Missing short description in doc comment
    37 | ERROR | Missing parameter comment
    52 | ERROR | Missing parameter comment
    54 | ERROR | Description for the @return value is missing
    ---------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Controller/SeoAnalyzerController.php
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 6 ERRORS AND 6 WARNINGS AFFECTING 10 LINES
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    10 | WARNING | [x] Unused use statement
    10 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
    11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\seo_analyzer\HttpClient\Exception\HttpException.
    17 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
    22 | ERROR | [ ] Missing @var tag in member variable comment
    62 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
    70 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
    70 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
    71 | ERROR | [ ] The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
    79 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
    89 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
    101 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Page.php
    -------------------------------------------------------------------------------------------------------------------------------
    FOUND 35 ERRORS AND 2 WARNINGS AFFECTING 36 LINES
    -------------------------------------------------------------------------------------------------------------------------------
    10 | WARNING | [x] Unused use statement
    10 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
    11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\seo_analyzer\Parser\Parser.
    25 | ERROR | [ ] Missing short description in doc comment
    30 | ERROR | [ ] Missing short description in doc comment
    35 | ERROR | [ ] Missing short description in doc comment
    40 | ERROR | [ ] Missing short description in doc comment
    45 | ERROR | [ ] Missing short description in doc comment
    50 | ERROR | [ ] Missing short description in doc comment
    55 | ERROR | [ ] Missing short description in doc comment
    60 | ERROR | [ ] Missing short description in doc comment
    65 | ERROR | [ ] Missing short description in doc comment
    73 | ERROR | [ ] Missing parameter comment
    74 | ERROR | [ ] Missing parameter comment
    75 | ERROR | [ ] Missing parameter comment
    76 | ERROR | [ ] Missing parameter comment
    123 | ERROR | [ ] Missing parameter comment
    125 | ERROR | [ ] Description for the @return value must be on the next line
    161 | ERROR | [ ] Description for the @return value is missing
    190 | ERROR | [ ] Description for the @return value must be on the next line
    192 | ERROR | [ ] Protected method name "Page::getSSLResponseCode" is not in lowerCamel format
    222 | ERROR | [ ] Description for the @return value is missing
    235 | ERROR | [ ] Missing parameter comment
    237 | ERROR | [ ] Description for the @return value is missing
    246 | ERROR | [ ] Doc comment is empty
    286 | ERROR | [ ] Missing parameter comment
    341 | ERROR | [ ] Description for the @return value is missing
    364 | ERROR | [ ] Missing parameter comment
    365 | ERROR | [ ] Missing parameter comment
    367 | ERROR | [ ] Description for the @return value is missing
    389 | ERROR | [ ] Description for the @return value is missing
    392 | WARNING | [ ] Unused variable $loc.
    402 | ERROR | [ ] Missing parameter comment
    413 | ERROR | [ ] Missing parameter comment
    415 | ERROR | [ ] Description for the @return value is missing
    430 | ERROR | [ ] Missing parameter comment
    432 | ERROR | [ ] Description for the @return value is missing
    -------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/AbstractKeywordDensityMetric.php
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 19 ERRORS AFFECTING 19 LINES
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    11 | ERROR | Missing member variable doc comment
    13 | ERROR | Missing member variable doc comment
    25 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
    26 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('keyword') instead
    34 | ERROR | Missing parameter comment
    35 | ERROR | Missing parameter comment
    37 | ERROR | Description for the @return value is missing
    56 | ERROR | Missing parameter comment
    57 | ERROR | Missing parameter comment
    58 | ERROR | Missing parameter comment
    62 | ERROR | Description for the @return value is missing
    94 | ERROR | Missing parameter comment
    95 | ERROR | Missing parameter comment
    97 | ERROR | Description for the @return value is missing
    119 | ERROR | Missing parameter comment
    120 | ERROR | Missing parameter comment
    121 | ERROR | Missing parameter comment
    123 | ERROR | Description for the @return value is missing
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordPathMetric.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    -----------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordMetric.php
    -------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    -------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/LoadTimeMetric.php
    --------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    --------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordDescriptionMetric.php
    ------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    23 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
    ------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/AltsMetric.php
    ----------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    ----------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/HeadersMetric.php
    -------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    -------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/Content/SizeMetric.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    ------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/Content/RatioMetric.php
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    -------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordUrlMetric.php
    ----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    ----------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/HeadersKeywordDensityMetric.php
    ---------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    ---------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/MetaMetric.php
    ----------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    ----------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    22 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
    ----------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/Url/LengthMetric.php
    ----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    ----------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordDensityMetric.php
    --------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    --------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    33 | ERROR | Doc comment is empty
    --------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/SSLMetric.php
    ---------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    ---------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/KeywordTitleMetric.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    22 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
    ------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/Keyword/HeadersMetric.php
    ---------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    ---------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/Page/RedirectMetric.php
    --------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    --------------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/MetricFactory.php
    --------------------------------------------------------------------------------------------------------------
    FOUND 5 ERRORS AFFECTING 5 LINES
    --------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    10 | ERROR | Missing short description in doc comment
    11 | ERROR | Missing parameter comment
    12 | ERROR | Missing parameter comment
    13 | ERROR | Description for the @return value is missing
    --------------------------------------------------------------------------------------------------------------

    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/seo_analyzer/src/Metric/AbstractMetric.php
    ---------------------------------------------------------------------------------------------------------------
    FOUND 6 ERRORS AFFECTING 6 LINES
    ---------------------------------------------------------------------------------------------------------------
    8 | ERROR | Doc comment is empty
    17 | ERROR | Missing short description in doc comment
    22 | ERROR | Missing short description in doc comment
    27 | ERROR | Missing short description in doc comment
    32 | ERROR | Missing short description in doc comment
    37 | ERROR | Missing short description in doc comment
    ---------------------------------------------------------------------------------------------------------------

    Time: 700ms; Memory: 12MB

    āžœ contrib git:(main) āœ—

    Please check and advise.
    Thank you.

Production build 0.71.5 2024