/** * Parse worksheet * @return array */ protected function parseWorksheet() { $content = []; $rows = $this->worksheet->getRowIterator($this->getStartRow()); $i = 0; $take = $this->reader->getTake(); foreach ($rows as $this->row) { if ($i >= $take && $take !== -1) { break; } $parsed = $this->parseRow(); if (!empty($parsed)) { $content[$i] = $parsed; } $i++; } return $content; }