Problem/Motivation

FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/moderation_dashboard/tests/src/Functional/ModerationDashboardPermissionTest.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 9 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
  55 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over multiple lines
 113 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
 116 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
 120 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
 121 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
 164 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
 168 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
 186 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
 194 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
-----------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/moderation_dashboard/tests/src/Functional/ModerationDashboardRedirectTest.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
 32 | ERROR   | [x] Comments may not appear after statements
 33 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 46 | ERROR   | [x] Comments may not appear after statements
 47 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/moderation_dashboard/js/moderation_dashboard_activity.js
------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
 18 | ERROR | [x] Expected 1 space before "<"; 0 found
 18 | ERROR | [x] Expected 1 space after "<"; 0 found
 18 | ERROR | [x] Expected 1 space before "="; 0 found
 18 | ERROR | [x] Expected 1 space after "="; 0 found
 18 | ERROR | [x] Expected 1 space before "="; 0 found
 18 | ERROR | [x] Expected 1 space after "="; 0 found
 18 | ERROR | [x] Expected 1 space before ">"; 0 found
 18 | ERROR | [x] Expected 1 space after ">"; 0 found
 18 | ERROR | [x] Expected 1 space before "<"; 0 found
 18 | ERROR | [x] Expected 1 space after "<"; 0 found
 18 | ERROR | [x] Expected 1 space before "/"; 0 found
 18 | ERROR | [x] Expected 1 space after "/"; 0 found
 18 | ERROR | [x] Expected 1 space before ">"; 0 found
 18 | ERROR | [x] Expected 1 space after ">"; 0 found
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/moderation_dashboard/src/Form/SettingsForm.php
--------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
 43 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
--------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/moderation_dashboard/src/Plugin/Condition/ModerationDashboardAccess.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
 25 | ERROR | Missing member variable doc comment
---------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/moderation_dashboard/src/Plugin/Block/ModerationDashboardActivity.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------
 118 | ERROR | [x] Use null coalesce operator instead of ternary operator.
 120 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/moderation_dashboard/src/Plugin/views/field/LinkToLatestVersion.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
 53 | ERROR | [x] Expected 1 blank line after function; 2 found
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/moderation_dashboard/src/Routing/ResponseSubscriber.php
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------
 12 | WARNING | [x] Unused use statement
 63 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced with use statements
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------

Time: 261ms; Memory: 12MB
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Rohit Rana created an issue. See original summary.

rohit rana’s picture

StatusFileSize
new8.64 KB
rohit rana’s picture

StatusFileSize
new9 KB
rohit rana’s picture

Assigned: rohit rana » Unassigned
Status: Active » Needs review

Please Review patch #3.

smustgrave made their first commit to this issue’s fork.

smustgrave’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
Status: Needs review » Fixed

Addressed coding standards for main branch

Status: Fixed » Closed (fixed)

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