src/Service/Flow/Emergency.php
public function checkMaxCall()
    {
        if ($this->krexxCount >= $this->maxCall) {
            // Called too often, we might get into trouble here!
            return true;
        }

        // Give feedback if this is our last call.
        if ($this->krexxCount === ($this->maxCall - 1)) {
            $this->pool->messages->addMessage('maxCallReached');
        }

        // Count goes up.
        ++$this->krexxCount;
        // Tell them that we are still good.
        return false;
    }
public function checkMaxCall()
    {
        if ($this->krexxCount >= $this->maxCall) {
            // Called too often, we might get into trouble here!
            return true;
        }

        // Give feedback if this is our last call.
        if ($this->krexxCount === ($this->maxCall - 1)) {
            $this->pool->messages->addMessage('maxCallReached');
        }

        // Count goes up.
        ++$this->krexxCount;
        // Tell them that we are still good.
        return false;
    }
public function checkMaxCall ( ) { if ( $ this -> krexxCount >= $ this -> maxCall ) { // Called too often, we might get into trouble here! return true ; } // Give feedback if this is our last call. if ( $ this -> krexxCount === ( $ this -> maxCall - 1 ) ) { $ this -> pool -> messages -> addMessage ( 'maxCallReached' ) ; } // Count goes up. ++ $ this -> krexxCount ; // Tell them that we are still good. return false ; }
Finds out, if krexx was called too often, to prevent large output.

@return bool
Whether kreXX was called too often or not.
Finds out if krexx was called too often to prevent large output .