initialize($weldLogData, $document, $sheet, $currentRow, $settings); $this->log("Processing Drawings"); $lineIdentifier = $weldLogData[$this->registerColumnBased]; $normalized = $this->normalizeSearchTerm($lineIdentifier); $search = $this->searchFiles("{$document['path']}/*{$normalized}*.pdf"); $placeholderReplacer = new \App\Services\RegisterCreator\PlaceholderReplacer(); $documentDate = $placeholderReplacer->getLatestDate($weldLogData, $this->registerColumnBased); // Use the new ExcelRowHandler service method $newRow = $this->addRowToExcel( $search, $lineIdentifier, $documentDate ); if ($newRow > $currentRow) { $currentRow = $newRow; } return $currentRow; } }