Problem/Motivation
FILE: bootstrap_datetime_picker\bootstrap_datetime_picker.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: bootstrap_datetime_picker\bootstrap_datetime_picker.install
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
19 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
19 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
32 | ERROR | [x] Concat operator must be surrounded by a single space
33 | ERROR | [ ] The array declaration extends to column 249 (the limit is 120). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: bootstrap_datetime_picker\bootstrap_datetime_picker.libraries.yml
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
116 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: bootstrap_datetime_picker\bootstrap_datetime_picker.module
----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
21 | ERROR | [x] Whitespace found at end of line
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------
FILE: bootstrap_datetime_picker\bootstrap_datetime_picker.routing.yml
---------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
7 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------
FILE: bootstrap_datetime_picker\README.txt
------------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
------------------------------------------------------------------------
13 | WARNING | Line exceeds 80 characters; contains 117 characters
23 | WARNING | Line exceeds 80 characters; contains 107 characters
25 | WARNING | Line exceeds 80 characters; contains 91 characters
33 | WARNING | Line exceeds 80 characters; contains 82 characters
35 | WARNING | Line exceeds 80 characters; contains 99 characters
39 | WARNING | Line exceeds 80 characters; contains 97 characters
41 | WARNING | Line exceeds 80 characters; contains 93 characters
43 | WARNING | Line exceeds 80 characters; contains 98 characters
------------------------------------------------------------------------
FILE: bootstrap_datetime_picker\src\Element\BootstrapDateTime.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------
10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
32 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
36 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: bootstrap_datetime_picker\src\Plugin\WebformElement\BootstrapDateTime.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 27 ERRORS AND 2 WARNINGS AFFECTING 29 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
50 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
51 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
114 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
116 | ERROR | [x] Expected 1 blank line after function; 2 found
162 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
163 | ERROR | [x] Expected 2 space(s) before asterisk; 3 found
164 | ERROR | [x] Expected 2 space(s) before asterisk; 3 found
165 | ERROR | [x] Expected 2 space(s) before asterisk; 3 found
166 | ERROR | [x] Expected 2 space(s) before asterisk; 3 found
167 | ERROR | [x] Expected 2 space(s) before asterisk; 3 found
168 | ERROR | [x] Expected 2 space(s) before asterisk; 3 found
215 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
285 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
353 | ERROR | [ ] The array declaration extends to column 136 (the limit is 120). The array content should be split up over multiple lines
354 | ERROR | [ ] The array declaration extends to column 122 (the limit is 120). The array content should be split up over multiple lines
392 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
393 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
394 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
395 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
396 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
397 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
398 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
399 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
400 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
401 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
402 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
424 | ERROR | [x] There should be no white space before a closing ")"
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 26 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
Steps to reproduce
Run phpcs command to get the drupal coding standard issues.
Proposed resolution
Many of the issues can be fixed by running the phpcbf command. For the remaining ones, we will need to manually address and then commit these changes before pushing them.