RebelCode/rcmod-eddbk-booking-logic

View on GitHub

Showing 4 of 20 total issues

Method setup has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function setup()
    {
        return $this->_setupContainer(
            $this->_loadPhpConfigFile(EDDBK_BOOKING_LOGIC_MODULE_CONFIG),
            [
Severity: Major
Found in src/EddBkBookingLogicModule.php - About 2 hrs to fix

    Method make has 57 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function make($config = null)
        {
            $booking = $this->_containerGet($config, 'booking');
    
            if (!($booking instanceof BookingInterface)) {
    Severity: Major
    Found in src/BookingConflictConditionFactory.php - About 2 hrs to fix

      Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              $key,
              $dependencies,
              $configFactory,
              $containerFactory,
              $compContainerFactory,
      Severity: Major
      Found in src/EddBkBookingLogicModule.php - About 50 mins to fix

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

                ValidatorInterface $bookingValidator,
                TransitionerInterface $transitioner,
                EventManagerInterface $eventManager,
                EventFactoryInterface $eventFactory,
                $transitions
        Severity: Minor
        Found in src/BookingTransitionManager.php - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language