Problem/Motivation
Module's code contains several Drupal Coding Standards issues. This task is created to fix them.
Steps to reproduce
Run the command:
phpcs --standard=Drupal/web/modules/contrib/tsk/
Proposed resolution
Fix the following coding standards issues and upload the patch or create an MR with fixes.
FILE: \modules\contrib\tsk\assets\css\tsk-entity-form.css
-----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------
FILE: \modules\contrib\tsk\assets\js\tsk-entity-form.js
---------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------
FILE: \modules\contrib\tsk\src\Commands\TskCommands.php
---------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
---------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
13 | ERROR | [ ] Missing short description in doc comment
45 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
46 | ERROR | [x] Parameter comment must end with a full stop
51 | ERROR | [x] Separate the @param and @usage sections by a blank line.
---------------------------------------------------------------------------------------
FILE: \modules\contrib\tsk\src\Controller\TskController.php
-------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
15 | ERROR | [ ] Missing short description in doc comment
-------------------------------------------------------------------------------------------
FILE: \modules\contrib\tsk\src\Entity\TskEntity.php
------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
77 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------
FILE: \modules\contrib\tsk\src\Entity\TskEntityInterface.php
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
--------------------------------------------------------------------------------------------
FILE: \modules\contrib\tsk\src\Form\TskEntityDeleteForm.php
-------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
47 | ERROR | [x] Expected newline after closing brace
52 | ERROR | [x] Expected 1 blank line after function; 0 found
53 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------
FILE: \modules\contrib\tsk\src\Form\TskEntityForm.php
--------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
100 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
150 | ERROR | [x] Expected newline after closing brace
--------------------------------------------------------------------------------------
FILE: \modules\contrib\tsk\src\Services\TskService.php
--------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
81 | ERROR | [x] Expected newline after closing brace
--------------------------------------------------------------------------------------
FILE: \modules\contrib\tsk\src\TskEntityListBuilder.php
---------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
97 | ERROR | [x] Short array syntax must be used to define arrays
---------------------------------------------------------------------------------------