Drupal Coding Standards Issues | phpcs

Created on 23 December 2022, over 1 year ago
Updated 30 January 2023, over 1 year ago

Problem/Motivation

FILE: /Applications/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/simple_sitemap.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: /Applications/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/simple_sitemap.install
---------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 7 WARNINGS AFFECTING 11 LINES
---------------------------------------------------------------------------------------------------------------------
297 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
314 | WARNING | Line exceeds 80 characters; contains 81 characters
315 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
340 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
382 | WARNING | Line exceeds 80 characters; contains 84 characters
398 | WARNING | Line exceeds 80 characters; contains 81 characters
434 | WARNING | Line exceeds 80 characters; contains 86 characters
536 | WARNING | Line exceeds 80 characters; contains 86 characters
600 | WARNING | Line exceeds 80 characters; contains 89 characters
718 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
842 | WARNING | Line exceeds 80 characters; contains 92 characters
---------------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/simple_sitemap.api.php
---------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/README.md
--------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------------------
174 | WARNING | Line exceeds 80 characters; contains 81 characters
196 | WARNING | Line exceeds 80 characters; contains 110 characters
233 | WARNING | Line exceeds 80 characters; contains 127 characters
249 | WARNING | Line exceeds 80 characters; contains 93 characters
256 | WARNING | Line exceeds 80 characters; contains 82 characters
259 | WARNING | Line exceeds 80 characters; contains 84 characters
275 | WARNING | Line exceeds 80 characters; contains 90 characters
279 | WARNING | Line exceeds 80 characters; contains 88 characters
285 | WARNING | Line exceeds 80 characters; contains 85 characters
--------------------------------------------------------------------------------------

FILE: ...MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/modules/simple_sitemap_engines/simple_sitemap_engines.install
----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------
89 | WARNING | Line exceeds 80 characters; contains 103 characters
102 | WARNING | Line exceeds 80 characters; contains 114 characters
----------------------------------------------------------------------------------------------------------------------------

FILE: ...AMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/modules/simple_sitemap_engines/simple_sitemap_engines.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: ...docs/10.1.x/drupal/modules/contrib/simple_sitemap/modules/simple_sitemap_engines/src/Form/SimplesitemapEnginesForm.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------------
220 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
221 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
223 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
224 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
225 | ERROR | [x] Expected 0 spaces between "'settings'" and comma; 1 found
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: .../htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/modules/simple_sitemap_engines/src/Entity/SimpleSitemapEngine.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------
110 | ERROR | Description for the @return value is missing
123 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------------

FILE: ...AMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/modules/simple_sitemap_engines/src/SearchEngineListBuilder.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------------
12 | WARNING | [x] Unused use statement
89 | ERROR | [x] Missing function doc comment
110 | ERROR | [x] Expected 1 space before "as"; 2 found
117 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
118 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
130 | ERROR | [x] Missing function doc comment
154 | ERROR | [x] Expected 1 space before "as"; 2 found
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: ...htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/modules/simple_sitemap_engines/src/Submitter/IndexNowSubmitter.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
160 | ERROR | The array declaration extends to column 106 (the limit is 80). The array content should be split up over
| | multiple lines
----------------------------------------------------------------------------------------------------------------------------

FILE: ...simple_sitemap/modules/simple_sitemap_views/tests/modules/simple_sitemap_views_test/simple_sitemap_views_test.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: ...ns/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/modules/simple_sitemap_views/simple_sitemap_views.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: ...1.x/drupal/modules/contrib/simple_sitemap/modules/simple_sitemap_views/src/Controller/SimpleSitemapViewsController.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/src/SimpleSitemapTypeListBuilder.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/src/Logger.php
-------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
124 | WARNING | Only string literals should be passed to t() where possible
-------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/src/SimpleSitemapListBuilder.php
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/src/Entity/SimpleSitemapInterface.php
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
113 | ERROR | Description for the @return value is missing
------------------------------------------------------------------------------------------------------------------

FILE: .../htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGeneratorBase.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------
18 | WARNING | [x] Unused use statement
273 | ERROR | [x] Data types in @var tags need to be fully namespaced
273 | ERROR | [x] Data types in @var tags need to be fully namespaced
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: ...tdocs/10.1.x/drupal/modules/contrib/simple_sitemap/src/Plugin/simple_sitemap/SitemapGenerator/SitemapGeneratorBase.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------
162 | ERROR | [x] Missing function doc comment
168 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: .../MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/src/Plugin/simple_sitemap/SitemapGenerator/SitemapWriter.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
52 | WARNING | Line exceeds 80 characters; contains 118 characters
----------------------------------------------------------------------------------------------------------------------------

FILE: ...cs/10.1.x/drupal/modules/contrib/simple_sitemap/src/Plugin/simple_sitemap/SitemapGenerator/DefaultSitemapGenerator.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------------
159 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
160 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
161 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
162 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
163 | ERROR | [x] Array closing indentation error, expected 8 spaces but found 6
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/src/Manager/EntityManager.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------------------------
208 | ERROR | [x] No space found before comment text; expected "// @todo Not working with menu link content." but found
| | "//@todo Not working with menu link content."
209 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
209 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
210 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
210 | ERROR | [ ] Comment indentation error, expected only 4 spaces
211 | WARNING | [x] There must be no blank line following an inline comment
211 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
297 | ERROR | [x] No space found before comment text; expected "// @todo Not working with menu link content." but found
| | "//@todo Not working with menu link content."
298 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
298 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
299 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
299 | ERROR | [ ] Comment indentation error, expected only 4 spaces
300 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/10.1.x/drupal/modules/contrib/simple_sitemap/src/Queue/BatchTrait.php
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
43 | WARNING | Only string literals should be passed to t() where possible
-----------------------------------------------------------------------------------------------------

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇮🇳India sahil.goyal

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024