Dhii/data-state-abstract

View on GitHub

Showing 2 of 13 total issues

Method _transition has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function _transition(StateAwareInterface $subject, $transition)
    {
        // Retrieve the state machine to use
        $stateMachine = $this->_getStateMachineForTransition($subject, $transition);
        // Ensure it is not null
Severity: Minor
Found in src/TransitionCapableStateMachineTrait.php - About 1 hr to fix

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

            $message = null,
            $code = null,
            RootException $previous = null,
            $subject = null,
            $transition = null
    Severity: Minor
    Found in src/TransitionCapableStateMachineTrait.php - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language