Fix the warnings/errors reported by PHP_CodeSniffer

Created on 6 July 2023, over 1 year ago
Updated 1 March 2024, 9 months ago

Problem/Motivation

FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/event_scheduler.module
----------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------
 26 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
 34 | ERROR   | [ ] Description for the @return value is missing
 34 | ERROR   | [x] Data types in @return tags need to be fully namespaced
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/EventSchedulerInterface.php
-------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AFFECTING 12 LINES
-------------------------------------------------------------------------------------------------
 12 | ERROR | [ ] Missing short description in doc comment
 13 | ERROR | [ ] Missing parameter comment
 14 | ERROR | [ ] Missing parameter comment
 14 | ERROR | [x] Data types in @param tags need to be fully namespaced
 16 | ERROR | [ ] Description for the @return value is missing
 23 | ERROR | [ ] Missing parameter comment
 25 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
 25 | ERROR | [ ] Missing parameter comment
 27 | ERROR | [ ] Description for the @return value must be on the next line
 27 | ERROR | [x] Data types in @return tags need to be fully namespaced
 29 | ERROR | [x] Additional blank lines found at end of doc comment
 35 | ERROR | [ ] Missing parameter comment
 37 | ERROR | [ ] Description for the @return value is missing
 41 | ERROR | [ ] Missing short description in doc comment
 42 | ERROR | [ ] Description for the @return value is missing
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/Normalizer/EventNormalizer.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 47 ERRORS AND 8 WARNINGS AFFECTING 39 LINES
----------------------------------------------------------------------------------------------------------------------------------
   1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
   2 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
   6 | ERROR   | [ ] Doc comment short description must end with a full stop
   6 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  12 | WARNING | [x] Unused use statement
  13 | WARNING | [x] Unused use statement
  14 | WARNING | [x] Unused use statement
  16 | WARNING | [x] Unused use statement
  17 | WARNING | [x] Unused use statement
  18 | WARNING | [x] Unused use statement
  23 | ERROR   | [x] Missing class doc comment
  32 | ERROR   | [x] Parameter comment must be on the next line
  32 | ERROR   | [x] Parameter comment must end with a full stop
  33 | ERROR   | [x] Parameter comment must be on the next line
  33 | ERROR   | [x] Parameter comment must end with a full stop
  34 | ERROR   | [x] Parameter comment must be on the next line
  34 | ERROR   | [x] Parameter comment must end with a full stop
  36 | ERROR   | [ ] Description for the @return value is missing
  38 | ERROR   | [ ] @throws comment must be on the next line
  38 | ERROR   | [x] Data types in @throws tags need to be fully namespaced
  39 | ERROR   | [x] Data types in @throws tags need to be fully namespaced
  41 | ERROR   | [x] Data types in @throws tags need to be fully namespaced
  57 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
  59 | ERROR   | [x] Parameter comment must be on the next line
  59 | ERROR   | [x] Parameter comment must end with a full stop
  60 | ERROR   | [x] Parameter comment must be on the next line
  60 | ERROR   | [x] Parameter comment must end with a full stop
  62 | ERROR   | [ ] Description for the @return value is missing
  71 | ERROR   | [x] Parameter comment must be on the next line
  71 | ERROR   | [x] Parameter comment must end with a full stop
  72 | ERROR   | [x] Parameter comment must be on the next line
  72 | ERROR   | [x] Parameter comment must end with a full stop
  73 | ERROR   | [x] Parameter comment must be on the next line
  73 | ERROR   | [x] Parameter comment must end with a full stop
  74 | ERROR   | [x] Parameter comment must be on the next line
  74 | ERROR   | [x] Parameter comment must end with a full stop
  76 | ERROR   | [ ] Description for the @return value is missing
  78 | ERROR   | [ ] @throws comment must be on the next line
  78 | ERROR   | [x] Data types in @throws tags need to be fully namespaced
  79 | ERROR   | [x] Data types in @throws tags need to be fully namespaced
  80 | ERROR   | [x] Data types in @throws tags need to be fully namespaced
  81 | ERROR   | [x] Data types in @throws tags need to be fully namespaced
  82 | ERROR   | [x] Data types in @throws tags need to be fully namespaced
  83 | ERROR   | [x] Data types in @throws tags need to be fully namespaced
  91 | ERROR   | [ ] unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the
     |         |     allowed_classes option.
  95 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
  97 | ERROR   | [x] Parameter comment must be on the next line
  97 | ERROR   | [x] Parameter comment must end with a full stop
  98 | ERROR   | [x] Parameter comment must be on the next line
  98 | ERROR   | [x] Parameter comment must end with a full stop
  99 | ERROR   | [x] Parameter comment must be on the next line
  99 | ERROR   | [x] Parameter comment must end with a full stop
 101 | ERROR   | [ ] Description for the @return value is missing
 106 | ERROR   | [x] Expected 1 newline at end of file; 0 found
 106 | ERROR   | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 44 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/EventSchedulerTrait.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 42 ERRORS AFFECTING 39 LINES
-----------------------------------------------------------------------------------------------------------------------
   1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
   2 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
   6 | ERROR | [ ] Doc comment short description must end with a full stop
   6 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  13 | ERROR | [x] Missing trait doc comment
  15 | ERROR | [ ] Missing member variable doc comment
  17 | ERROR | [ ] Missing member variable doc comment
  19 | ERROR | [ ] Missing member variable doc comment
  21 | ERROR | [ ] Missing member variable doc comment
  23 | ERROR | [ ] Missing member variable doc comment
  25 | ERROR | [ ] Missing member variable doc comment
  27 | ERROR | [ ] Missing short description in doc comment
  28 | ERROR | [ ] Missing parameter comment
  29 | ERROR | [ ] Missing parameter comment
  30 | ERROR | [ ] Description for the @return value is missing
  30 | ERROR | [x] Data types in @return tags need to be fully namespaced
  40 | ERROR | [ ] Missing short description in doc comment
  41 | ERROR | [ ] Missing parameter comment
  50 | ERROR | [ ] Missing short description in doc comment
  51 | ERROR | [ ] Description for the @return value is missing
  57 | ERROR | [ ] Missing short description in doc comment
  58 | ERROR | [ ] Missing parameter comment
  67 | ERROR | [ ] Missing short description in doc comment
  68 | ERROR | [ ] Description for the @return value is missing
  74 | ERROR | [ ] Missing short description in doc comment
  75 | ERROR | [ ] Missing parameter comment
  84 | ERROR | [ ] Missing short description in doc comment
  85 | ERROR | [ ] Description for the @return value is missing
  91 | ERROR | [ ] Missing short description in doc comment
  92 | ERROR | [ ] Missing parameter comment
 101 | ERROR | [ ] Missing short description in doc comment
 102 | ERROR | [ ] Description for the @return value is missing
 108 | ERROR | [ ] Missing short description in doc comment
 109 | ERROR | [x] Parameter comment must be on the next line
 109 | ERROR | [x] Parameter comment must end with a full stop
 118 | ERROR | [ ] Missing short description in doc comment
 119 | ERROR | [ ] Description for the @return value must be on the next line
 125 | ERROR | [ ] Missing short description in doc comment
 126 | ERROR | [ ] Missing parameter comment
 135 | ERROR | [ ] Missing short description in doc comment
 136 | ERROR | [ ] Description for the @return value is missing
 142 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/EventSchedulerDatabaseInterface.php
------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 4 WARNINGS AFFECTING 12 LINES
------------------------------------------------------------------------------------------------------------------------
  7 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
 32 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 34 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
 36 | ERROR   | [ ] Return type "int | null" must not contain spaces
 48 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
 50 | ERROR   | [ ] Description for the @return value is missing
 61 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
 63 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 75 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 79 | ERROR   | [ ] Description for the @return value is missing
 81 | ERROR   | [x] Expected 1 blank line after function; 2 found
 84 | ERROR   | [x] The closing brace for the interface must have an empty line before it
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/Plugin/QueueWorker/CronLaunchScheduledEvent.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 29 ERRORS AND 2 WARNINGS AFFECTING 19 LINES
----------------------------------------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
  2 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
  6 | ERROR   | [ ] Doc comment short description must end with a full stop
  6 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 14 | WARNING | [x] Unused use statement
 17 | WARNING | [x] Unused use statement
 33 | ERROR   | [ ] Missing short description in doc comment
 34 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 34 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 37 | ERROR   | [ ] Missing short description in doc comment
 38 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 45 | ERROR   | [ ] Missing parameter comment
 46 | ERROR   | [ ] Missing parameter comment
 46 | ERROR   | [ ] Missing parameter type
 47 | ERROR   | [ ] Missing parameter comment
 47 | ERROR   | [ ] Missing parameter type
 49 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 49 | ERROR   | [ ] Missing parameter comment
 49 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 50 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 50 | ERROR   | [ ] Missing parameter comment
 50 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 52 | ERROR   | [x] Multi-line function declarations must define one parameter per line
 52 | ERROR   | [x] Multi-line function declarations must define one parameter per line
 77 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
 77 | ERROR   | [x] 4 spaces found before inline comment; expected "// $logger = $this->getLogger('event_scheduler_qworker');"
    |         |     but found "//    $logger = $this->getLogger('event_scheduler_qworker');"
 81 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 83 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 0
 83 | ERROR   | [x] 6 spaces found before inline comment; expected "// $logger->debug('Got event from queue: ' .
    |         |     $scheduledEvent->getName());" but found "//      $logger->debug('Got event from queue: ' .
    |         |     $scheduledEvent->getName());"
 93 | ERROR   | [x] Expected 1 newline at end of file; 0 found
 93 | ERROR   | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/EventScheduler.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 27 ERRORS AND 1 WARNING AFFECTING 22 LINES
----------------------------------------------------------------------------------------------------------------------------------
  17 | ERROR   | [ ] Missing member variable doc comment
  19 | ERROR   | [ ] Missing member variable doc comment
  21 | ERROR   | [ ] Missing member variable doc comment
  23 | ERROR   | [ ] Missing member variable doc comment
  28 | ERROR   | [ ] Missing parameter comment
  29 | ERROR   | [ ] Missing parameter comment
  30 | ERROR   | [ ] Missing parameter comment
  30 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  31 | ERROR   | [ ] Missing parameter comment
  31 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  45 | WARNING | [ ] There must be no blank line following an inline comment
  45 | ERROR   | [x] No space found before comment text; expected "// ----------------------------------------------------------
     |         |     EVENT OPERATIONS" but found "//---------------------------------------------------------- EVENT OPERATIONS"
  50 | ERROR   | [ ] Missing parameter comment
  51 | ERROR   | [ ] Missing parameter comment
  51 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  53 | ERROR   | [ ] Description for the @return value is missing
  59 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  74 | ERROR   | [ ] Missing parameter comment
  76 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  76 | ERROR   | [ ] Missing parameter comment
  78 | ERROR   | [ ] Description for the @return value must be on the next line
  78 | ERROR   | [x] Data types in @return tags need to be fully namespaced
  80 | ERROR   | [x] Additional blank lines found at end of doc comment
  85 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  99 | ERROR   | [ ] Missing parameter comment
 101 | ERROR   | [x] Additional blank lines found at end of doc comment
 106 | ERROR   | [ ] Missing short description in doc comment
 107 | ERROR   | [ ] Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/EventSubscriber/EventsProcessSubscriber.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 36 ERRORS AND 4 WARNINGS AFFECTING 26 LINES
----------------------------------------------------------------------------------------------------------------------------------
   6 | WARNING | [x] Unused use statement
   8 | WARNING | [x] Unused use statement
  12 | WARNING | [x] Unused use statement
  16 | ERROR   | [x] Use statements should be sorted alphabetically. The first wrong one is
     |         |     Drupal\event_scheduler\EventSchedulerDispatcher.
  24 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
  34 | ERROR   | [ ] Missing member variable doc comment
  36 | ERROR   | [ ] Missing member variable doc comment
  38 | ERROR   | [ ] Missing member variable doc comment
  40 | ERROR   | [ ] Missing member variable doc comment
  42 | ERROR   | [ ] Missing member variable doc comment
  44 | ERROR   | [ ] Missing member variable doc comment
  46 | ERROR   | [ ] Missing member variable doc comment
  48 | ERROR   | [ ] Missing member variable doc comment
  50 | ERROR   | [ ] Parameter $account is not described in comment
  50 | ERROR   | [ ] Parameter $messenger is not described in comment
  53 | ERROR   | [ ] Missing parameter comment
  53 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  53 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  54 | ERROR   | [ ] Missing parameter comment
  54 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  54 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  55 | ERROR   | [ ] Missing parameter comment
  55 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  55 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  56 | ERROR   | [ ] Missing parameter comment
  56 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  56 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  57 | ERROR   | [ ] Missing parameter comment
  57 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  58 | ERROR   | [ ] Missing parameter comment
  58 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  83 | ERROR   | [x] Visibility must be declared on method "getSubscribedEvents"
  94 | ERROR   | [ ] Missing parameter comment
  94 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  96 | ERROR   | [ ] Description for the @return value is missing
 108 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 110 | ERROR   | [ ] Missing parameter comment
 110 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 147 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 147 | ERROR   | [x] Data types in @var tags need to be fully namespaced
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/Event/EventDelayInterface.php
----------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
  2 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
  6 | ERROR | [ ] Doc comment short description must end with a full stop
  6 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 11 | ERROR | [x] Missing interface doc comment
 13 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/Event/EventCommonInterface.php
----------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------
  5 | ERROR | [x] Missing interface doc comment
  7 | ERROR | [ ] Missing short description in doc comment
  8 | ERROR | [ ] Description for the @return value is missing
 12 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/Event/EventScheduleInterface.php
------------------------------------------------------------------------------------------------------------------------
FOUND 32 ERRORS AND 1 WARNING AFFECTING 31 LINES
------------------------------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
  2 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
  6 | ERROR   | [ ] Doc comment short description must end with a full stop
  6 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 12 | ERROR   | [x] Doc comment short description must end with a full stop
 15 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
 21 | ERROR   | [ ] Missing parameter comment
 22 | ERROR   | [ ] Missing parameter comment
 24 | ERROR   | [ ] Description for the @return value is missing
 28 | ERROR   | [ ] Missing short description in doc comment
 29 | ERROR   | [ ] Missing parameter comment
 35 | ERROR   | [ ] Missing short description in doc comment
 36 | ERROR   | [ ] Description for the @return value is missing
 40 | ERROR   | [ ] Missing short description in doc comment
 41 | ERROR   | [ ] Missing parameter comment
 47 | ERROR   | [ ] Missing short description in doc comment
 48 | ERROR   | [ ] Missing parameter comment
 54 | ERROR   | [ ] Missing short description in doc comment
 55 | ERROR   | [ ] Description for the @return value is missing
 59 | ERROR   | [ ] Missing short description in doc comment
 60 | ERROR   | [ ] Missing parameter comment
 66 | ERROR   | [ ] Missing short description in doc comment
 67 | ERROR   | [ ] Description for the @return value is missing
 71 | ERROR   | [ ] Missing short description in doc comment
 72 | ERROR   | [x] Parameter comment must be on the next line
 72 | ERROR   | [x] Parameter comment must end with a full stop
 78 | ERROR   | [ ] Missing short description in doc comment
 79 | ERROR   | [ ] Description for the @return value must be on the next line
 83 | ERROR   | [ ] Missing short description in doc comment
 84 | ERROR   | [ ] Missing parameter comment
 90 | ERROR   | [ ] Missing short description in doc comment
 91 | ERROR   | [ ] Description for the @return value is missing
 95 | ERROR   | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/EventSchedulerUtilsInterface.php
------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------
  7 | ERROR | [x] Missing interface doc comment
 12 | ERROR | [ ] Missing parameter comment
 12 | ERROR | [x] Data types in @param tags need to be fully namespaced
 24 | ERROR | [ ] Description for the @return value is missing
 31 | ERROR | [ ] Description for the @return value is missing
 38 | ERROR | [ ] Missing parameter comment
 39 | ERROR | [ ] Missing parameter comment
 41 | ERROR | [ ] Description for the @return value is missing
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/EventSchedulerUtils.php
---------------------------------------------------------------------------------------------
FOUND 33 ERRORS AFFECTING 29 LINES
---------------------------------------------------------------------------------------------
  13 | ERROR | [x] Missing class doc comment
  17 | ERROR | [ ] Missing member variable doc comment
  19 | ERROR | [ ] Missing member variable doc comment
  21 | ERROR | [ ] Missing member variable doc comment
  23 | ERROR | [ ] Missing member variable doc comment
  25 | ERROR | [ ] Missing member variable doc comment
  27 | ERROR | [ ] Missing member variable doc comment
  29 | ERROR | [ ] Missing member variable doc comment
  34 | ERROR | [ ] Missing parameter comment
  35 | ERROR | [ ] Missing parameter comment
  35 | ERROR | [x] Data types in @param tags need to be fully namespaced
  36 | ERROR | [ ] Missing parameter comment
  36 | ERROR | [x] Data types in @param tags need to be fully namespaced
  37 | ERROR | [ ] Missing parameter comment
  37 | ERROR | [x] Data types in @param tags need to be fully namespaced
  38 | ERROR | [ ] Missing parameter comment
  38 | ERROR | [x] Data types in @param tags need to be fully namespaced
  55 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
  60 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
  65 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
  83 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
  84 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
  93 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
 111 | ERROR | [ ] Missing parameter comment
 113 | ERROR | [ ] Description for the @return value is missing
 115 | ERROR | [x] Visibility must be declared on method "getIds"
 127 | ERROR | [ ] Missing parameter comment
 128 | ERROR | [ ] Missing parameter comment
 133 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
 134 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
 141 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
 152 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
 163 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/EventSchedulerDatabase.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 33 ERRORS AND 10 WARNINGS AFFECTING 36 LINES
----------------------------------------------------------------------------------------------------------------------------------
   6 | WARNING | [x] Unused use statement
   7 | WARNING | [x] Unused use statement
   8 | WARNING | [x] Unused use statement
  15 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
  22 | ERROR   | [ ] Missing member variable doc comment
  24 | ERROR   | [ ] Missing member variable doc comment
  26 | ERROR   | [ ] Missing member variable doc comment
  31 | ERROR   | [ ] Missing parameter comment
  31 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  32 | ERROR   | [ ] Missing parameter comment
  32 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  33 | ERROR   | [ ] Missing parameter comment
  33 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  51 | ERROR   | [ ] Return type "int | null" must not contain spaces
  57 | WARNING | [ ] Unused variable $return_value.
  66 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and
     |         |     $this->t() instead
  80 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  82 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
  84 | ERROR   | [ ] Return type "int | null" must not contain spaces
 101 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and
     |         |     $this->t() instead
 102 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 103 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 104 | ERROR   | [x] Array closing indentation error, expected 6 spaces but found 8
 116 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
 118 | ERROR   | [ ] Description for the @return value is missing
 134 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
 136 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 155 | ERROR   | [ ] Missing short description in doc comment
 156 | ERROR   | [ ] Missing parameter comment
 156 | ERROR   | [ ] Parameter type "SelectInterface | Delete | Update" must not contain spaces
 156 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 157 | ERROR   | [ ] Missing parameter comment
 159 | ERROR   | [ ] Description for the @return value must be on the next line
 159 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 179 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 183 | ERROR   | [ ] Description for the @return value is missing
 204 | ERROR   | [ ] Description for the @return value is missing
 221 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 223 | ERROR   | [ ] Parameter comment must start with a capital letter
 223 | ERROR   | [x] Parameter comment must be on the next line
 225 | ERROR   | [ ] Description for the @return value is missing
 239 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 241 | ERROR   | [ ] Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/Form/ScheduledEventsForm.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 28 ERRORS AND 3 WARNINGS AFFECTING 28 LINES
----------------------------------------------------------------------------------------------------------------------------------
  11 | WARNING | [x] Unused use statement
  15 | ERROR   | [x] Use statements should be sorted alphabetically. The first wrong one is
     |         |     Drupal\Core\Queue\QueueWorkerManagerInterface.
  19 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
  21 | ERROR   | [x] Opening brace should be on the same line as the declaration
  25 | ERROR   | [ ] Missing member variable doc comment
  27 | ERROR   | [ ] Missing short description in doc comment
  28 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  35 | ERROR   | [ ] Missing parameter comment
  35 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  36 | ERROR   | [ ] Missing parameter comment
  36 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  39 | ERROR   | [x] Expected 1 space between type hint and argument "$queue_factory"; 16 found
  46 | ERROR   | [x] Missing function doc comment
  51 | ERROR   | [x] Expected 1 blank line after function; 2 found
  65 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  68 | ERROR   | [x] Short array syntax must be used to define arrays
  69 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
  70 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
  70 | ERROR   | [x] Short array syntax must be used to define arrays
  73 | ERROR   | [x] Short array syntax must be used to define arrays
  74 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
  75 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
  76 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
  85 | WARNING | [ ] Possible useless method overriding detected
  86 | ERROR   | [x] Opening brace should be on the same line as the declaration
  94 | ERROR   | [x] Opening brace should be on the same line as the declaration
  95 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 101 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 108 | ERROR   | [x] Expected newline after closing brace
 112 | ERROR   | [x] Expected newline after closing brace
 116 | ERROR   | [x] Expected newline after closing brace
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 25 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/Form/EventSchedulerSettingsForm.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 10 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/EventSchedulerDispatcher.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 63 ERRORS AND 3 WARNINGS AFFECTING 42 LINES
----------------------------------------------------------------------------------------------------------------------------------
  29 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  29 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  34 | ERROR   | [x] Doc comment short description must end with a full stop
  43 | ERROR   | [x] Expected "bool" but found "boolean" for @var tag in member variable comment
  47 | ERROR   | [ ] Missing short description in doc comment
  48 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  52 | ERROR   | [ ] Missing short description in doc comment
  53 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  60 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  66 | ERROR   | [ ] Missing member variable doc comment
  71 | ERROR   | [ ] Missing parameter comment
  71 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  71 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  72 | ERROR   | [ ] Missing parameter comment
  72 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  73 | ERROR   | [ ] Missing parameter comment
  73 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  74 | ERROR   | [ ] Missing parameter comment
  74 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  75 | ERROR   | [ ] Missing parameter comment
 102 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 110 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 118 | ERROR   | [ ] Parameter $eventName is not described in comment
 121 | ERROR   | [ ] Missing parameter comment
 121 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 143 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 145 | ERROR   | [ ] Missing parameter comment
 146 | ERROR   | [ ] Missing parameter comment
 146 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 161 | ERROR   | [ ] Missing parameter comment
 162 | ERROR   | [ ] Missing parameter comment
 162 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 164 | ERROR   | [ ] Protected method name "EventSchedulerDispatcher::saveToDB" is not in lowerCamel format
 176 | WARNING | [ ] There must be no blank line following an inline comment
 176 | ERROR   | [x] No space found before comment text; expected "// ===================================================
     |         |     STANDARD METHODS" but found "//=================================================== STANDARD METHODS"
 181 | ERROR   | [x] Parameter comment must be on the next line
 181 | ERROR   | [x] Parameter comment must end with a full stop
 182 | ERROR   | [x] Parameter comment must be on the next line
 182 | ERROR   | [x] Parameter comment must end with a full stop
 183 | ERROR   | [x] Parameter comment must be on the next line
 184 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 28 spaces
 184 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
 184 | ERROR   | [ ] Parameter comment must start with a capital letter
 193 | ERROR   | [ ] Unnecessarily gendered language in a comment
 196 | ERROR   | [ ] Missing parameter comment
 196 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 196 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 205 | ERROR   | [x] Parameter comment must be on the next line
 205 | ERROR   | [x] Parameter comment must end with a full stop
 206 | ERROR   | [x] Parameter comment must be on the next line
 206 | ERROR   | [x] Parameter comment must end with a full stop
 215 | ERROR   | [ ] Missing parameter comment
 215 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 215 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 222 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
 224 | ERROR   | [x] Parameter comment must be on the next line
 224 | ERROR   | [x] Parameter comment must end with a full stop
 226 | ERROR   | [ ] Description for the @return value must be on the next line
 237 | ERROR   | [x] Parameter comment must be on the next line
 237 | ERROR   | [x] Parameter comment must end with a full stop
 238 | ERROR   | [x] Parameter comment must be on the next line
 238 | ERROR   | [x] Parameter comment must end with a full stop
 240 | ERROR   | [ ] Description for the @return value must be on the next line
 249 | ERROR   | [x] Parameter comment must be on the next line
 249 | ERROR   | [x] Parameter comment must end with a full stop
 251 | ERROR   | [ ] Description for the @return value must be on the next line
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 38 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/LocalEventQueue.php
---------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------
  9 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
 12 | ERROR   | [ ] Missing short description in doc comment
 13 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 18 | ERROR   | [x] @inheritDoc found. Did you mean {@inheritDoc}?
 25 | ERROR   | [x] @inheritDoc found. Did you mean {@inheritDoc}?
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/src/LocalEventQueueInterface.php
---------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------------------
  9 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
 13 | ERROR   | [x] Doc comment short description must end with a full stop
 15 | ERROR   | [ ] Missing parameter comment
 16 | ERROR   | [ ] Missing parameter comment
 16 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 23 | ERROR   | [ ] Description for the @return value is missing
 25 | ERROR   | [x] Expected 1 blank line after function; 2 found
 28 | ERROR   | [x] The closing brace for the interface must have an empty line before it
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler/event_scheduler.install
----------------------------------------------------------------------------------------------------------------------
FOUND 59 ERRORS AFFECTING 58 LINES
----------------------------------------------------------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
  3 | ERROR | [x] The second line in the file doc comment must be "@file"
  6 | ERROR | [ ] Doc comment short description must end with a full stop
  6 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 13 | ERROR | [x] Expected 1 blank line before function; 2 found
 15 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
 16 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
 17 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
 18 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 19 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 20 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 21 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 22 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 24 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 25 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 26 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 27 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 28 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 29 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 31 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 32 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 33 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 34 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 35 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 36 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 38 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 39 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 40 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 41 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 42 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 43 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 45 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 46 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 47 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 48 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 49 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 51 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 52 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 53 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 54 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 55 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 57 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 58 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 59 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 60 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 61 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 62 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 63 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
 66 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
 67 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
 68 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 69 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 70 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 71 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 72 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 73 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
 75 | ERROR | [x] Array closing indentation error, expected 6 spaces but found 8
 76 | ERROR | [x] Array closing indentation error, expected 2 spaces but found 6
 77 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 57 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------

Time: 205ms; Memory: 12MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig event_scheduler/

Proposed resolution

Remaining tasks

FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/event_scheduler.module
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------
 26 | WARNING | Line exceeds 80 characters; contains 84 characters
 34 | ERROR   | Description for the @return value is missing
------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/EventSchedulerInterface.php
---------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 11 LINES
---------------------------------------------------------------------------------------------------------
 12 | ERROR | Missing short description in doc comment
 13 | ERROR | Missing parameter comment
 14 | ERROR | Missing parameter comment
 16 | ERROR | Description for the @return value is missing
 23 | ERROR | Missing parameter comment
 25 | ERROR | Parameter tags must be grouped together in a doc comment
 25 | ERROR | Missing parameter comment
 27 | ERROR | Description for the @return value must be on the next line
 34 | ERROR | Missing parameter comment
 36 | ERROR | Description for the @return value is missing
 40 | ERROR | Missing short description in doc comment
 41 | ERROR | Description for the @return value is missing
---------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/Normalizer/EventNormalizer.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 2 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------------------------------
  11 | ERROR   | Doc comment is empty
  30 | ERROR   | Description for the @return value is missing
  32 | ERROR   | @throws comment must be on the next line
  51 | WARNING | Line exceeds 80 characters; contains 86 characters
  58 | ERROR   | Description for the @return value is missing
  76 | ERROR   | Description for the @return value is missing
  78 | ERROR   | @throws comment must be on the next line
  91 | ERROR   | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the
     |         | allowed_classes option.
  95 | WARNING | Line exceeds 80 characters; contains 88 characters
 104 | ERROR   | Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/EventSchedulerTrait.php
-----------------------------------------------------------------------------------------------------
FOUND 34 ERRORS AFFECTING 34 LINES
-----------------------------------------------------------------------------------------------------
   7 | ERROR | Doc comment is empty
  12 | ERROR | Missing member variable doc comment
  14 | ERROR | Missing member variable doc comment
  16 | ERROR | Missing member variable doc comment
  18 | ERROR | Missing member variable doc comment
  20 | ERROR | Missing member variable doc comment
  22 | ERROR | Missing member variable doc comment
  24 | ERROR | Missing short description in doc comment
  25 | ERROR | Missing parameter comment
  26 | ERROR | Missing parameter comment
  27 | ERROR | Description for the @return value is missing
  37 | ERROR | Missing short description in doc comment
  38 | ERROR | Missing parameter comment
  47 | ERROR | Missing short description in doc comment
  48 | ERROR | Description for the @return value is missing
  54 | ERROR | Missing short description in doc comment
  55 | ERROR | Missing parameter comment
  64 | ERROR | Missing short description in doc comment
  65 | ERROR | Description for the @return value is missing
  71 | ERROR | Missing short description in doc comment
  72 | ERROR | Missing parameter comment
  81 | ERROR | Missing short description in doc comment
  82 | ERROR | Description for the @return value is missing
  88 | ERROR | Missing short description in doc comment
  89 | ERROR | Missing parameter comment
  98 | ERROR | Missing short description in doc comment
  99 | ERROR | Description for the @return value is missing
 105 | ERROR | Missing short description in doc comment
 116 | ERROR | Missing short description in doc comment
 117 | ERROR | Description for the @return value must be on the next line
 123 | ERROR | Missing short description in doc comment
 124 | ERROR | Missing parameter comment
 133 | ERROR | Missing short description in doc comment
 134 | ERROR | Description for the @return value is missing
-----------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/EventSchedulerDatabaseInterface.php
--------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 4 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------------------
  7 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
 32 | ERROR   | Parameter tags must be grouped together in a doc comment
 34 | WARNING | Line exceeds 80 characters; contains 92 characters
 36 | ERROR   | Return type "int | null" must not contain spaces
 48 | WARNING | Line exceeds 80 characters; contains 92 characters
 50 | ERROR   | Description for the @return value is missing
 61 | WARNING | Line exceeds 80 characters; contains 92 characters
 63 | ERROR   | Parameter tags must be grouped together in a doc comment
 75 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
 79 | ERROR   | Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/Plugin/QueueWorker/CronLaunchScheduledEvent.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------------------------
 25 | ERROR | Missing short description in doc comment
 29 | ERROR | Missing short description in doc comment
 37 | ERROR | Missing parameter comment
 38 | ERROR | Missing parameter comment
 38 | ERROR | Missing parameter type
 39 | ERROR | Missing parameter comment
 39 | ERROR | Missing parameter type
 41 | ERROR | Parameter tags must be grouped together in a doc comment
 41 | ERROR | Missing parameter comment
 42 | ERROR | Parameter tags must be grouped together in a doc comment
 42 | ERROR | Missing parameter comment
-----------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/EventScheduler.php
------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AND 1 WARNING AFFECTING 18 LINES
------------------------------------------------------------------------------------------------
  17 | ERROR   | Missing member variable doc comment
  19 | ERROR   | Missing member variable doc comment
  21 | ERROR   | Missing member variable doc comment
  23 | ERROR   | Missing member variable doc comment
  28 | ERROR   | Missing parameter comment
  29 | ERROR   | Missing parameter comment
  30 | ERROR   | Missing parameter comment
  31 | ERROR   | Missing parameter comment
  45 | WARNING | There must be no blank line following an inline comment
  50 | ERROR   | Missing parameter comment
  51 | ERROR   | Missing parameter comment
  53 | ERROR   | Description for the @return value is missing
  74 | ERROR   | Missing parameter comment
  76 | ERROR   | Parameter tags must be grouped together in a doc comment
  76 | ERROR   | Missing parameter comment
  78 | ERROR   | Description for the @return value must be on the next line
  98 | ERROR   | Missing parameter comment
 104 | ERROR   | Missing short description in doc comment
 105 | ERROR   | Description for the @return value is missing
------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/EventSubscriber/EventsProcessSubscriber.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 20 ERRORS AND 1 WARNING AFFECTING 20 LINES
-------------------------------------------------------------------------------------------------------------------------
  21 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
  31 | ERROR   | Missing member variable doc comment
  33 | ERROR   | Missing member variable doc comment
  35 | ERROR   | Missing member variable doc comment
  37 | ERROR   | Missing member variable doc comment
  39 | ERROR   | Missing member variable doc comment
  41 | ERROR   | Missing member variable doc comment
  43 | ERROR   | Missing member variable doc comment
  45 | ERROR   | Missing member variable doc comment
  47 | ERROR   | Parameter $account is not described in comment
  47 | ERROR   | Parameter $messenger is not described in comment
  50 | ERROR   | Missing parameter comment
  51 | ERROR   | Missing parameter comment
  52 | ERROR   | Missing parameter comment
  53 | ERROR   | Missing parameter comment
  54 | ERROR   | Missing parameter comment
  55 | ERROR   | Missing parameter comment
  91 | ERROR   | Missing parameter comment
  93 | ERROR   | Description for the @return value is missing
 105 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
 107 | ERROR   | Missing parameter comment
-------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/Event/EventDelayInterface.php
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
 5 | ERROR | Doc comment is empty
-----------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/Event/EventCommonInterface.php
------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------
 5 | ERROR | [x] Missing interface doc comment
 7 | ERROR | [ ] Missing short description in doc comment
 8 | ERROR | [ ] Description for the @return value is missing
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/Event/EventScheduleInterface.php
-----------------------------------------------------------------------------------------------------------------
FOUND 24 ERRORS AND 1 WARNING AFFECTING 25 LINES
-----------------------------------------------------------------------------------------------------------------
  9 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
 15 | ERROR   | Missing parameter comment
 16 | ERROR   | Missing parameter comment
 18 | ERROR   | Description for the @return value is missing
 22 | ERROR   | Missing short description in doc comment
 23 | ERROR   | Missing parameter comment
 29 | ERROR   | Missing short description in doc comment
 30 | ERROR   | Description for the @return value is missing
 34 | ERROR   | Missing short description in doc comment
 35 | ERROR   | Missing parameter comment
 41 | ERROR   | Missing short description in doc comment
 42 | ERROR   | Missing parameter comment
 48 | ERROR   | Missing short description in doc comment
 49 | ERROR   | Description for the @return value is missing
 53 | ERROR   | Missing short description in doc comment
 54 | ERROR   | Missing parameter comment
 60 | ERROR   | Missing short description in doc comment
 61 | ERROR   | Description for the @return value is missing
 65 | ERROR   | Missing short description in doc comment
 73 | ERROR   | Missing short description in doc comment
 74 | ERROR   | Description for the @return value must be on the next line
 78 | ERROR   | Missing short description in doc comment
 79 | ERROR   | Missing parameter comment
 85 | ERROR   | Missing short description in doc comment
 86 | ERROR   | Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/EventSchedulerUtilsInterface.php
--------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
--------------------------------------------------------------------------------------------------------------
  7 | ERROR | [x] Missing interface doc comment
 12 | ERROR | [ ] Missing parameter comment
 24 | ERROR | [ ] Description for the @return value is missing
 31 | ERROR | [ ] Description for the @return value is missing
 38 | ERROR | [ ] Missing parameter comment
 39 | ERROR | [ ] Missing parameter comment
 41 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/EventSchedulerUtils.php
-----------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AFFECTING 17 LINES
-----------------------------------------------------------------------------------------------------
  13 | ERROR | [x] Missing class doc comment
  17 | ERROR | [ ] Missing member variable doc comment
  19 | ERROR | [ ] Missing member variable doc comment
  21 | ERROR | [ ] Missing member variable doc comment
  23 | ERROR | [ ] Missing member variable doc comment
  25 | ERROR | [ ] Missing member variable doc comment
  27 | ERROR | [ ] Missing member variable doc comment
  29 | ERROR | [ ] Missing member variable doc comment
  34 | ERROR | [ ] Missing parameter comment
  35 | ERROR | [ ] Missing parameter comment
  36 | ERROR | [ ] Missing parameter comment
  37 | ERROR | [ ] Missing parameter comment
  38 | ERROR | [ ] Missing parameter comment
 111 | ERROR | [ ] Missing parameter comment
 113 | ERROR | [ ] Description for the @return value is missing
 127 | ERROR | [ ] Missing parameter comment
 128 | ERROR | [ ] Missing parameter comment
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/EventSchedulerDatabase.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 24 ERRORS AND 7 WARNINGS AFFECTING 30 LINES
--------------------------------------------------------------------------------------------------------------------------------
  12 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
  19 | ERROR   | Missing member variable doc comment
  21 | ERROR   | Missing member variable doc comment
  23 | ERROR   | Missing member variable doc comment
  28 | ERROR   | Missing parameter comment
  29 | ERROR   | Missing parameter comment
  30 | ERROR   | Missing parameter comment
  48 | ERROR   | Return type "int | null" must not contain spaces
  54 | WARNING | Unused variable $return_value.
  63 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and
     |         | $this->t() instead
  77 | ERROR   | Parameter tags must be grouped together in a doc comment
  79 | WARNING | Line exceeds 80 characters; contains 92 characters
  81 | ERROR   | Return type "int | null" must not contain spaces
  98 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and
     |         | $this->t() instead
 113 | WARNING | Line exceeds 80 characters; contains 92 characters
 115 | ERROR   | Description for the @return value is missing
 131 | WARNING | Line exceeds 80 characters; contains 92 characters
 133 | ERROR   | Parameter tags must be grouped together in a doc comment
 152 | ERROR   | Missing short description in doc comment
 153 | ERROR   | Missing parameter comment
 153 | ERROR   | Parameter type "\Drupal\Core\Database\Query\SelectInterface | Delete | Update" must not contain spaces
 154 | ERROR   | Missing parameter comment
 156 | ERROR   | Description for the @return value must be on the next line
 176 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
 180 | ERROR   | Description for the @return value is missing
 201 | ERROR   | Description for the @return value is missing
 218 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
 221 | ERROR   | Parameter comment must start with a capital letter
 223 | ERROR   | Description for the @return value is missing
 237 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
 239 | ERROR   | Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/Form/ScheduledEventsForm.php
-----------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------------
 18 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
 23 | ERROR   | Missing member variable doc comment
 25 | ERROR   | Missing short description in doc comment
 33 | ERROR   | Missing parameter comment
 34 | ERROR   | Missing parameter comment
 44 | ERROR   | Doc comment is empty
 85 | WARNING | Possible useless method overriding detected
-----------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/Form/EventSchedulerSettingsForm.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 10 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/EventSchedulerDispatcher.php
---------------------------------------------------------------------------------------------------------------------
FOUND 24 ERRORS AND 2 WARNINGS AFFECTING 26 LINES
---------------------------------------------------------------------------------------------------------------------
  47 | ERROR   | Missing short description in doc comment
  52 | ERROR   | Missing short description in doc comment
  60 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
  66 | ERROR   | Missing member variable doc comment
  71 | ERROR   | Missing parameter comment
  72 | ERROR   | Missing parameter comment
  73 | ERROR   | Missing parameter comment
  74 | ERROR   | Missing parameter comment
  75 | ERROR   | Missing parameter comment
 102 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
 118 | ERROR   | Parameter $eventName is not described in comment
 121 | ERROR   | Missing parameter comment
 143 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
 145 | ERROR   | Missing parameter comment
 146 | ERROR   | Missing parameter comment
 161 | ERROR   | Missing parameter comment
 162 | ERROR   | Missing parameter comment
 164 | ERROR   | Protected method name "EventSchedulerDispatcher::saveToDB" is not in lowerCamel format
 176 | WARNING | There must be no blank line following an inline comment
 196 | ERROR   | Unnecessarily gendered language in a comment
 199 | ERROR   | Missing parameter comment
 220 | ERROR   | Missing parameter comment
 227 | WARNING | Line exceeds 80 characters; contains 91 characters
 232 | ERROR   | Description for the @return value must be on the next line
 248 | ERROR   | Description for the @return value must be on the next line
 260 | ERROR   | Description for the @return value must be on the next line
---------------------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/LocalEventQueue.php
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
 12 | ERROR | Missing short description in doc comment
-------------------------------------------------------------------------------------------------


FILE: /home/lenovo/druapl7to9/web/modules/contrib/event_scheduler-3372797/src/LocalEventQueueInterface.php
----------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------
 15 | ERROR | Missing parameter comment
 17 | ERROR | Parameter tags must be grouped together in a doc comment
 17 | ERROR | Missing parameter comment
 24 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------------------------------------------

Time: 201ms; Memory: 10MB

User interface changes

API changes

Data model changes

📌 Task
Status

Needs work

Version

2.3

Component

Code

Created by

🇮🇳India roshni27

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024