src/Guzzle/Batch/Batch.php
protected function createBatches()
    {
        if (count($this->queue)) {
            if ($batches = $this->divisionStrategy->createBatches($this->queue)) {
                // Convert arrays into iterators
                if (is_array($batches)) {
                    $batches = new \ArrayIterator($batches);
                }
                $this->dividedBatches[] = $batches;
            }
        }
    }
protected function createBatches()
    {
        if (count($this->queue)) {
            if ($batches = $this->divisionStrategy->createBatches($this->queue)) {
                // Convert arrays into iterators
                if (is_array($batches)) {
                    $batches = new \ArrayIterator($batches);
                }
                $this->dividedBatches[] = $batches;
            }
        }
    }
protected function createBatches ( ) { if ( count ( $ this -> queue ) ) { if ( $ batches = $ this -> divisionStrategy -> createBatches ( $ this -> queue ) ) { // Convert arrays into iterators if ( is_array ( $ batches ) ) { $ batches = new \ ArrayIterator ( $ batches ) ; } $ this -> dividedBatches [ ] = $ batches ; } } }
Create batches for any queued items
Create batches for any queued items