Problem/Motivation
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\views_database_connector\README.md
----------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
88 | ERROR | [x] Missing file doc comment
90 | ERROR | [ ] Missing short description in doc comment
91 | ERROR | [ ] Missing parameter comment
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------
FILE: ...tdocs\backendassignment\web\modules\contrib\views_database_connector\src\Form\ViewsDatabaseConnectorConfigForm.php
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
56 | ERROR | [x] Expected 1 blank line after function; 0 found
57 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: ...\web\modules\contrib\views_database_connector\src\Plugin\views\relationship\ViewsDatabaseConnectorRelationship.php
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\views_database_connector\views_database_connector.module
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\views_database_connector\views_database_connector.views.inc
-----------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
137 | ERROR | [x] Return type must not contain variable name "$existing_tables"
146 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 2
223 | ERROR | [ ] Missing parameter comment
223 | ERROR | [ ] Missing parameter type
224 | ERROR | [ ] Missing parameter comment
224 | ERROR | [ ] Missing parameter type
226 | ERROR | [ ] Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------
Time: 1.77 secs; Memory: 6MB
Steps to reproduce
Run the codesniffer command on the module.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes