public function process()
    {
        // Skip blank queues
        if (empty($this->batches)) {
            return true;
        }

        // Don't re-process completed queue
        if ($this->currentBatch >= count($this->batches)) {
            return true;
        }

        // Send current patch to indexes
        $this->prepareIndexes();

        // Advance to next batch if successful
        $this->setBatch($this->currentBatch + 1);
        return true;
    }
public function process()
    {
        // Skip blank queues
        if (empty($this->batches)) {
            return true;
        }

        // Don't re-process completed queue
        if ($this->currentBatch >= count($this->batches)) {
            return true;
        }

        // Send current patch to indexes
        $this->prepareIndexes();

        // Advance to next batch if successful
        $this->setBatch($this->currentBatch + 1);
        return true;
    }
public function process ( ) { // Skip blank queues if ( empty ( $ this -> batches ) ) { return true ; } // Don't re-process completed queue if ( $ this -> currentBatch >= count ( $ this -> batches ) ) { return true ; } // Send current patch to indexes $ this -> prepareIndexes ( ) ; // Advance to next batch if successful $ this -> setBatch ( $ this -> currentBatch + 1 ) ; return true ; }
Process the current queue

@return boolean
Process the current queue