From fc884044ac3061957a5d1c76a7221ca5cf9653c1 Mon Sep 17 00:00:00 2001 From: mrjemson Date: Fri, 22 Apr 2022 18:03:17 +1000 Subject: [PATCH] Color Code Clean Up --- src/SimpleXLSXGen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SimpleXLSXGen.php b/src/SimpleXLSXGen.php index 518809f..69720db 100644 --- a/src/SimpleXLSXGen.php +++ b/src/SimpleXLSXGen.php @@ -46,7 +46,6 @@ class SimpleXLSXGen { $this->F = [ self::F_NORMAL ]; // fonts $this->F_KEYS = [0]; // & keys $this->C = [ self::C_NORMAL ]; // - $this->C_KEYS = [0]; // & keys $this->XF = [ [self::N_NORMAL, self::F_NORMAL, self::A_DEFAULT, self::C_NORMAL] ]; // styles $this->XF_KEYS = ['N0F0A0C0' => 0 ]; // & keys @@ -561,7 +560,8 @@ class SimpleXLSXGen { } if ( $cv === false ) { $this->SI[] = $v; - $cv = count( $this->SI ) - 1; $this->SI_KEYS[ $skey ] = $cv; + $cv = count( $this->SI ) - 1; + $this->SI_KEYS[ $skey ] = $cv; $this->SI_KEYS[ $skey ] = $cv; } }