src/Uploading/StrategiesQueue.php
public function hasOperationError()
    {
        if (empty($this->sortedQueue)) {
            return false;
        }
        $current = current($this->sortedQueue)
                 ? current($this->sortedQueue)
                 : end($this->sortedQueue);

        return (bool) ($current::STATE_FAILURE & $current->getState());
    }
public function hasOperationError()
    {
        if (empty($this->sortedQueue)) {
            return false;
        }
        $current = current($this->sortedQueue)
                 ? current($this->sortedQueue)
                 : end($this->sortedQueue);

        return (bool) ($current::STATE_FAILURE & $current->getState());
    }
public function hasOperationError ( ) { if ( empty ( $ this -> sortedQueue ) ) { return false ; } $ current = current ( $ this -> sortedQueue ) ? current ( $ this -> sortedQueue ) : end ( $ this -> sortedQueue ) ; return ( bool ) ( $ current :: STATE_FAILURE & $ current -> getState ( ) ) ; }
An easy way to check the state to the presence of failure.

Any of strategies can decides on failure without break the execution.
The queue of strategies returns result of last executed strategy, if any.

@return bool Returns true, if the state contains the failure flag,
false otherwise
An easy way to check the state to the presence of failure .