bluetree-service/event

View on GitHub

Showing 4 of 15 total issues

File EventDispatcherTest.php has 406 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * test Event Dispatcher class
 *
Severity: Minor
Found in test/EventDispatcherTest.php - About 5 hrs to fix

    EventDispatcherTest has 26 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class EventDispatcherTest extends TestCase
    {
        /**
         * name of test event log file
         */
    Severity: Minor
    Found in test/EventDispatcherTest.php - About 3 hrs to fix

      Method testSetEventDispatcherConfiguration has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function testSetEventDispatcherConfiguration($options)
          {
              $eventDispatcher = new EventDispatcher;
              $eventDispatcher->setEventConfiguration($options['events']);
      
      
      Severity: Minor
      Found in test/EventDispatcherTest.php - About 1 hr to fix

        Method testTriggerMultipleEvents has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function testTriggerMultipleEvents()
            {
                $testData = [];
                $instance = new EventDispatcher(['events' => [
                    'test_event' => [
        Severity: Minor
        Found in test/EventDispatcherTest.php - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language