public static function dequeue($queue, $items = [])
    {
        if (count($items) > 0) {
            return self::removeItems($queue, $items);
        }

        return self::removeList($queue);
    }
public static function dequeue($queue, $items = [])
    {
        if (count($items) > 0) {
            return self::removeItems($queue, $items);
        }

        return self::removeList($queue);
    }
public static function dequeue ( $ queue , $ items = [ ] ) { if ( count ( $ items ) > 0 ) { return self :: removeItems ( $ queue , $ items ) ; } return self :: removeList ( $ queue ) ; }
Remove items of the specified queue

@param string $queue The name of the queue to fetch an item from.
@param array  $items

@return integer number of deleted items
Remove items of the specified queue