| Línea 73... |
Línea 73... |
| 73 |
private function mergeCellProperties(Style $styleToUpdate, Style $style, Style $baseStyle): void
|
73 |
private function mergeCellProperties(Style $styleToUpdate, Style $style, Style $baseStyle): void
|
| 74 |
{
|
74 |
{
|
| 75 |
if (!$style->hasSetWrapText() && $baseStyle->hasSetWrapText()) {
|
75 |
if (!$style->hasSetWrapText() && $baseStyle->hasSetWrapText()) {
|
| 76 |
$styleToUpdate->setShouldWrapText($baseStyle->shouldWrapText());
|
76 |
$styleToUpdate->setShouldWrapText($baseStyle->shouldWrapText());
|
| 77 |
}
|
77 |
}
|
| - |
|
78 |
if (!$style->hasSetTextRotation() && $baseStyle->hasSetTextRotation()) {
|
| - |
|
79 |
$styleToUpdate->setTextRotation($baseStyle->textRotation());
|
| - |
|
80 |
}
|
| 78 |
if (!$style->hasSetShrinkToFit() && $baseStyle->shouldShrinkToFit()) {
|
81 |
if (!$style->hasSetShrinkToFit() && $baseStyle->shouldShrinkToFit()) {
|
| 79 |
$styleToUpdate->setShouldShrinkToFit();
|
82 |
$styleToUpdate->setShouldShrinkToFit();
|
| 80 |
}
|
83 |
}
|
| 81 |
if (!$style->hasSetCellAlignment() && $baseStyle->shouldApplyCellAlignment()) {
|
84 |
if (!$style->hasSetCellAlignment() && $baseStyle->shouldApplyCellAlignment()) {
|
| 82 |
$styleToUpdate->setCellAlignment($baseStyle->getCellAlignment());
|
85 |
$styleToUpdate->setCellAlignment($baseStyle->getCellAlignment());
|