validation-bugsnag-email

This commit is contained in:
RafficMohammed
2023-01-31 13:17:59 +05:30
parent 2ec836b447
commit 9dd3f53910
769 changed files with 20242 additions and 14060 deletions

View File

@@ -193,7 +193,7 @@ class CellMatcher
}
if (!empty($matches[4])) {
$worksheet = $this->worksheet->getParent()->getSheetByName(trim($matches[4], "'"));
$worksheet = $this->worksheet->getParentOrThrow()->getSheetByName(trim($matches[4], "'"));
if ($worksheet === null) {
return $this->wrapValue(null);
}

View File

@@ -130,7 +130,7 @@ class Style extends Supervisor
$xfIndex = 0;
}
return $activeSheet->getParent()->getCellXfByIndex($xfIndex);
return $activeSheet->getParentOrThrow()->getCellXfByIndex($xfIndex);
}
/**
@@ -138,7 +138,7 @@ class Style extends Supervisor
*/
public function getParent(): Spreadsheet
{
return $this->getActiveSheet()->getParent();
return $this->getActiveSheet()->getParentOrThrow();
}
/**
@@ -372,7 +372,7 @@ class Style extends Supervisor
$oldXfIndexes = $this->getOldXfIndexes($selectionType, $rangeStartIndexes, $rangeEndIndexes, $columnStart, $columnEnd, $styleArray);
// clone each of the affected styles, apply the style array, and add the new styles to the workbook
$workbook = $this->getActiveSheet()->getParent();
$workbook = $this->getActiveSheet()->getParentOrThrow();
$newXfIndexes = [];
foreach ($oldXfIndexes as $oldXfIndex => $dummy) {
$style = $workbook->getCellXfByIndex($oldXfIndex);