phergie/phergie-irc-bot-react

View on GitHub
src/EventQueue.php

Summary

Maintainability
D
2 days
Test Coverage

EventQueue has 71 functions (exceeds 20 allowed). Consider refactoring.
Open

class EventQueue implements EventQueueInterface
{
    /**
     * Internal priority queue.
     *
Severity: Major
Found in src/EventQueue.php - About 1 day to fix

    File EventQueue.php has 355 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Phergie (http://phergie.org)
     * @copyright Copyright (c) 2008-2014 Phergie Development Team (http://phergie.org)
     * @license http://phergie.org/license Simplified BSD License
    Severity: Minor
    Found in src/EventQueue.php - About 4 hrs to fix

      Method getPriorities has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function getPriorities()
          {
              return array_flip([
                  'RESTART',
                  'SQUIT',
      Severity: Minor
      Found in src/EventQueue.php - About 1 hr to fix

        Method ircUserhost has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function ircUserhost($nickname1, $nickname2 = null, $nickname3 = null, $nickname4 = null, $nickname5 = null)
        Severity: Minor
        Found in src/EventQueue.php - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status