@@ -299,11 +299,14 @@ public function setLatin(string $fontname): self
299
299
if ($ fontname == '' ) {
300
300
$ fontname = 'Calibri ' ;
301
301
}
302
- if ($ this ->isSupervisor ) {
302
+ if (!$ this ->isSupervisor ) {
303
+ $ this ->latin = $ fontname ;
304
+ } else {
305
+ // should never be true
306
+ // @codeCoverageIgnoreStart
303
307
$ styleArray = $ this ->getStyleArray (['latin ' => $ fontname ]);
304
308
$ this ->getActiveSheet ()->getStyle ($ this ->getSelectedCells ())->applyFromArray ($ styleArray );
305
- } else {
306
- $ this ->latin = $ fontname ;
309
+ // @codeCoverageIgnoreEnd
307
310
}
308
311
309
312
return $ this ;
@@ -314,11 +317,14 @@ public function setEastAsian(string $fontname): self
314
317
if ($ fontname == '' ) {
315
318
$ fontname = 'Calibri ' ;
316
319
}
317
- if ($ this ->isSupervisor ) {
320
+ if (!$ this ->isSupervisor ) {
321
+ $ this ->eastAsian = $ fontname ;
322
+ } else {
323
+ // should never be true
324
+ // @codeCoverageIgnoreStart
318
325
$ styleArray = $ this ->getStyleArray (['eastAsian ' => $ fontname ]);
319
326
$ this ->getActiveSheet ()->getStyle ($ this ->getSelectedCells ())->applyFromArray ($ styleArray );
320
- } else {
321
- $ this ->eastAsian = $ fontname ;
327
+ // @codeCoverageIgnoreEnd
322
328
}
323
329
324
330
return $ this ;
@@ -329,11 +335,14 @@ public function setComplexScript(string $fontname): self
329
335
if ($ fontname == '' ) {
330
336
$ fontname = 'Calibri ' ;
331
337
}
332
- if ($ this ->isSupervisor ) {
338
+ if (!$ this ->isSupervisor ) {
339
+ $ this ->complexScript = $ fontname ;
340
+ } else {
341
+ // should never be true
342
+ // @codeCoverageIgnoreStart
333
343
$ styleArray = $ this ->getStyleArray (['complexScript ' => $ fontname ]);
334
344
$ this ->getActiveSheet ()->getStyle ($ this ->getSelectedCells ())->applyFromArray ($ styleArray );
335
- } else {
336
- $ this ->complexScript = $ fontname ;
345
+ // @codeCoverageIgnoreEnd
337
346
}
338
347
339
348
return $ this ;
@@ -533,11 +542,14 @@ public function getBaseLine(): int
533
542
534
543
public function setBaseLine (int $ baseLine ): self
535
544
{
536
- if ($ this ->isSupervisor ) {
545
+ if (!$ this ->isSupervisor ) {
546
+ $ this ->baseLine = $ baseLine ;
547
+ } else {
548
+ // should never be true
549
+ // @codeCoverageIgnoreStart
537
550
$ styleArray = $ this ->getStyleArray (['baseLine ' => $ baseLine ]);
538
551
$ this ->getActiveSheet ()->getStyle ($ this ->getSelectedCells ())->applyFromArray ($ styleArray );
539
- } else {
540
- $ this ->baseLine = $ baseLine ;
552
+ // @codeCoverageIgnoreEnd
541
553
}
542
554
543
555
return $ this ;
@@ -554,11 +566,14 @@ public function getStrikeType(): string
554
566
555
567
public function setStrikeType (string $ strikeType ): self
556
568
{
557
- if ($ this ->isSupervisor ) {
569
+ if (!$ this ->isSupervisor ) {
570
+ $ this ->strikeType = $ strikeType ;
571
+ } else {
572
+ // should never be true
573
+ // @codeCoverageIgnoreStart
558
574
$ styleArray = $ this ->getStyleArray (['strikeType ' => $ strikeType ]);
559
575
$ this ->getActiveSheet ()->getStyle ($ this ->getSelectedCells ())->applyFromArray ($ styleArray );
560
- } else {
561
- $ this ->strikeType = $ strikeType ;
576
+ // @codeCoverageIgnoreEnd
562
577
}
563
578
564
579
return $ this ;
@@ -575,11 +590,14 @@ public function getUSchemeClr(): string
575
590
576
591
public function setUSchemeClr (string $ uSchemeClr ): self
577
592
{
578
- if ($ this ->isSupervisor ) {
593
+ if (!$ this ->isSupervisor ) {
594
+ $ this ->uSchemeClr = $ uSchemeClr ;
595
+ } else {
596
+ // should never be true
597
+ // @codeCoverageIgnoreStart
579
598
$ styleArray = $ this ->getStyleArray (['uSchemeClr ' => $ uSchemeClr ]);
580
599
$ this ->getActiveSheet ()->getStyle ($ this ->getSelectedCells ())->applyFromArray ($ styleArray );
581
- } else {
582
- $ this ->uSchemeClr = $ uSchemeClr ;
600
+ // @codeCoverageIgnoreEnd
583
601
}
584
602
585
603
return $ this ;
@@ -743,6 +761,7 @@ protected function exportArray1(): array
743
761
$ this ->exportArray2 ($ exportedArray , 'subscript ' , $ this ->getSubscript ());
744
762
$ this ->exportArray2 ($ exportedArray , 'superscript ' , $ this ->getSuperscript ());
745
763
$ this ->exportArray2 ($ exportedArray , 'underline ' , $ this ->getUnderline ());
764
+ $ this ->exportArray2 ($ exportedArray , 'uSchemeClr ' , $ this ->getUSchemeClr ());
746
765
747
766
return $ exportedArray ;
748
767
}
0 commit comments