@@ 461-475 (lines=15) @@ | ||
458 | for ($i = $beforeRow; $i <= $highestRow - 1; ++$i) { |
|
459 | // Style |
|
460 | $coordinate = Coordinate::stringFromColumnIndex($beforeColumnIndex - 1) . $i; |
|
461 | if ($pSheet->cellExists($coordinate)) { |
|
462 | $xfIndex = $pSheet->getCell($coordinate)->getXfIndex(); |
|
463 | $conditionalStyles = $pSheet->conditionalStylesExists($coordinate) ? |
|
464 | $pSheet->getConditionalStyles($coordinate) : false; |
|
465 | for ($j = $beforeColumnIndex; $j <= $beforeColumnIndex - 1 + $pNumCols; ++$j) { |
|
466 | $pSheet->getCellByColumnAndRow($j, $i)->setXfIndex($xfIndex); |
|
467 | if ($conditionalStyles) { |
|
468 | $cloned = []; |
|
469 | foreach ($conditionalStyles as $conditionalStyle) { |
|
470 | $cloned[] = clone $conditionalStyle; |
|
471 | } |
|
472 | $pSheet->setConditionalStyles(Coordinate::stringFromColumnIndex($j) . $i, $cloned); |
|
473 | } |
|
474 | } |
|
475 | } |
|
476 | } |
|
477 | } |
|
478 | ||
@@ 483-497 (lines=15) @@ | ||
480 | for ($i = $beforeColumnIndex; $i <= Coordinate::columnIndexFromString($highestColumn); ++$i) { |
|
481 | // Style |
|
482 | $coordinate = Coordinate::stringFromColumnIndex($i) . ($beforeRow - 1); |
|
483 | if ($pSheet->cellExists($coordinate)) { |
|
484 | $xfIndex = $pSheet->getCell($coordinate)->getXfIndex(); |
|
485 | $conditionalStyles = $pSheet->conditionalStylesExists($coordinate) ? |
|
486 | $pSheet->getConditionalStyles($coordinate) : false; |
|
487 | for ($j = $beforeRow; $j <= $beforeRow - 1 + $pNumRows; ++$j) { |
|
488 | $pSheet->getCell(Coordinate::stringFromColumnIndex($i) . $j)->setXfIndex($xfIndex); |
|
489 | if ($conditionalStyles) { |
|
490 | $cloned = []; |
|
491 | foreach ($conditionalStyles as $conditionalStyle) { |
|
492 | $cloned[] = clone $conditionalStyle; |
|
493 | } |
|
494 | $pSheet->setConditionalStyles(Coordinate::stringFromColumnIndex($i) . $j, $cloned); |
|
495 | } |
|
496 | } |
|
497 | } |
|
498 | } |
|
499 | } |
|
500 |