Some minor bugs and coding standard phpcs

Created on 18 March 2020, almost 5 years ago
Updated 5 August 2024, 5 months ago

Some minor bugs and coding standard phpcs .

🐛 Bug report
Status

Needs work

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India riddhi.addweb

    I tried to apply 3120459-2.patch patch but it throws the error, it failed when applied.

    Checking patch README.md...
    Checking patch event_scheduler_publish.module...
    Checking patch src/Event/EntityPublishEvent.php...
    error: while searching for:
    <?php
    
    
    namespace Drupal\event_scheduler_publish\Event;
    
    use Drupal\event_scheduler\Event\EventDelayInterface;
    
    class EntityPublishEvent extends EntityPublishEventBase implements EventDelayInterface {
    
      const NAME = 'event_scheduler_publish.publish';
    
    error: patch failed: src/Event/EntityPublishEvent.php:1
    error: src/Event/EntityPublishEvent.php: patch does not apply
    Checking patch src/Event/EntityPublishEventBase.php...
    error: while searching for:
    <?php
    
    
    namespace Drupal\event_scheduler_publish\Event;
    
    use Drupal\event_scheduler\Event\EventDelayInterface;
    use Symfony\Component\EventDispatcher\Event;
    
    abstract class EntityPublishEventBase extends Event implements EntityPublishEventInterface {
    
      const NAME = 'event_scheduler_publish.abstract';
    
    error: patch failed: src/Event/EntityPublishEventBase.php:1
    error: src/Event/EntityPublishEventBase.php: patch does not apply
    Checking patch src/Event/EntityPublishEventInterface.php...
    error: while searching for:
    <?php
    
    
    namespace Drupal\event_scheduler_publish\Event;
    
    use Drupal\event_scheduler\Event\EventDelayInterface;
    use Symfony\Component\EventDispatcher\Event;
    
    interface EntityPublishEventInterface {
    
      /**
    
    error: patch failed: src/Event/EntityPublishEventInterface.php:1
    error: src/Event/EntityPublishEventInterface.php: patch does not apply
    Checking patch src/Event/EntityPublishedEvent.php...
    error: while searching for:
    <?php
    
    
    namespace Drupal\event_scheduler_publish\Event;
    
    use Drupal\event_scheduler\Event\EventDelayInterface;
    
    class EntityPublishedEvent extends EntityPublishEventBase implements EventDelayInterface {
    
      const NAME = 'event_scheduler_publish.published';
    
    error: patch failed: src/Event/EntityPublishedEvent.php:1
    error: src/Event/EntityPublishedEvent.php: patch does not apply
    Checking patch src/Event/EntityScheduledPublishEvent.php...
    error: while searching for:
    <?php
    
    
    namespace Drupal\event_scheduler_publish\Event;
    
    use Drupal\event_scheduler\Event\EventScheduleInterface;
    use Drupal\event_scheduler\EventSchedulerTrait;
    
    class EntityScheduledPublishEvent extends EntityPublishEventBase implements EventScheduleInterface {
    
      use EventSchedulerTrait;
    
    error: patch failed: src/Event/EntityScheduledPublishEvent.php:1
    error: src/Event/EntityScheduledPublishEvent.php: patch does not apply
    Checking patch src/Event/EntityScheduledUnpublishEvent.php...
    error: while searching for:
    <?php
    
    
    namespace Drupal\event_scheduler_publish\Event;
    
    use Drupal\event_scheduler\Event\EventScheduleInterface;
    use Drupal\event_scheduler\EventSchedulerTrait;
    
    class EntityScheduledUnpublishEvent extends EntityPublishEventBase implements EventScheduleInterface {
    
      use EventSchedulerTrait;
    
    error: patch failed: src/Event/EntityScheduledUnpublishEvent.php:1
    error: src/Event/EntityScheduledUnpublishEvent.php: patch does not apply
    Checking patch src/Event/EntityUnpublishEvent.php...
    error: while searching for:
    <?php
    
    
    namespace Drupal\event_scheduler_publish\Event;
    
    use Drupal\event_scheduler\Event\EventDelayInterface;
    
    class EntityUnpublishEvent extends EntityPublishEventBase implements EventDelayInterface {
    
      const NAME = 'event_scheduler_publish.unpublish';
    
    error: patch failed: src/Event/EntityUnpublishEvent.php:1
    error: src/Event/EntityUnpublishEvent.php: patch does not apply
    Checking patch src/Event/EntityUnpublishedEvent.php...
    error: while searching for:
    <?php
    
    
    namespace Drupal\event_scheduler_publish\Event;
    
    use Drupal\event_scheduler\Event\EventDelayInterface;
    
    class EntityUnpublishedEvent extends EntityPublishEventBase implements EventDelayInterface {
    
      const NAME = 'event_scheduler_publish.unpublished';
    
    error: patch failed: src/Event/EntityUnpublishedEvent.php:1
    error: src/Event/EntityUnpublishedEvent.php: patch does not apply
    Checking patch src/EventSubscriber/EntityPublishSubscriber.php...
    Hunk #2 succeeded at 21 (offset 2 lines).
    Hunk #3 succeeded at 34 (offset 2 lines).
    Hunk #4 succeeded at 60 (offset 2 lines).
    Hunk #5 succeeded at 70 (offset 2 lines).
    Hunk #6 succeeded at 81 (offset 2 lines).
    Hunk #7 succeeded at 95 (offset 2 lines).
    Hunk #8 succeeded at 105 (offset 2 lines).
    Hunk #9 succeeded at 116 (offset 2 lines).
    Checking patch src/SchedulerPublishUtils.php...
    error: while searching for:
      protected $dispatcher;
    
      /**
       * @var \Drupal\Core\Logger\LoggerChannelInterface
       */
      protected $logger;
    
      /**
       * @var \Drupal\Component\Datetime\TimeInterface
       */
      protected $time;
    
      /**
       * @var \Drupal\event_scheduler\EventSchedulerDatabaseInterface
       */
      protected $database;
    
    error: patch failed: src/SchedulerPublishUtils.php:25
    error: src/SchedulerPublishUtils.php: patch does not apply
    Checking patch src/SchedulerPublishUtilsInterface.php...
    Hunk #1 succeeded at 15 (offset 2 lines).
    Hunk #2 succeeded at 23 (offset 2 lines).
    
Production build 0.71.5 2024