Problem/Motivation

FILE: draggable_dashboard/src/DashboardHtmlRouteProvider.php
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
11 | ERROR | [x] Doc comment short description must end with a full stop
14 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: draggable_dashboard/src/Plugin/Block/DraggableBlockDeriver.php
-----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------
34 | ERROR | [x] Each PHP statement must be on a line by itself
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------

FILE: draggable_dashboard/src/Plugin/Block/DraggableBlock.php
-----------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 3 WARNINGS AFFECTING 10 LINES
-----------------------------------------------------------------------------------------------------------------
17 | WARNING | [x] Unused use statement
60 | ERROR | [ ] Missing short description in doc comment
61 | ERROR | [x] Data types in @var tags need to be fully namespaced
65 | ERROR | [ ] Missing short description in doc comment
66 | ERROR | [x] Data types in @var tags need to be fully namespaced
85 | ERROR | [ ] Doc comment for parameter $theme_manager does not match actual variable name $current_user
127 | ERROR | [ ] Description for the @return value is missing
176 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
182 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
210 | WARNING | [x] A comma should follow the last multiline array item. Found: 'draggable_dashboard/draggable'
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------

FILE: draggable_dashboard/src/DashboardListBuilder.php
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Doc comment short description must end with a full stop
12 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: draggable_dashboard/src/Controller/DraggableDashboardController.php
----------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 3 WARNINGS AFFECTING 6 LINES
----------------------------------------------------------------------------------------------
13 | WARNING | [x] Unused use statement
15 | WARNING | [x] Unused use statement
16 | WARNING | [x] Unused use statement
44 | ERROR | [ ] Parameter $plugin_form_manager is not described in comment
49 | ERROR | [ ] Missing parameter comment
68 | ERROR | [ ] Parameter $dashboard_entity is not described in comment
68 | ERROR | [ ] Parameter $region is not described in comment
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: draggable_dashboard/src/Form/DashboardDeleteForm.php
-------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------
15 | ERROR | Missing short description in doc comment
-------------------------------------------------------------------------------

FILE: draggable_dashboard/src/Form/DashboardBlockFormBase.php
----------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 1 WARNING AFFECTING 10 LINES
----------------------------------------------------------------------------------------------------------------------
15 | ERROR | [x] Doc comment short description must end with a full stop
18 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
81 | ERROR | [ ] Missing short description in doc comment
82 | ERROR | [ ] Missing parameter comment
83 | ERROR | [ ] Missing parameter comment
85 | ERROR | [ ] Description for the @return value is missing
155 | ERROR | [x] Data types in @var tags need to be fully namespaced
160 | ERROR | [ ] Missing short description in doc comment
161 | ERROR | [ ] Missing parameter comment
162 | ERROR | [ ] Missing parameter comment
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------

FILE: draggable_dashboard/src/Form/DashboardDeleteBlockForm.php
---------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------------------
11 | ERROR | [x] Doc comment short description must end with a full stop
14 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
72 | ERROR | [ ] Missing short description in doc comment
82 | ERROR | [ ] Description for the @return value is missing
97 | ERROR | [ ] Missing short description in doc comment
98 | ERROR | [ ] Missing parameter comment
99 | ERROR | [ ] Missing parameter comment
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: draggable_dashboard/src/Form/DashboardConfigureBlockForm.php
---------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Doc comment short description must end with a full stop
12 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
20 | ERROR | [ ] Class property $block_id should use lowerCamel naming without underscores
44 | ERROR | [x] Expected newline after closing brace
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: draggable_dashboard/src/Form/DashboardForm.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 8 LINES
------------------------------------------------------------------------------------------------------------------------------------
15 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
45 | ERROR | Missing parameter comment
46 | ERROR | Missing parameter comment
48 | ERROR | Description for the @return value is missing
50 | ERROR | Type hint "array" missing for $a
50 | ERROR | Type hint "array" missing for $b
76 | ERROR | The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple
| | lines
168 | ERROR | The array declaration extends to column 133 (the limit is 80). The array content should be split up over multiple
| | lines
249 | ERROR | The array declaration extends to column 137 (the limit is 80). The array content should be split up over multiple
| | lines
------------------------------------------------------------------------------------------------------------------------------------

FILE: draggable_dashboard/src/Form/DashboardAssignBlockForm.php
---------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 1 WARNING AFFECTING 12 LINES
---------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Doc comment short description must end with a full stop
12 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
51 | ERROR | [ ] Description for the @return value is missing
52 | ERROR | [x] Separate the @return and @throws sections by a blank line.
76 | ERROR | [ ] Missing short description in doc comment
77 | ERROR | [ ] Missing parameter comment
77 | ERROR | [ ] Missing parameter type
78 | ERROR | [ ] Missing parameter comment
78 | ERROR | [ ] Missing parameter type
79 | ERROR | [ ] Missing parameter comment
81 | ERROR | [ ] Description for the @return value is missing
94 | ERROR | [ ] Missing short description in doc comment
95 | ERROR | [ ] Missing parameter comment
96 | ERROR | [ ] Missing parameter comment
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: draggable_dashboard/draggable_dashboard.post_update.php
--------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
3 | ERROR | [x] There must be one blank line after the last USE statement; 0 found;
7 | ERROR | [x] Expected 1 blank line before function; 0 found
55 | ERROR | [x] Space found before comma in argument list
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------

FILE: draggable_dashboard/draggable_dashboard.module
----------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------
49 | WARNING | [x] A comma should follow the last multiline array item. Found: 'block'
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------

Time: 190ms; Memory: 10MB

Steps to reproduce

Run drupalcs

Proposed resolution

Run drupalcbf to fix all the automated fixes

Remaining tasks

User interface changes

API changes

Data model changes

Comments

jcnventura created an issue. See original summary.

dharti patel’s picture

Assigned: Unassigned » dharti patel
jcnventura’s picture

Assigned: dharti patel » Unassigned

Sorry. I've already done this.

  • 1a7560d committed on 8.x-2.x
    Issue #3311377 by jcnventura: Fix coding standards
    
jcnventura’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jcnventura’s picture